Template:Deprecated template/doc: Difference between revisions

ArrowHead294 (talk | contribs)
Make documentation page
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{substitute|no}}
Whenever possible, it should replace the deprecated template's content entirely, so that someone using the template will see only the message.
: ''Not to be confused with [[Template:Deprecated]].''


== Usage ==
The <code>{{<nowiki />'''Deprecated template'''}}</code> template notifies users that a given template has been replaced by a different one or ones, or simply deprecated (advised to no longer be used) without a replacement.
 
Whenever possible, this template should replace the deprecated template's content entirely, so that someone using the template will see only the message.
 
=== Usage ===
Use as follows:
Use as follows:


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


to get:
to get:


{{Mbox
{{Mbox
| icon = Icon-Deprecated.png
| type = delete
| type = delete
| text = '''Template: Old template''' is deprecated. Please use [[Template: New template]] instead. Further details.
| text = '''Template: Old template''' is deprecated. Please use [[Template: New template]] instead. Further details.
Line 19: Line 24:


=== See also ===
=== See also ===
* [[Template:Deprecated]]
* [[Template:Deprecated]] – for pages whose material is no longer valid.
* [[Template:Deprecated parameters]] – for template parameters whose use is no longer advised.
* [[:Category:Deprecated templates]]
* [[:Category:Deprecated templates]]
* [[:Category:Pages with deprecated templates]]
* [[:Category:Pages with deprecated templates]]