Difference between revisions of "Template:Deprecated template"

From Shipbucket Wiki
Jump to: navigation, search
(Undid revision 671618967 by GeoffreyT2000 (talk) Remove recently introduced weasel word "modern".)
 
m (Protected "Template:Deprecated template": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed ac...)
Line 1: Line 1:
 +
{{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,new,note,historical,nocat|date=__DATE__|$B=
 
{{Ombox
 
{{Ombox
| demospace = {{{demospace|}}}
+
| type      = content
| type      = style
+
| text      = [[{{{old|Template:{{{1|{{PAGENAME}}}}}}}}]] is [[deprecation|deprecated]]{{#if:{{{by|}}}|&#32;by {{{by}}}}}{{#if:{{{historical|}}}|, but preserved for historical reasons}}.{{#if:{{{new|{{{2<includeonly>|</includeonly>}}}}}}
| image    = [[File:Imbox content.png|40px|alt=|link=]]
+
   | &#32;Please {{#if:{{{3|}}}
| text      = [[{{{old|Template:{{{1|{{PAGENAME}}}}}}}}]] is [[deprecation|deprecated]]{{#if:{{{by|}}}|&#32;by {{{by}}}}}.{{#if:{{{new|{{{2<includeonly>|</includeonly>}}}}}}
+
    |use {{tlx|{{{new|{{{2}}}}}}|{{{3}}}}}
   | &#32;Please use [[{{{new|Template:{{{2}}}}}}{{#if:{{{3|}}}
+
    |{{#if:{{{new|}}}
    |<nowiki>|</nowiki>{{{3}}}
+
      |see [[{{{new}}}]]
     }}]] instead.
+
      |use [[Template:{{{2}}}]]
 +
      }}
 +
     }} instead.
 
}} {{{note|}}}
 
}} {{{note|}}}
 
}}{{#ifeq:{{{nocat|}}}|true
 
}}{{#ifeq:{{{nocat|}}}|true
   ||{{#ifeq:{{ARTICLESPACE}}|Template
+
   ||{{Template other
       |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise subpages, like /doc, /sandbox or /testcasespages -->
+
       |{{When on basepage<!-- Don't categorise subpages, like /doc, /sandbox or /testcases -->
         |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself -->
+
         |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1|{{PAGENAME}}}}}}}<!-- Only for the deprecated template itself -->
             |{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}
+
             |<includeonly>{{#if:{{{historical|}}}|[[Category:Deprecated templates kept for historical reasons]]|{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}}}</includeonly>
 
           }}
 
           }}
        }}
+
      }}
 
       |{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}}
 
       |{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}}
 
     }}
 
     }}
   }}<noinclude>
+
   }}
 +
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 19:21, 10 January 2018

Documentation icon Template documentation[create]