Difference between revisions of "Template:Deprecated template/doc"
imported>Mercenario97 (+ es) |
imported>Davidgothberg (Updated the doc and clarified that this template itself is not deprecated.) |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | ||
| − | {{ | + | This is the {{tl|tdeprecated}} template. |
| + | |||
| + | Note: This template itself is ''not'' deprecated. However using it with only one parameter is deprecated, it now takes 2-3 parameters instead. In the display above it gets no parameters, that's why it says: "This usage is deprecated." | ||
| + | |||
| + | {{tl|deprecated template}} redirects here and can be used as an alternative name for this template. | ||
| + | |||
| + | This 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. | Whenever possible, it should replace the deprecated template's content entirely, so that someone using the template will see the message. | ||
| − | == Usage == | + | === 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]]). | ||
| Line 12: | Line 18: | ||
: <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 ==== |
| + | |||
Normal usage categorises templates to [[:Category:Deprecated templates|Deprecated templates]]. | Normal usage categorises templates to [[:Category:Deprecated templates|Deprecated templates]]. | ||
| Line 22: | Line 29: | ||
{{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>|category=}} | {{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>|category=}} | ||
| − | === | + | ==== With a date ==== |
| + | |||
Adding the 'date' parameter subcategorises the template to [[:Category:Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]. | Adding the 'date' parameter subcategorises the template to [[:Category:Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]. | ||
| Line 28: | Line 36: | ||
{{tdeprecated|old|new|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|category=}} | {{tdeprecated|old|new|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|category=}} | ||
| − | == See also == | + | === See also === |
* {{Lts|Sdeprecated}} | * {{Lts|Sdeprecated}} | ||
* [[:Category:Deprecated templates]] | * [[:Category:Deprecated templates]] | ||
| − | <includeonly><!-- | + | <includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> |
| − | |||
[[Category:Template namespace templates|{{PAGENAME}}]] | [[Category:Template namespace templates|{{PAGENAME}}]] | ||
[[Category:Redirect templates|{{PAGENAME}}]] | [[Category:Redirect templates|{{PAGENAME}}]] | ||
Revision as of 17:21, 17 August 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. |
This is the {{tdeprecated}} template.
Note: This template itself is not deprecated. However using it with only one parameter is deprecated, it now takes 2-3 parameters instead. In the display above it gets no parameters, that's why it says: "This usage is deprecated."
{{deprecated template}} redirects here and can be used as an alternative name for this template.
This 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 usage
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
With a date
Adding the 'date' parameter subcategorises the template to Templates deprecated since December 2025.
See also