Template:Dated: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
No edit summary
(Changed default reference date to the past (so that it's evident that the date is invalid); added default outdated text)
 
Line 1: Line 1:
{{#ifexpr:{{#time:U}}>{{#time:U|{{{1|20200000000000}}}}}
{{#ifexpr:{{#time:U}}>{{#time:U|{{{1|1999}}}}}
| {{Cat|Outdated Articles|nocat={{{nocat|<noinclude>true</noinclude>}}}}}{{{2|}}}
| {{Cat|Outdated Articles|nocat={{{nocat|<noinclude>true</noinclude>}}}}}{{{2|<sup>[[Template:Dated|[outdated]]]</sup>}}}
| {{{3|}}}
| {{{3|}}}
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 21:15, September 10, 2014

[outdated] [Edit Documentation] This is used to mark article contents that will need to be updated after a certain date. It conditionally displays text based on whether the date has passed. It also adds the page to the [[Outdated Articles]] category the first time the page is rendered after the specified date.

Usage

{{Dated| date | if past | if before }}

  • date — When the content becomes outdated. It can be in any format accepted by PHP's strtotime() function.
  • if past — Included if the current date/time is past the specified date/time. Do not add the [[Outdated Articles]] category here, as it is included automatically. (Optional. Default: [outdated])
  • if before — Included if the specified date has not yet been reached. (Optional.)