Template:Death year and age: Difference between revisions
Appearance
Create: estimated age range for year-only death dates |
Force the space ParserFunctions trims from the #if branch |
||
| Line 1: | Line 1: | ||
<includeonly>{{{1}}}{{#if:{{{2|}}}| (aged {{#invoke:Age|age_range|{{{2}}}|{{{1}}}}})}}</includeonly><noinclude> | <includeonly>{{{1}}}{{#if:{{{2|}}}| (aged {{#invoke:Age|age_range|{{{2}}}|{{{1}}}}})}}</includeonly><noinclude> | ||
For a death known only to the year. Usage: <code>{{Death year and age|deathYear|birthYear}}</code> | For a death known only to the year. Usage: <code>{{Death year and age|deathYear|birthYear}}</code> | ||
Latest revision as of 16:18, 20 July 2026
For a death known only to the year. Usage: deathYear (aged )
2006 (aged 45–46) → 2006 (aged 45–46)
The age is given as a range because year-only dates are ambiguous by one year. For full dates use {{death date and age}} instead.