Difference between revisions of "Template:Deprecated stub"

From blackwiki
Jump to navigation Jump to search
imported>Debresser
(Copy code from Deprecated template, while keeping special category for stubs as well.)
imported>Debresser
(Keep apart from non-stub template category tree.)
Line 7: Line 7:
 
       |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise /doc pages -->
 
       |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise /doc pages -->
 
         |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself -->
 
         |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself -->
             |{{DMC|Deprecated templates|from|{{{date|}}}}}[[Category:Deprecated stub templates]]
+
             |[[Category:Deprecated stub templates]]
 
           }}
 
           }}
 
         }}
 
         }}

Revision as of 21:33, 22 December 2013

Template documentation[view] [edit] [history] [purge]

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}}}}

See also