No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude>{{#time:{{:Game Date}} | <includeonly><onlyinclude>{{#time:xNU {{:Game Date}}}} - {{#time:xNU {{{1}}}}}</onlyinclude></includeonly> | ||
Revision as of 14:15, 26 April 2023
Template:Age is used to determine how old something is in years.
Usage
It has one mandatory parameter and accepts one optional parameter, both of which are dates. The built-in MediaWiki functions it relies on should be fairly robust, but the preferred format is: yyyy/mm/dd.
- is the date of the event in question.
- is the date measured from; it defaults to the contents of Game Date.
Returns
{{Age|1979/11/05}} returns: 1780559005 2060/05/15 - 1780559005 1979/11/05
{{Age|1979/11/05|2026/06/04}} returns: 1780559005 2060/05/15 - 1780559005 1979/11/05
The documentation above was transcluded from Template:Age/Documentation. [edit]
