Difference between revisions of "Template:Update"
Jump to navigation
Jump to search
Template documentation ()
MyraMidnight (talk | contribs) (A template to insert where outdated content is) |
MyraMidnight (talk | contribs) m |
||
| (24 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ambox|type=outdated|text={{#switch:{{{1}}} | + | <onlyinclude>{{ambox|type=outdated|text={{#switch:{{{1}}} |
|documentation = | |documentation = | ||
|article = This article needs to be '''updated'''. | |article = This article needs to be '''updated'''. | ||
|template = This template needs to be '''updated'''. | |template = This template needs to be '''updated'''. | ||
|category = This category needs to be '''updated'''. | |category = This category needs to be '''updated'''. | ||
| − | }} | + | |#default = This content needs to be '''updated'''. |
| − | {{{date|}}} | + | }}<!--- |
| − | *{{{part|}}} | + | -->{{#if:{{{date|}}}|({{{date}}})|}} <!--- |
| − | }} | + | -->{{#if:{{{updated|}}}| - ''Updated {{{updated}}}}}''<!-- |
| + | -->{{#if:{{{part|}}}| | ||
| + | *'''Part:''' {{{part}}}|}}<!-- | ||
| + | -->{{#if:{{{reason|}}}| | ||
| + | *'''Reason:''' {{{reason}}}|}} | ||
| + | }}<includeonly>{{category handler | ||
| + | | [[Category:Pages with outdated content]] | ||
| + | | nocat = {{{nocat|}}} <!--So "nocat=true/false" works--> | ||
| + | }}<noinclude></includeonly></onlyinclude> | ||
| + | |||
| + | {{documentation}} | ||
Latest revision as of 09:32, 3 May 2017
This template is to indicate outdated content
This template will automatically put pages into the Pages with outdated content category.
Usage[edit]
1=(OPTIONAL) (can be first command unnamed, or speficied as1=)specify what type (article, category, template)date=When was this notice applied?reason=(OPTIONAL) you can state reason for why this section needs to be updatedupdated=(OPTIONAL) you can insert when this article/section was updatedpart=(OPTIONAL) specify what part of the content needs updating
Examples[edit]
{{update|date=Jan 2017|updated=20 april 2017}}
{{update|article|date=May 2017|reason=Outdated as of last [[necessity pack]] update}}
{{update|category|date=May 2017}}
{{update|reason=Just because...|part=The information about starter pets}}
- The above documentation is transcluded from Template:Update/doc.
- Editors can experiment in this template's sandbox
- Please add categories to the /doc subpage within
<includeonly>...</includeonly>