Template:Deprecated template: Difference between revisions
Jump to navigation
Jump to search
m Revert first parameter syntax fix |
Adopt template: Mbox |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{Mbox| | ||
| type = delete | |||
| text = [[Template: {{{1}}}]] is deprecated. {{#if:{{{2|}}}|Please use [[{{{2}}}]] instead.}} {{{details|}}} | |||
}} | |||
text | {{#ifeq:Template:{{ucfirst:{{{1|}}}}}|{{FULLPAGENAME}}|[[Category:Deprecated templates]]|[[Category:Pages using deprecated templates]]}}</includeonly> | ||
{{#ifeq:Template:{{ucfirst:{{{ | |||
<noinclude>The <nowiki>{{</nowiki>'''Deprecated template'''<nowiki>}}</nowiki> 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, it should replace the deprecated template's content entirely, so that someone using the template will see only the message. | <noinclude>The <nowiki>{{</nowiki>'''Deprecated template'''<nowiki>}}</nowiki> 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, it should replace the deprecated template's content entirely, so that someone using the template will see only the message. | ||
Line 11: | Line 9: | ||
Use as follows: | Use as follows: | ||
<nowiki>{{ | <nowiki>{{Deprecated template|Old template|Template: New template|details=Further details.}}</nowiki> | ||
as to get: | as to get: | ||
{{Mbox| | |||
| type = delete | |||
| text = '''Template: Old template''' is deprecated. Please use [[Template: New template]] instead. Further details. | |||
}} | |||
text | |||
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. | ||
Line 30: | Line 26: | ||
* [[:Category:Pages with deprecated templates]] | * [[:Category:Pages with deprecated templates]] | ||
[[Category: | [[Category:Message boxes]]</noinclude> |
Revision as of 07:43, 10 September 2023
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, it 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.}}
as 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.