Difference between revisions of "Template:DeprecatedTpl/Doc"

From Funtoo
Jump to: navigation, search
(Created page with "This template provides a way to mark other templates (or even itself...) as deprecated. This gives visibility on deprecated templates that must be updated while reading a page...")
 
m
Line 9: Line 9:
  
 
{{file|name=Template:Fancynote|desc=The fancynote template deprecated|body=
 
{{file|name=Template:Fancynote|desc=The fancynote template deprecated|body=
{{note|{{1}}}{{DeprecatedTpl}}}}
+
<nowiki>{{note|{{{1}}}{{DeprecatedTpl}}}}</nowiki>
 
}}
 
}}
  
{{note|{{1}}}{{DeprecatedTpl}}}}
+
{{note|An example of the fancynote if it had the deprecated template{{DeprecatedTpl}}}}
  
 
{{file|name=Template:Fancynote|desc=The fancynote template deprecated with inline display|body=
 
{{file|name=Template:Fancynote|desc=The fancynote template deprecated with inline display|body=
 
   {{note|{{1}}}{{DeprecatedTpl|inline=true}}}}
 
   {{note|{{1}}}{{DeprecatedTpl|inline=true}}}}
 
}}
 
}}
 
{{note|{{1}}}{{DeprecatedTpl|inline=true}}}}
 
 
{{file|name=Template:Fancynote|desc=The fancynote template deprecated with replacement template info|body=
 
  {{note|{{1}}}{{DeprecatedTpl|use=Note}}}}
 
}}
 
 
{{note|{{1}}}{{DeprecatedTpl|use=Note}}}}
 
 
{{file|name=Template:Fancynote|desc=The fancynote template deprecated with inline display and replacement template info|body=
 
  {{note|{{1}}}{{DeprecatedTpl|inline=true|use=Note}}}}
 
}}
 
 
{{note|{{1}}}{{DeprecatedTpl|inline=true|use=Note}}}}
 

Revision as of 06:58, September 29, 2014

This template provides a way to mark other templates (or even itself...) as deprecated. This gives visibility on deprecated templates that must be updated while reading a page. The list of deprecated templates can be seen here. Then for each deprecated template you can check out Tools > Page information to list pages that include it.

DeprecatedTpl takes two optional arguments :

inline
If set, the deprecation indicator will be designed inline, whatever the value. If not set, the deprecation indicator will be design as a block.
use
Indicates the name of the template to use instead, if any.

Examples:

   Template:Fancynote - The fancynote template deprecated
{{note|{{{1}}}{{DeprecatedTpl}}}}
   Note

An example of the fancynote if it had the deprecated template

Wiki Editors: This template is deprecated.
   Template:Fancynote - The fancynote template deprecated with inline display
<div class="note">
<div class="note-head"><i class="far fa-comment-alt"></i>   Note</div><div class="note-body">
[[:Template:1]]}
<sup class="label label-warning" title="Wiki Editors: This template is deprecated." style="cursor:help">deprecated</sup>
</div></div>