Template:Deprecated: Difference between revisions
Template page
More actions
m sp |
category= in examples |
||
| Line 15: | Line 15: | ||
The default (no parameters) is what is shown above. | The default (no parameters) is what is shown above. | ||
<nowiki>{{</nowiki>deprecated|template}} → {{deprecated|template}} | <nowiki>{{</nowiki>deprecated|template}} → {{deprecated|template|category=}} | ||
<nowiki>{{</nowiki>deprecated|template|2nd template}} → {{deprecated|template|2nd template}} | <nowiki>{{</nowiki>deprecated|template|2nd template}} → {{deprecated|template|2nd template|category=}} | ||
<nowiki>{{</nowiki>deprecated|note=Customized note.}} → {{deprecated|note=Customized note.}} | <nowiki>{{</nowiki>deprecated|note=Customized note.}} → {{deprecated|note=Customized note.|category=}} | ||
<nowiki>{{</nowiki>deprecated|template|note=Customized note.}} → {{deprecated|template|note=Customized note.}} | <nowiki>{{</nowiki>deprecated|template|note=Customized note.}} → {{deprecated|template|note=Customized note.|category=}} | ||
[[Category:Marker templates|{{PAGENAME}}]] | [[Category:Marker templates|{{PAGENAME}}]] | ||
Revision as of 00:28, 15 March 2008
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}} →
Please use {{Template}} instead. |
{{deprecated|template|2nd template}} →
Please use {{Template}} or {{2nd template}} instead. |
{{deprecated|note=Customized note.}} →
Customized note. |
{{deprecated|template|note=Customized note.}} →
Please use {{Template}} instead. Customized note. |