More actions
Mark a template as deprecated and should no longer be used.
See also Template:Deprecated_template.
Usage
If the template is still in use, this warning should be added in <noinclude>...</noinclude>
tags at the top of the page. This will not affect any pages where the template is used and the use of the template can be gradually phased out.
If the template is fully deprecated and should no longer be used at all, this warning should be added without the <noinclude>...</noinclude>
tags so that it appears whenever the template is used.
Templates marked using this template are added to Category:Deprecated templates. Once all usages of the deprecated template are replaced, the template should be deleted to avoid polluting the template namespace.
Examples
Basic usage
Markup{{Deprecated}}Renders as
This template is considered deprecated and its use in new pages should be avoided. No reason was specified. No alternatives were specified when this template was added. |
Suggest alternatives to use instead
Markup{{Deprecated|{{t link|this}} or {{t link|that}} }}Renders as
This template is considered deprecated and its use in new pages should be avoided. No reason was specified. Alternatives: {{this}} or {{that}} |
Specify a reason for deprecation
Markup{{Deprecated|Basic MediaWiki links|Icons of this template harm the readability of the text where it is used.}}Renders as
This template is considered deprecated and its use in new pages should be avoided. Icons of this template harm the readability of the text where it is used. Alternatives: Basic MediaWiki links |
Block format
Markup{{Deprecated | reason = Icons of this template harm the readability of the text where it is used. | alternatives = Basic MediaWiki links }}Renders as
This template is considered deprecated and its use in new pages should be avoided. Icons of this template harm the readability of the text where it is used. Alternatives: Basic MediaWiki links |
Template data
Mark a template as deprecated.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Alternatives | 1 alternatives | Alternative template(s) to use instead of the deprecated one. | String | suggested |
Reason | 2 reason | The reason the template was deprecated and its use should be avoided. | String | suggested |