Template:Deprecated template: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Pathoschild
merged in {{deprecated template}} with tracking category for old usage and check to switch between old and new syntaxes
meta>Pathoschild
m corrected check
Line 3: Line 3:
|style="padding-left:.5em;"|  
|style="padding-left:.5em;"|  
<!-- old usage (deprecated, being switched) -->
<!-- old usage (deprecated, being switched) -->
{{#if:{{{2|}}}|<div style="display:none;">}}The template {{[[Template:{{PAGENAME}}|{{PAGENAME}}]]}} is deprecated. Please use {{{use|{{[[Template:{{{1}}}|{{{1}}}]]}}}}} instead.<br /><small>This usage is deprecated. Please replace it with <nowiki>{{tdeprecated|</nowiki>{{PAGENAME}}|{{{1}}}|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>.{{#if:{{{2|}}}|<includeonly>[[Category:Deprecated use of tdeprecated]]</includeonly>}}
{{#if:{{{new|{{{2|}}}}}}|<div style="display:none;">}}The template {{[[Template:{{PAGENAME}}|{{PAGENAME}}]]}} is deprecated. Please use {{{use|{{[[Template:{{{1}}}|{{{1}}}]]}}}}} instead.<br /><small>This usage is deprecated. Please replace it with <nowiki>{{tdeprecated|</nowiki>{{PAGENAME}}|{{{1}}}|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>.{{#if:{{{new|{{{2|}}}}}}|<includeonly>[[Category:Deprecated use of tdeprecated]]</includeonly>}}
<!-- new usage -->
<!-- new usage -->
{{#if:{{{2|}}}|</div>|<div style="display:none;">}}'''The template {{[[Template:{{{1}}}|{{{1}}}]]}} is deprecated. Please use {{{new|{{[[Template:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}|<nowiki>|</nowiki>}}{{{3|}}}}}}}} instead.{{#if:{{{2|}}}||</div>}}
{{#if:{{{new|{{{2|}}}}}}|</div>|<div style="display:none;">}}'''The template {{[[Template:{{{1}}}|{{{1}}}]]}} is deprecated. Please use {{{new|{{[[Template:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}|<nowiki>|</nowiki>}}{{{3|}}}}}}}} instead.{{#if:{{{new|{{{2|}}}}}}||</div>}}
|}<includeonly>{{{category|{{#if:{{{date|}}}|[[Category:Templates deprecated since {{{date}}}|{{PAGENAME}}]]|[[Category:Deprecated templates|{{PAGENAME}}]]}}}}}</includeonly><noinclude>
|}<includeonly>{{{category|{{#if:{{{date|}}}|[[Category:Templates deprecated since {{{date}}}|{{PAGENAME}}]]|[[Category:Deprecated templates|{{PAGENAME}}]]}}}}}</includeonly><noinclude>



Revision as of 17:39, 5 October 2006

File:Symbol comment vote.png

The template {{Deprecated template}} is deprecated. Please use {{[[Template:{{{1}}}|{{{1}}}]]}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Deprecated template|{{{1}}}|date=November 2024}}.

The template {{[[Template:{{{1}}}|{{{1}}}]]}} is deprecated. Please use {{[[Template:{{{2}}}|{{{2}}}]]}} instead.

Usage:

{{tdeprecated|old template name|new template name}} (categorises to Deprecated templates).
{{tdeprecated|old template name|new template name|date=November 2024}} (categorises to Templates deprecated since November 2024).