Template:Dated

From Zelda Dungeon Wiki
Revision as of 15:05, September 10, 2014 by Locke (talk | contribs) (Created page with "{{#ifexpr:{{#time:U}}>{{#time:U|{{{1|20200000000000}}}}} | {{Cat|Outdated Articles}}{{{2|}}} | {{{3|}}} }}<noinclude> {{Documentation}} </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.

[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.)