Template:Deprecated template/doc: Difference between revisions

Ganaram inukshuk (talk | contribs)
clarify how this template should be used
Overthink (talk | contribs)
update
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
Use as follows:
Use as follows:


<pre>{{Deprecated template|Old template|Template: New template|details=Further details.}}</pre>
<pre>{{Deprecated template|Template: Old template|Template: New template|details=Further details.}}</pre>


to get:
to get:


{{Mbox
{{Deprecated template|Template: Old template|Template: New template|details=Further details.}}
| icon = Icon-Deprecated.png
 
| type = delete
Note: The <code><nowiki><includeonly></nowiki></code> and <code><nowiki></includeonly></nowiki></code> tags are needed for the template to work properly on both the template page and pages where the deprecated template is transcluded.
| text = '''Template: Old template''' is deprecated. Please use [[Template: New template]] instead. Further details.
}}


The last two parameters are optional. This can be useful when the template was replaced by something other than a new template, like a category.
The last two parameters are optional. This can be useful when the template was replaced by something other than a new template, like a category.