Template:Deprecated: Difference between revisions
Template page
More actions
cat / desc. / + note= |
examples |
||
| Line 5: | Line 5: | ||
---- | ---- | ||
===Usage=== | |||
To mark templates that are deprecated. It should go at the very beginning of the deprecated template's code inside of <nowiki><noinclude></nowiki> tags. | To mark templates that are deprecated. It should go at the very beginning of the deprecated template's code inside of <nowiki><noinclude></nowiki> 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. | |||
<nowiki>{{</nowiki>deprecated|template}} → {{deprecated|template}} | |||
<nowiki>{{</nowiki>deprecated|template|2nd template}} → {{deprecated|template|2nd template}} | |||
<nowiki>{{</nowiki>deprecated|note=Customized note.}} → {{deprecated|note=Customized note.}} | |||
<nowiki>{{</nowiki>deprecated|template|note=Customized note.}} → {{deprecated|template|note=Customized note.}} | |||
[[Category:Template namespace templates|{{PAGENAME}}]] | [[Category:Template namespace templates|{{PAGENAME}}]] | ||
Revision as of 00:25, 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. |