Template:Lastupdated: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#if: {{{1|}}} | : <div class="noexcerpt navigation-not-searchable"> 24px|class=bg3wiki-lightmode-drop-shadow'' This article was marked as out of date {{#expr: floor({{#expr: {{#time: xNU | {{currentdate}}}} - {{#time: xNU | {{{1|}}} }}}} / 86400)}} days ago, and may need to be updated.</div>|{{#ifexpr: {{#time: xNU | {{lastupdatedate}}}} > {{#time: xNU | {{REVISIONTIMESTAMP}}}} | : <div class="noexcerpt navigation-not-searchable"> File:...") |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ambox|type=content|image=[[File:Refreshed_Condition_Icon.webp|35px|link=]]|text={{#if: {{{1|}}} | This article was marked as out of date {{#ifeq: {{#expr: floor({{#expr: {{#time: xNU | {{currentdate}}}} - {{#time: xNU | {{{1|}}} }}}} / 86400)}} | 0 | today, | {{#expr: floor({{#expr: {{#time: xNU | {{currentdate}}}} - {{#time: xNU | {{{1|}}} }}}} / 86400)}} days ago,}} 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.}} {{#ifexpr: {{#time: xNU | {{lastupdatedate}}}} > {{#time: xNU | {{REVISIONTIMESTAMP}}}} | This article was last edited {{#expr: floor({{#expr: {{#time: xNU | {{lastupdatedate}}}} - {{#time: xNU | {{REVISIONTIMESTAMP}}}}}} / 86400)}} days before the[[Patch notes|most recent update]] to the game and may not be up to date. Remove this notice when the article is up to date.}}}}<includeonly>{{main namespace only|[[Category:Articles in need of updating]]}}</includeonly><noinclude>{{documentation|content=Displays a notice if the page hasn't been updated since the latest game patch. | ||
<pre> {{lastupdated}} </pre> | |||
Result: | |||
{{lastupdated}} | |||
Can also be used to mark an entire article as out of date by specifying a date in the first parameter. | |||
<pre> {{lastupdated|{{subst:currentdate}}}}</pre> | |||
Result: | |||
{{lastupdated|{{currentdate}}}} | |||
A reason can be given with the reason parameter, provided that a date is entered | |||
<pre> {{lastupdated|{{subst:currentdate}}|reason=This is an example.}}</pre> | |||
Result: | |||
{{lastupdated|00:23, 2024-01-4|reason=This is an example.}} | |||
[[Category:Templates]][[Category:Message box templates]] | |||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"autovalue": "{{subst:CURRENTDATE}}", | |||
"suggested": true | |||
}, | |||
"reason": {} | |||
} | |||
} | |||
</templatedata>}} | |||
</noinclude> |
Latest revision as of 01:26, 4 January 2024
This article was last edited 322 days before themost recent update to the game and may not be up to date. Remove this notice when the article is up to date. |
Template documentation
Displays a notice if the page hasn't been updated since the latest game patch.
{{lastupdated}}
Result:
This article was last edited 322 days before themost recent update to the game and may not be up to date. Remove this notice when the article is up to date. |
Can also be used to mark an entire article as out of date by specifying a date in the first parameter.
{{lastupdated|{{subst:currentdate}}}}
Result:
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. This article was last edited 322 days before themost recent update to the game and may not be up to date. Remove this notice when the article is up to date. |
A reason can be given with the reason parameter, provided that a date is entered
{{lastupdated|{{subst:currentdate}}|reason=This is an example.}}
Result:
This article was marked as out of date 326 days ago, and may need to be updated. This is an example. Remove this notice when the article is up to date. This article was last edited 322 days before themost recent update to the game and may not be up to date. Remove this notice when the article is up to date. |
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description
| Unknown | suggested |
reason | reason | no description | Unknown | optional |