Difference between revisions of "Template:Deprecated"

From Nookipedia, the Animal Crossing wiki
(Add condition to suppress category)
Line 9: Line 9:
 
|message        = This {{#switch: {{NAMESPACE}} | #default = page | Template = template's functionality | File = file }} {{#if: {{{replacement|}}} | has been superseded by {{{replacement|}}} and all instances of this {{#switch: {{NAMESPACE}}|#default = page|Template = template|File = file}} should be updated to the linked {{#switch: {{NAMESPACE}}|#default = page|Template = template|File = file}} instead | is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative {{#switch: {{NAMESPACE}} | #default = page | Template = template | File = file }}. }}{{#if:{{{note|}}}|<small><br>''Further Details:''&nbsp;{{{note|}}}</small>}}
 
|message        = This {{#switch: {{NAMESPACE}} | #default = page | Template = template's functionality | File = file }} {{#if: {{{replacement|}}} | has been superseded by {{{replacement|}}} and all instances of this {{#switch: {{NAMESPACE}}|#default = page|Template = template|File = file}} should be updated to the linked {{#switch: {{NAMESPACE}}|#default = page|Template = template|File = file}} instead | is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative {{#switch: {{NAMESPACE}} | #default = page | Template = template | File = file }}. }}{{#if:{{{note|}}}|<small><br>''Further Details:''&nbsp;{{{note|}}}</small>}}
 
}}
 
}}
<includeonly>[[Category:Deprecated pages]]</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>
+
<includeonly>{{#if:{{{nocat|}}}||[[Category:Deprecated pages]]}}</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>

Revision as of 14:19, August 6, 2020

Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.

Template documentation (view)


Usage

{{Deprecated}}
{{Deprecated|replacement=Template:New_Template}}

This template is to be used for files and templates that have been deprecated and should no longer be used. The replacement parameter can be used to specify an alternative that should be used instead. The template will automatically adapt its text for file and template pages.

All pages containing this template will be added to Category:Deprecated pages. Most deprecated pages can eventually be deleted once they are no longer used.

Example

{{Deprecated|note=Please don't use this anymore}}


Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Further Details: Please don't use this anymore
Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Further Details: Please don't use this anymore