Template:Dated/Documentation: 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 "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 ...")
 
(added default past text)
Line 4: Line 4:
{{Usage|date|if past|if before}}
{{Usage|date|if past|if before}}
{{Usage/Param|date|When the content becomes outdated. It can be in any format accepted by PHP's [http://php.net/manual/en/function.strtotime.php strtotime()] function.}}
{{Usage/Param|date|When the content becomes outdated. It can be in any format accepted by PHP's [http://php.net/manual/en/function.strtotime.php strtotime()] function.}}
{{Usage/Param|if past|Included if the current date/time is past the specified date/time. Do not add the {{Catlink|Outdated Articles}} category here, as it is included automatically.|optional}}
{{Usage/Param|if past|Included if the current date/time is past the specified date/time. Do not add the {{Catlink|Outdated Articles}} category here, as it is included automatically.|optional|<sup>[[Template:Dated|[outdated]]]</sup>}}
{{Usage/Param|if before|Included if the specified date has not yet been reached.|optional}}
{{Usage/Param|if before|Included if the specified date has not yet been reached.|optional}}


<includeonly>{{Cat|Utility Templates}}</includeonly>
<includeonly>{{Cat|Utility Templates}}</includeonly>

Revision as of 21:18, September 10, 2014

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/Documentation| 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.)