Template:Outdated: Difference between revisions

From PZwiki
(added zh-hans)
m (Automated template error handling update)
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Languages}}{{Documentation}}[[Category:Maintenance templates]][[Category:Mbox templates]]</noinclude><includeonly>{{NoticeBox
<noinclude>
|color=#0fa
{{Documentation/sandbox|doc=
|image=[[File:AppleRotten.png]]
Added to articles that are significantly outdated, mentioning features that no longer function in the same way.
|text={{#switch: {{Subpage|slash=false}}
 
  |es={{Template:Outdated/es}}
Adds articles to the "{{ll|:Category:Outdated articles|Outdated articles}}" category.
  |nl={{Template:Outdated/nl}}
 
  |pt={{Template:Outdated/pt}}
==Usage==
  |zh-hans={{Template:Outdated/zh-hans}}
===Parameters===
  |en <!-- default -->
;<code>1</code>
  |#default=<span style="font-size:120%">This article or section may be '''outdated'''.</span><br>Editors are encouraged to update this section with new information.
: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>
:If set to <code>true</code>, will display "section" instead of "article" in the title.
;<code>hidecat</code>
:If set to <code>true</code>, this will not add the page to the "{{ll|:Category:Outdated articles|Outdated articles}}" category.
 
==Examples==
*{{tll|Outdated}}
{{Outdated|hidecat=true}}
 
{{Translation guide|<syntaxhighlight lang="html">
{{#switch: {{{1|}}}
| title = This {{{2}}} may be outdated.
| note = Editors are encouraged to update this {{{2}}} with new information.
| #default = {{Error|translation}}
}}
}}
|cat=[[Category:Outdated articles{{#ifeq:{{Language code|{{Subpage|slash=false}}}}|true|{{Subpage}}|}}]] <!-- checks if pagename = subpagename in language code registry then returns null, else add subpagename -->
</syntaxhighlight>}}
|hidecat={{{hidecat|}}}
 
==See also==
*{{ll|PZwiki:Mboxes}}
}}
{{ll|Category:Mbox}}
</noinclude><includeonly>{{Mbox
| color = #00ffaa
| sign = [[File:AppleRotten.png|link=Template:Outdated{{lcs}}]]
| title = {{tt|name=Outdated
  | default = This {{Page ns|{{{section|}}}}} may be outdated.
  | arg1 = title
  | arg2 = {{Page ns|{{{section|}}}}}
  }}
| content = {{#if:{{{1|}}}|{{{1}}}}}
| note = {{tt|name=Outdated
  | default = Editors are encouraged to update this {{Page ns|{{{section|}}}}} with new information.
  | arg1 = note
  | arg2 = {{Page ns|{{{section|}}}}}
  }}
| cat = {{yesno|{{{hidecat|}}}|yes=|no=Outdated articles{{lcs}}}}
| id = outdated
| collapsed = true
}}</includeonly>
}}</includeonly>

Latest revision as of 08:46, 11 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 = {{Error|translation}}
}}

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.