Template:Age: Difference between revisions
The Emma M. Lion Wiki
m 5 revisions imported: Migration to new server |
OrangeJedi (talk | contribs) updated template data |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <includeonly>{{#if: {{{2|}}} | ||
A template to display an person's | | {{#expr: floor(({{#time: U|{{{2}}}}} - {{#time: U|{{{1}}}}}) / 31557600) }} | ||
| {{#expr: floor(({{#time: U|1884-08-01}} - {{#time: U|{{{1}}}}}) / 31557600) }} | |||
}}</includeonly><noinclude> | |||
A template to display an person's age, with an option to account for deaths. The template will show the age from the start of the next (yet-to-be-published) book. Currently this is {{Friendly Date|date=1884-08-01}}. | |||
<templatedata> | |||
{ | |||
"description": "", | |||
"params": { | |||
"1": { | |||
"label": "Birthday", | |||
"description": "The birthday.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Date of Death", | |||
"description": "The date of death.", | |||
"type": "string", | |||
"required": false | |||
} | |||
} | |||
} | |||
</templatedata> | |||
Example with no deathdate: | Example with no deathdate: | ||
{{Age| | {{Age|1863-01-13}} | ||
Example with a deathdate: | Example with a deathdate: | ||
{{Age| | {{Age|1853-07-15|1873-10-03}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:28, 3 February 2025
A template to display an person's age, with an option to account for deaths. The template will show the age from the start of the next (yet-to-be-published) book. Currently this is August 1, 1884.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Birthday | 1 | The birthday. | String | required |
Date of Death | 2 | The date of death. | String | optional |
Example with no deathdate: 21
Example with a deathdate: 20