Template:DeprecatedTpl/Doc
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This template provides a way to mark other templates (or even itself...) as deprecated. This gives visibility on deprecated templates that must be updated while reading a page. The list of deprecated templates can be seen here. Then for each deprecated template you can check out Tools > Page information
to list pages that include it.
DeprecatedTpl takes two optional arguments :
- inline
- If set, the deprecation indicator will be designed inline, whatever the value. If not set, the deprecation indicator will be design as a block.
- use
- Indicates the name of the template to use instead, if any.
Examples:
Template:Fancynote
- The fancynote template deprecated<div class="note">
<div class="note-head"><i class="fas fa-comment-alt"></i></i> Note</div><div class="note-body">
[[:Template:1]]}
<div class="has-warning"><small class="help-block">Wiki Editors: This template is deprecated.</small></div>
</div></div>
Note
Wiki Editors: This template is deprecated.
Template:Fancynote
- The fancynote template deprecated with inline display<div class="note">
<div class="note-head"><i class="fas fa-comment-alt"></i></i> Note</div><div class="note-body">
[[:Template:1]]}
<sup class="label label-warning" title="Wiki Editors: This template is deprecated." style="cursor:help">deprecated</sup>
</div></div>
Note
Template:1} deprecated
Template:Fancynote
- The fancynote template deprecated with replacement template info<div class="note">
<div class="note-head"><i class="fas fa-comment-alt"></i></i> Note</div><div class="note-body">
[[:Template:1]]}
<div class="has-warning"><small class="help-block">Wiki Editors: This template is deprecated, please use [[Template:Note]] instead.</small></div>
</div></div>
Note
Wiki Editors: This template is deprecated, please use Template:Note instead.
Template:Fancynote
- The fancynote template deprecated with inline display and replacement template info<div class="note">
<div class="note-head"><i class="fas fa-comment-alt"></i></i> Note</div><div class="note-body">
[[:Template:1]]}
<sup class="label label-warning" title="Wiki Editors: This template is deprecated, please use [[Template:Note]] instead." style="cursor:help">deprecated</sup>
</div></div>
Note
Template:1} deprecated