Difference between revisions of "Template:Deprecated template/doc"
imported>Davidgothberg (Explained that this template now changes style depending on what kind of page it is show on.) |
imported>Davidgothberg (→See also: Added some explanation.) |
||
| Line 46: | Line 46: | ||
=== See also === | === See also === | ||
| − | * {{ | + | * {{tl|sdeprecated}} – For deprecated shortcuts. |
| − | * [[:Category:Deprecated templates]] | + | * [[:Category:Deprecated templates]] – The category where this template lists templates it is used on. |
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
Revision as of 17:55, 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 the small text 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.
Usage
{{tdeprecated|old template name|new template name}}
{{tdeprecated|old template name|new template name|date=December 2025}}
Normal usage
Normal usage categorises templates to Category: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 Category:Templates deprecated since December 2025.
Technical details
This template changes style depending on what kind of page it is show on. Thus it adheres to the standardised looks for the different pages. For instance if this template becomes visible in an article it looks like this:
See also
- {{sdeprecated}} – For deprecated shortcuts.
- Category:Deprecated templates – The category where this template lists templates it is used on.