Diferencia entre revisiones de «Plantilla:Deprecated template»

De Familia Sanchez Arjona
Saltar a: navegación, buscar
m (Protected Template:Tdeprecated: high-use template; vandalism target [edit=sysop:move=sysop])
(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.)
Línea 1: Línea 1:
{| class="messagebox"
+
{{mbox
|style="width:40px;"| [[Image:Symbol opinion vote.svg|40px]]
+
| type = style
|style="padding-left:.5em;"|
+
| image = [[Image:Symbol opinion vote.svg|40px]]
<!-- old usage (deprecated, being switched) -->
+
| text =
{{#if:{{{new|{{{2|}}}}}}|<div style="display:none;">}}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}}|{{{1}}}<nowiki>}}</nowiki>.{{#if:{{{new|{{{2|}}}}}}||<includeonly>{{{category|[[Category:Deprecated use of tdeprecated]]}}}</includeonly>}}
+
  {{#if:{{{new|{{{2|}}} }}}
<!-- new usage (with or without date) -->
+
  | <!-- New usage (with or without date)
{{#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>}}
+
    -->The template {{[[Template:{{{1}}}|{{{1}}}]]}} is deprecated. Please use {{{new|{{[[Template:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}
|}<includeonly>{{{category|{{#ifeq:{{ARTICLESPACE}}|Template|{{#if:{{{date|}}}|[[Category:Templates deprecated since {{{date}}}|{{PAGENAME}}]]|[[Category:Deprecated templates|{{PAGENAME}}]]}}|[[Category:Pages using deprecated templates]]}}}}}</includeonly><noinclude>
+
    | <nowiki>|</nowiki>{{{3}}}
{{documentation, template}}
+
    }}}} }}} instead.
 +
  | <!-- Old usage (deprecated, being switched)  
 +
    -->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>
 +
  }}
 +
}}<includeonly>{{{category|{{#ifeq:{{ARTICLESPACE}}|Template
 +
| {{#if:{{{date|}}}
 +
  | [[Category:Templates deprecated since {{{date}}}|{{PAGENAME}}]]
 +
  | [[Category:Deprecated templates|{{PAGENAME}}]]
 +
  }}
 +
| [[Category:Pages using deprecated templates]]
 +
}} }}}</includeonly><noinclude>
 +
 
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revisión del 18:58 17 ago 2008

50px Template documentation[create]