Template:Dated

From Zelda Dungeon Wiki
Revision as of 21:15, September 10, 2014 by Locke (talk | contribs) (Changed default reference date to the past (so that it's evident that the date is invalid); added default outdated text)
(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.

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