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.
(Created page with "{{#ifexpr:{{#time:U}}>{{#time:U|{{{1|20200000000000}}}}} | {{Cat|Outdated Articles}}{{{2|}}} | {{{3|}}} }}<noinclude> {{Documentation}} </noinclude>")
 
No edit summary
Line 1: Line 1:
{{#ifexpr:{{#time:U}}>{{#time:U|{{{1|20200000000000}}}}}
{{#ifexpr:{{#time:U}}>{{#time:U|{{{1|20200000000000}}}}}
| {{Cat|Outdated Articles}}{{{2|}}}
| {{Cat|Outdated Articles|nocat={{{nocat|<noinclude>true</noinclude>}}}}}{{{2|}}}
| {{{3|}}}
| {{{3|}}}
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 18:09, September 10, 2014

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