Difference between revisions of "Template:Deprecated template/doc"
Jump to navigation
Jump to search
(+ja) |
imported>Thumperward (split additional docs from discussion page) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | ||
| − | ==Usage== | + | |
| + | {{[[Template:deprecated template|deprecated template]]}} notifies users that a given template has been replaced by a different one. This is useful when usage is different (so a redirect won't work) or you'd like to reduce the number of redirects (which makes bot parsing more difficult). | ||
| + | |||
| + | Whenever possible, it should replace the deprecated template's content entirely, so that someone using the template will see the message. | ||
| + | |||
| + | == Usage == | ||
| + | |||
: <code><nowiki>{{tdeprecated|old template name|new template name}}</nowiki></code> (categorises to [[:Category:Deprecated templates|Deprecated templates]]). | : <code><nowiki>{{tdeprecated|old template name|new template name}}</nowiki></code> (categorises to [[:Category:Deprecated templates|Deprecated templates]]). | ||
| + | |||
: <code><nowiki>{{tdeprecated|old template name|new template name|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code> (categorises to [[:Category:Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]). | : <code><nowiki>{{tdeprecated|old template name|new template name|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code> (categorises to [[:Category:Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]). | ||
| + | |||
| + | === Normal === | ||
| + | Normal usage categorises templates to [[:Category:Deprecated templates|Deprecated templates]]. | ||
| + | |||
| + | <pre>{{tdeprecated|old|new}} | ||
| + | {{tdeprecated|old|new|parameter}} | ||
| + | {{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>}}</pre> | ||
| + | {{tdeprecated|old|new|category=}} | ||
| + | {{tdeprecated|old|new|parameter|category=}} | ||
| + | {{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>|category=}} | ||
| + | |||
| + | === Dated === | ||
| + | Adding the 'date' parameter subcategorises the template to [[:Category:Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]. | ||
| + | |||
| + | <div style="{{quote style}} font-family:monospace;"><nowiki>{{tdeprecated|old|new|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></div> | ||
| + | {{tdeprecated|old|new|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|category=}} | ||
| + | |||
| + | == See also == | ||
| + | |||
| + | * {{Lts|Sdeprecated}} | ||
| + | * [[:Category:Deprecated templates]] | ||
| + | |||
<includeonly><!-- | <includeonly><!-- | ||
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ||
Revision as of 11:14, 12 April 2008
| This is a documentation subpage for Template:Deprecated template. It contains usage information, categories and other content that is not part of the original template page. |
{{deprecated template}} notifies users that a given template has been replaced by a different one. This is useful when usage is different (so a redirect won't work) or you'd like to reduce the number of redirects (which makes bot parsing more difficult).
Whenever possible, it should replace the deprecated template's content entirely, so that someone using the template will see the message.
Contents
Usage
{{tdeprecated|old template name|new template name}}(categorises to Deprecated templates).
{{tdeprecated|old template name|new template name|date=December 2025}}(categorises to Templates deprecated since December 2025).
Normal
Normal usage categorises templates to Deprecated templates.
{{tdeprecated|old|new}}
{{tdeprecated|old|new|parameter}}
{{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>}}
Template:Tdeprecated Template:Tdeprecated Template:Tdeprecated
Dated
Adding the 'date' parameter subcategorises the template to Templates deprecated since December 2025.
{{tdeprecated|old|new|date=December 2025}}
See also