Difference between revisions of "Template:Deprecated stub"

From blackwiki
Jump to navigation Jump to search
imported>Debresser
(1. Remove whiteline. 2. Move category to documentation.)
imported>Debresser
(Copy code from Deprecated template, while keeping special category for stubs as well.)
Line 3: Line 3:
 
| image = [[File:Imbox content.png|40px|alt=|link=]]
 
| image = [[File:Imbox content.png|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 -->
 +
            |{{DMC|Deprecated templates|from|{{{date|}}}}}[[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>

Revision as of 21:15, 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