Template:Death age: Difference between revisions

New template: age calculation
 
Treat blank death month/day like omitted (avoid expression error)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>(aged {{Age|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4}}}|{{{5|12}}}|{{{6|31}}}}})</includeonly><noinclude>
<includeonly>&#32;(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]].