Template:Deprecated template: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Update to {{mbox}}, thus now adapts its looks depending on page type. Changed from the CSS hack "display:none;" to using proper "#if:" logic instead. And fixed a lot more. Tested in the /sandbox.
Ookami (talk | contribs)
m 181 revisions imported
 
(114 intermediate revisions by 29 users not shown)
Line 1: Line 1:
{{mbox
{{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,new,note,historical,nocat|date=__DATE__|$B=
| type = style
{{Ombox
| image = [[Image:Symbol opinion vote.svg|40px]]
| image = [[File:Stop hand nuvola.svg|40px]]
| text =
| type  = delete
  {{#if:{{{new|{{{2|}}} }}}
| 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>}}}}}}
  | <!-- New usage (with or without date)
  | &#32;Please {{#if:{{{3|}}}
    -->The template {{[[Template:{{{1}}}|{{{1}}}]]}} is deprecated. Please use {{{new|{{[[Template:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}
     |use {{tlx|{{{new|{{{2}}}}}}|{{{3}}}}}
     | <nowiki>|</nowiki>{{{3}}}
    |{{#if:{{{new|}}}
    }}}} }}} instead.
      |see [[{{{new}}}]]
  | <!-- Old usage (deprecated, being switched)
      |use [[Template:{{{2}}}]]
    -->The template {{[[Template:{{PAGENAME}}|{{PAGENAME}}]]}} is [[:Category:Deprecated templates|deprecated]]. Please use {{{use|{{[[Template:{{{1}}}|{{{1}}}]]}}}}} instead. <br> <small>This usage is deprecated. Please replace it with <nowiki>{{tdeprecated|</nowiki>{{PAGENAME}}<nowiki>|</nowiki>{{{1}}}<nowiki>}}</nowiki>.</small> <includeonly>{{{category|[[Category:Deprecated use of tdeprecated]]}}}</includeonly>
      }}
    }} instead.
}} {{{note|}}}
}}{{#ifeq:{{{nocat|}}}|true
  ||{{Template other
      |{{Sandbox other|<!-- Don't categorise subpages, like /doc, /sandbox or /testcases -->|
          {{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1|{{PAGENAME}}}}}}}<!-- Only for the deprecated template itself -->
            |<includeonly>{{#if:{{{historical|}}}|[[Category:Deprecated templates kept for historical reasons]]|[[Category:Deprecated templates]]}}</includeonly>
          }}
      }}
      |{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}}
    }}
   }}
   }}
}}<includeonly>{{{category|{{#ifeq:{{ARTICLESPACE}}|Template
}}<noinclude>
| {{#if:{{{date|}}}
{{Documentation}}
  | [[Category:Templates deprecated since {{{date}}}|{{PAGENAME}}]]
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
  | [[Category:Deprecated templates|{{PAGENAME}}]]
  }}
| [[Category:Pages using deprecated templates]]
}} }}}</includeonly><noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 01:40, 4 September 2020