Template:Tdeprecated
From Wikipedia, the free encyclopedia
This template has a sandbox (edit) and testcases (edit) for editors to experiment.
This is the {{Tdeprecated}} template.
{{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}}
{{Tdeprecated|old template name|new template name|date=July 2009}}
Normal usage
Normal usage categorises templates to Category:Deprecated templates.
{{Tdeprecated|old|new}}
{{Tdeprecated|old|new|parameter}}
{{Tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>}}
| The template {{old}} is deprecated. Please use {{new}} instead. |
| The template {{old}} is deprecated. Please use {{new|parameter}} instead. |
| The template {{old}} is deprecated. Please use {{new|parameter|fuu}} instead. |
With a date
Adding the 'date' parameter subcategorises the template to Category:Templates deprecated from July 2009.
{{Tdeprecated|old|new|date=July 2009}}
| The template {{old}} is deprecated. Please use {{new}} instead. |
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:
| The template {{old}} is deprecated. Please use {{new}} instead. |
See also
- {{Sdeprecated}} – For deprecated shortcuts.
- Category:Deprecated templates – The category where this template lists templates it is used on.

