Template:Outdated: Difference between revisions

From PZwiki
m (translation fix)
(added reason)
Line 7: Line 7:
==Usage==
==Usage==
===Parameters===
===Parameters===
;<code>1</code>
:The reason why and what is outdated. This parameter is recommended to help editors know what to improve on the page or section.
;<code>section</code>
;<code>section</code>
:If set to <code>true</code>, will display "section" instead of "article" in the title.
:If set to <code>true</code>, will display "section" instead of "article" in the title.
Line 19: Line 21:
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
| title = This {{{2}}} may be outdated.
| title = This {{{2}}} may be outdated.
| content = Editors are encouraged to update this {{{2}}} with new information.
| note = Editors are encouraged to update this {{{2}}} with new information.
| #default = [[Category:Incorrect template usage]]
| #default = [[Category:Incorrect template usage]]
}}
}}
Line 36: Line 38:
   | arg2 = {{Page ns|{{{section|}}}}}
   | arg2 = {{Page ns|{{{section|}}}}}
   }}
   }}
| content = {{tt|name=Outdated
| content = {{#if:{{{1|}}}|{{{1}}}}}
| note = {{tt|name=Outdated
   | default = Editors are encouraged to update this {{Page ns|{{{section|}}}}} with new information.
   | default = Editors are encouraged to update this {{Page ns|{{{section|}}}}} with new information.
   | arg1 = content
   | arg1 = note
   | arg2 = {{Page ns|{{{section|}}}}}
   | arg2 = {{Page ns|{{{section|}}}}}
   }}
   }}

Revision as of 11:12, 6 March 2024

Notebook.pngTemplate Documentation

Added to articles that are significantly outdated, mentioning features that no longer function in the same way.

Adds articles to the "Outdated articles" category.

Usage

Parameters

1
The reason why and what is outdated. This parameter is recommended to help editors know what to improve on the page or section.
section
If set to true, will display "section" instead of "article" in the title.
hidecat
If set to true, this will not add the page to the "Outdated articles" category.

Examples

AppleRotten.png
This template may be outdated.
Editors are encouraged to update this template with new information.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| title = This {{{2}}} may be outdated.
| note = Editors are encouraged to update this {{{2}}} with new information.
| #default = [[Category:Incorrect template usage]]
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.