Jump to content

Template:Deprecated stub/doc

From Wikipedia, the free encyclopedia

The {{Deprecated stub}} template notifies users that a given stub template has been superseded or replaced by another template, or has simply been deprecated (i.e., advised to no longer be used) without a direct replacement. This is useful when a stub template's name is ambiguous and could refer to one of several related but different subjects.

Deprecated stub templates are not typically deleted, and are usually kept as soft redirects.

Usage

[edit]

{{Deprecated stub|old template name|redirecting text}}

Templates are categorized to Category:Deprecated stub templates. Articles which still use stub templates marked as deprecated are categorized to Category:Pages using deprecated templates.

Examples

[edit]
{{Deprecated stub|Old-stub|{{Tl|This-new-stub}} or {{Tl|That-new-stub}}}}

See also

[edit]


Notifies users that a given stub template has been superseded or replaced by another template, or has simply been deprecated (i.e., advised to no longer be used) without a direct replacement. This is useful when a stub template's name is ambiguous and could refer to one of several related but different subjects.

Template parameters

ParameterDescriptionTypeStatus
Old stub template1

Defaults to current page, but can be overrun

Unknownoptional
Superseded/replaced stub template2

MUST use {{Tlc|This-new-stub}}, unlike in the old one, or else it won’t show as a template link, may also use [[Template:This-new-stub]]

Example
{{Tlc|Example new sub template}}
Templatesuggested
Do not categorisenocat

NOT RECOMMENDED. Prevented from categorizing by adding |nocat=true. This is only intended for examples, e.g. in the template's own documentation. In that case, not only the page itself will not be categorized, but transclusions of such pages will also be prevented from categorizing in Category:Pages using deprecated templates. Do not use this parameter to passive-aggressively contest a template's documentation. Take up the matter on the template's talk page or that of a relevant other venue, such as WP:Village pump (technical).

Example
true
Booleanoptional