Difference between revisions of "Template:Deprecated template"

From Shipbucket Wiki
Jump to: navigation, search
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...)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,new,note,historical,nocat|date=__DATE__|$B=
 
 
{{Ombox
 
{{Ombox
| type      = content
+
| demospace = {{{demospace|}}}
| 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>}}}}}}
+
| type      = style
   | &#32;Please {{#if:{{{3|}}}
+
| image    = [[File:Imbox content.png|40px|alt=|link=]]
    |use {{tlx|{{{new|{{{2}}}}}}|{{{3}}}}}
+
| text      = [[{{{old|Template:{{{1|{{PAGENAME}}}}}}}}]] is [[deprecation|deprecated]]{{#if:{{{by|}}}|&#32;by {{{by}}}}}.{{#if:{{{new|{{{2<includeonly>|</includeonly>}}}}}}
    |{{#if:{{{new|}}}
+
   | &#32;Please use [[{{{new|Template:{{{2}}}}}}{{#if:{{{3|}}}
      |see [[{{{new}}}]]
+
    |<nowiki>|</nowiki>{{{3}}}
      |use [[Template:{{{2}}}]]
+
    }}]] instead.
      }}
 
    }} instead.
 
 
}} {{{note|}}}
 
}} {{{note|}}}
 
}}{{#ifeq:{{{nocat|}}}|true
 
}}{{#ifeq:{{{nocat|}}}|true
   ||{{Template other
+
   ||{{#ifeq:{{ARTICLESPACE}}|Template
       |{{When on basepage<!-- Don't categorise subpages, like /doc, /sandbox or /testcases -->
+
       |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise subpages, like /doc, /sandbox or /testcasespages -->
         |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1|{{PAGENAME}}}}}}}<!-- Only for the deprecated template itself -->
+
         |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself -->
             |<includeonly>{{#if:{{{historical|}}}|[[Category:Deprecated templates kept for historical reasons]]|{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}}}</includeonly>
+
             |{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}
 
           }}
 
           }}
      }}
+
        }}
 
       |{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}}
 
       |{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}}
 
     }}
 
     }}
   }}
+
   }}<noinclude>
}}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
+
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 21:07, 8 February 2018

Documentation icon Template documentation[create]