Difference between revisions of "Template:Deprecated stub"
Jump to navigation
Jump to search
imported>Debresser (1. Remove whiteline. 2. Move category to documentation.) |
imported>WOSlinker (use svg image) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Mbox | {{Mbox | ||
| type = style | | type = style | ||
| − | | image = [[File: | + | | image = [[File:Ambox important.svg|40px|alt=|link=]] |
| text = The stub template {{[[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]}} is deprecated. Please use {{{2}}} instead. | | text = The stub template {{[[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]}} is deprecated. Please use {{{2}}} instead. | ||
| + | }}{{#ifeq:{{{nocat|}}}|true | ||
| + | ||{{#ifeq:{{ARTICLESPACE}}|Template | ||
| + | |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise /doc pages --> | ||
| + | |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself --> | ||
| + | |[[Category:Deprecated stub templates]] | ||
| + | }} | ||
| + | }} | ||
| + | |[[Category:Pages using deprecated templates]] | ||
| + | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:13, 26 November 2018
| The stub template {{Deprecated stub}} is deprecated. Please use {{{2}}} instead. |
The {{Deprecated stub}} template notifies users that a given stub template is no longer used and should be replaced by one of several more precise templates. 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 rarely deleted, and are usually kept as soft redirects.
Usage
{{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
{{Deprecated stub|Old-stub|{{Tl|This-new-stub}} or {{Tl|That-new-stub}}}}
| The stub template {{Old-stub}} is deprecated. Please use {{This-new-stub}} or {{That-new-stub}} instead. |
See also
- {{Deprecated template}} – for deprecated non-stub templates
| The above documentation is transcluded from Template:Deprecated stub/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |