Template:Deprecated: Difference between revisions
Template page
More actions
category= in examples |
tweak |
||
| Line 1: | Line 1: | ||
{| style="border: 3px solid #f57900; | {| style="margin: 0.5em auto; width: 60%; border: 3px solid #f57900; text-align: center; padding: 4px;" | ||
| | | <big>'''This template is deprecated.'''</big>{{#if: {{{1|}}} | <br />Please use {{tl|{{{1|}}}}} {{#if: {{{2|}}} | or {{tl|{{{2|}}}}} | }} instead.}}{{#if: {{{note|}}} | <br />{{{note}}}}} | ||
|}<includeonly>{{{category|[[Category:Deprecated templates|{{PAGENAME}}]]}}}</includeonly><noinclude> | |}<includeonly>{{{category|[[Category:Deprecated templates|{{PAGENAME}}]]}}}</includeonly><noinclude> | ||
Revision as of 06:14, 17 March 2008
| This template is deprecated. |
Usage
To mark templates that are deprecated. It should go at the very beginning of the deprecated template's code inside of <noinclude> tags.
When a template is replaced by a different one (or two), simply enter the template's name the parameter(s) without the Template: prefix.
- Automatically adds tagged pages to Category:Deprecated templates. (Other categories should usually be removed.)
Examples
The default (no parameters) is what is shown above.
{{deprecated|template}} →
| This template is deprecated. Please use {{Template}} instead. |
{{deprecated|template|2nd template}} →
| This template is deprecated. Please use {{Template}} or {{2nd template}} instead. |
{{deprecated|note=Customized note.}} →
| This template is deprecated. Customized note. |
{{deprecated|template|note=Customized note.}} →
| This template is deprecated. Please use {{Template}} instead. Customized note. |