Template:Out of date: Difference between revisions
Jump to navigation
Jump to search
m (NtCarlson moved page Template:Lastupdated to Template:Out of date: More accurate name) |
(Added aliases) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{1|}}} | <includeonly>{{#if: {{{date|{{{1|}}}}}} | ||
| <!-- Date provided --> | | <!-- Date provided --> | ||
{{#lvardef: timestamp_diff | | {{#lvardef: timestamp_diff | | ||
{{#expr: | {{#expr: | ||
{{#time: xNU | {{currentdate}}}} - {{#time: xNU | {{{1|}}} }} | {{#time: xNU | {{currentdate}}}} - {{#time: xNU | {{{date|{{{1|}}}}}} }} | ||
}} | }} | ||
}} | }} | ||
Line 21: | Line 21: | ||
| type = content | | type = content | ||
| image = [[File:Refreshed_Condition_Icon.webp|35px|link=]] | | image = [[File:Refreshed_Condition_Icon.webp|35px|link=]] | ||
| text = This article was marked as out of date {{#lvar: last_update}}, and may need to be updated. {{{reason|No reason for adding this template was given.}}} Remove this notice when the article is up to date. | | text = This article was marked as out of date {{#lvar: last_update}}, and may need to be updated. {{{reason|{{{2|No reason for adding this template was given.}}}}}} Remove this notice when the article is up to date. | ||
}} | }} | ||
| <!-- No date provided --> | | <!-- No date provided --> | ||
Line 30: | Line 30: | ||
}} | }} | ||
}}{{main namespace only|[[Category:Articles in need of updating]]}}</includeonly><noinclude>{{documentation|content= | }}{{main namespace only|[[Category:Articles in need of updating]]}}</includeonly><noinclude>{{documentation|content= | ||
{{Shortcut|Needs update|Lastupdated}} | |||
Displays a notice if a page is out of date and needs to be updated. | Displays a notice if a page is out of date and needs to be updated. | ||
Line 37: | Line 38: | ||
| style = list | | style = list | ||
| caption 1 = No date supplied. | | caption 1 = No date supplied. | ||
| <nowiki>{{ | | <nowiki>{{Out of date}} </nowiki> | ||
| caption 2 = Date manually specified. | | caption 2 = Date manually specified. | ||
| <nowiki>{{ | | <nowiki>{{Out of date|2024-12-04}} </nowiki> | ||
| caption 3 = Date specified using automatic substitution. This is the preferred method. | | caption 3 = Date specified using automatic substitution. This is the preferred method. | ||
| <nowiki>{{ | | <nowiki>{{Out of date|{{safesubst:currentdate}}}} </nowiki> | ||
| caption 4 = Reason specified | | caption 4 = Reason specified | ||
| <nowiki>{{ | | <nowiki>{{Out of date|2024-12-04|This spell was changed in Patch 8 and the article needs to be updated.}} </nowiki> | ||
| caption 5 = Block format | |||
| <nowiki> | |||
{{Out of date | |||
| date = 2024-12-04 | |||
| reason = This spell was changed in Patch 8 and the article needs to be updated. | |||
}} | |||
</nowiki> | |||
}} | }} | ||
Line 49: | Line 57: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Mark a page as out-of-date and requiring updates.", | |||
"params": { | "params": { | ||
"1": { | "1": { | ||
"aliases": ["date"], | |||
"description": "The date this notice was added.", | |||
"type": "string", | |||
"autovalue": "{{safesubst:CURRENTDATE}}", | "autovalue": "{{safesubst:CURRENTDATE}}", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"reason": | "2": { | ||
"aliases": ["reason"], | |||
"description": "The reason this notice was added", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
} | } | ||
} | } |
Latest revision as of 03:49, 14 December 2024
Template documentation
Shortcuts
- {{Needs update}}
- {{Lastupdated}}
Displays a notice if a page is out of date and needs to be updated.
This template has a corresponding maintenance category: Category:Articles in need of updating.
Examples
No date supplied.
Markup{{Out of date}}Renders as
This article was marked as out of date and may need to be updated. No reason for adding this template was given. Remove this notice when the article is up to date. |
Date manually specified.
Markup{{Out of date|2024-12-04}}Renders as
This article was marked as out of date 14 days ago, and may need to be updated. No reason for adding this template was given. Remove this notice when the article is up to date. |
Date specified using automatic substitution. This is the preferred method.
Markup{{Out of date|{{safesubst:currentdate}}}}Renders as
This article was marked as out of date today, and may need to be updated. No reason for adding this template was given. Remove this notice when the article is up to date. |
Reason specified
Markup{{Out of date|2024-12-04|This spell was changed in Patch 8 and the article needs to be updated.}}Renders as
This article was marked as out of date 14 days ago, and may need to be updated. This spell was changed in Patch 8 and the article needs to be updated. Remove this notice when the article is up to date. |
Block format
MarkupRenders as{{Out of date | date = 2024-12-04 | reason = This spell was changed in Patch 8 and the article needs to be updated. }}
This article was marked as out of date 14 days ago, and may need to be updated. This spell was changed in Patch 8 and the article needs to be updated. Remove this notice when the article is up to date. |
Template data
Mark a page as out-of-date and requiring updates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 date | The date this notice was added.
| String | suggested |
2 | 2 reason | The reason this notice was added | String | suggested |