Template:Deprecated template: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 2: Line 2:
| icon = Icon-Deprecated.png
| icon = Icon-Deprecated.png
| type = delete
| type = delete
| text = [[{{ARTICLESPACE}}: {{{1|{{ROOTPAGENAME}}}}}]] is deprecated. {{#if:{{{2|}}}|Please use [[{{{2}}}]] instead.}} {{{details|}}}
| text = [[{{ARTICLESPACE}}:{{{1|{{ROOTPAGENAME}}}}}]] is deprecated. {{#if:{{{2|}}}|Please use [[{{{2}}}]] instead.}} {{{details|}}}
}}{{#ifeq: {{ARTICLESPACE}}:{{ucfirst:{{{1|}}}}}|{{ARTICLESPACE}}:{{ROOTPAGENAME}}|[[Category:Deprecated templates]]|[[Category:Pages with deprecated templates]]}}{{#ifeq: {{lc:{{ARTICLEROOTPAGENAME}}}}|template:deprecated template||[[Category:Deprecated templates]]}}</includeonly><noinclude>
}}{{#ifeq: {{ARTICLESPACE}}:{{ucfirst:{{{1|}}}}}|{{ARTICLEROOTPAGENAME}}|[[Category:Deprecated templates]]|[[Category:Pages with deprecated templates]]}}{{#ifeq: {{lc:{{ARTICLEROOTPAGENAME}}}}|template:deprecated template||[[Category:Deprecated templates]]}}</includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Message boxes]]
[[Category:Message boxes]]
</noinclude>
</noinclude>

Revision as of 14:03, 4 March 2025

Template documentation[view] [edit] [history] [purge]
This template should not be substituted.
Not to be confused with Template:Deprecated.

The {{Deprecated template}} 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:

{{Deprecated template|Old template|Template: New template|details=Further details.}}

to get:

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 parameter names can be omitted if they are used in the same order as specified above.

See also