Template:Death age: Difference between revisions
Appearance
Add a leading space so the age never sticks to the date |
Treat blank death month/day like omitted (avoid expression error) |
||
| Line 1: | Line 1: | ||
<includeonly> (aged {{Age|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4}}}|{{{5|12}}}|{{{6|31 | <includeonly> (aged {{Age|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4}}}|{{#if:{{{5|}}}|{{{5}}}|12}}|{{#if:{{{6|}}}|{{{6}}}|31}}}})</includeonly><noinclude> | ||
Shows the age at death, for the <code>death_date</code> field of [[Template:Infobox Person]]. | Shows the age at death, for the <code>death_date</code> field of [[Template:Infobox Person]]. | ||
Latest revision as of 18:29, 21 November 2026
Shows the age at death, for the death_date field of Template:Infobox Person.
Usage: {{Death age|birth year|birth month|birth day|death year|death month|death day}} (Gregorian dates). Example: {{Death age|1889|11|24|1974|10|5}} → (aged 84)