Template:Out of date: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if: {{{1|}}} | : <div class="noexcerpt navigation-not-searchable"> [[File:Prerequisite Icon.png|24px|class=bg3wiki-lightmode-drop-shadow]]'' 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.</div>|{{#ifexpr: {{#time: xNU | {{lastupdatedate}}}} > {{#time: xNU | {{REVISIONTIMESTAMP}}}} | : <div class="noexcerpt navigation-not-searchable"> [[File:Prerequisite Icon.png|24px|class=bg3wiki-lightmode-drop-shadow]]''This article was last edited {{#expr: floor({{#expr: {{#time: xNU | {{lastupdatedate}}}} - {{#time: xNU | {{REVISIONTIMESTAMP}}}}}} / 86400)}} days before the most recent update to the game.''</div> |}}}}<noinclude>Displays a notice if the page hasn't been updated since the latest game patch.
{{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 was given.}}} Remove this notice when the article is up to date. | {{#ifexpr: {{#time: xNU | {{lastupdatedate}}}} > {{#time: xNU | {{REVISIONTIMESTAMP}}}} | : <div class="noexcerpt navigation-not-searchable"> [[File:Prerequisite Icon.png|24px|class=bg3wiki-lightmode-drop-shadow]]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>
<pre> {{lastupdated}} </pre>
Result:
Result:
: <div class="noexcerpt navigation-not-searchable"> [[File:Prerequisite Icon.png|24px|class=bg3wiki-lightmode-drop-shadow]]''This article was last edited x days before the most recent update to the game.''</div>
 
{{lastupdated}}


Can also be used to mark an entire article as out of date by specifying a date in the first parameter.
Can also be used to mark an entire article as out of date by specifying a date in the first parameter.
Line 10: Line 11:
Result:
Result:
{{lastupdated|{{currentdate}}}}
{{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.}}


== Template data ==
== Template data ==
Line 18: Line 26:
"autovalue": "{{subst:CURRENTDATE}}",
"autovalue": "{{subst:CURRENTDATE}}",
"suggested": true
"suggested": true
}
},
"reason": {}
}
}
}
}
</templatedata>
</templatedata>}}
</noinclude>
</noinclude>

Revision as of 01:23, 4 January 2024

{{ambox|type=content|image=Refreshed Condition Icon.webp|text=

Displays a notice if the page hasn't been updated since the latest game patch.

 {{lastupdated}} 

Result:

{{ambox|type=content|image=Refreshed Condition Icon.webp|text=

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: {{ambox|type=content|image=Refreshed Condition Icon.webp|text=This article was marked as out of date today, and may need to be updated. No reason was given. Remove this notice when the article is up to date.{{main namespace only|

A reason can be given with the reason parameter, provided that a date is entered

 {{lastupdated|{{subst:currentdate}}|reason=This is an example.}}

Result:

{{ambox|type=content|image=Refreshed Condition Icon.webp|text=This article was marked as out of date 349 days ago, and may need to be updated. This is an example. Remove this notice when the article is up to date.{{main namespace only|

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Auto value
{{subst:CURRENTDATE}}
Unknownsuggested
reasonreason

no description

Unknownoptional