The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Template:DeprecatedTpl"
m (Fixed final dot) |
m (Added a prefix to explicit that this message is targeted to Wiki Editors) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:message|This template is deprecated{{#if: {{{use|}}} | , please use [[Template:{{{use|}}}]] instead }}.}} | <includeonly>{{#vardefine:message|Wiki Editors: This template is deprecated{{#if: {{{use|}}} | , please use [[Template:{{{use|}}}]] instead }}.}} | ||
{{#if: {{{inline|}}} | {{#if: {{{inline|}}} | ||
| <sup class="label label-warning" title="{{#var:message}}" style="cursor:help">deprecated</sup> | | <sup class="label label-warning" title="{{#var:message}}" style="cursor:help">deprecated</sup> | ||
| <div class="has-warning"><small class="help-block">{{#var:message}}</small></div> | | <div class="has-warning"><small class="help-block">{{#var:message}}</small></div> | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 11:13, September 29, 2014
[edit] GoalThis 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 UsageDeprecatedTpl takes two optional arguments :
ExamplesTemplate: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 set{{note|{{{1}}}{{DeprecatedTpl|inline=true}}}}
Note An example of the fancynote if it had the inline deprecated template deprecated Template:Fancynote - The fancynote template deprecated with use set{{note|{{{1}}}{{DeprecatedTpl|use=Note}}}}
Note An example of the fancynote if it had the deprecated template Wiki Editors: This template is deprecated, please use Template:Note instead.
Template:Fancynote - The fancynote template deprecated with inline and use set{{note|{{{1}}}{{DeprecatedTpl|inline=true|use=Note}}}}
Note An example of the fancynote if it had the inline deprecated template and information about replacement template. deprecated
|