Template:Deprecated template: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Locke Cole
(rm unnecessary {{1}} calls, format, add additional example utilizing "use=")
m (181 revisions imported)
 
(153 intermediate revisions by 49 users not shown)
Line 1: Line 1:
{| class="messagebox" id="tdeprecated"
{{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,new,note,historical,nocat|date=__DATE__|$B=
| rowspan="2" | [[Image:Red-x.gif|deprecated template]]
{{Ombox
! Template&#160;<includeonly>[[Category:Deprecated templates|{{PAGENAME}}]]{{PAGENAME}}</includeonly><noinclude>{&#123;PAGENAME&#125;}</noinclude> has been deprecated.
| image = [[File:Stop hand nuvola.svg|40px]]
|-
| type  = delete
| align="center" | Please use {{{use|'''{{Tlx|{{{1|x1}}}}}'''}}} instead.
| 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>}}}}}}
|}<noinclude>
  | &#32;Please {{#if:{{{3|}}}
==Usage==
    |use {{tlx|{{{new|{{{2}}}}}}|{{{3}}}}}
{{PAGENAME}} adds a template to [[:Category:Deprecated templates]] showing a warning.
    |{{#if:{{{new|}}}
:Usage: <code>&lt;noinclude&gt;</code> {{Tlx|{{PAGENAME}}|{{{1|x1}}}}} <code>&lt;/noinclude&gt;</code>  
      |see [[{{{new}}}]]
:<code>&lt;noinclude&gt;</code> {{Tlx|{{PAGENAME}}|use=message}} <code>&lt;/noinclude&gt;</code>
      |use [[Template:{{{2}}}]]
<div align="right">{{Lts/|{{PAGENAME}}}}</div>
      }}
 
    }} instead.
[[Category:Template templates|{{PAGENAME}}]]
}} {{{note|}}}
[[Category:Redirect templates|{{PAGENAME}}]]
}}{{#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]]}}
    }}
  }}
}}<noinclude>
{{Documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
</noinclude>

Latest revision as of 01:40, 4 September 2020