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>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:Imbox content.png|40px|alt=|link=]]
+
| 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

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