Template:Death date and age: Difference between revisions
Appearance
>Zackmann08 Listed for merging with Template:Disappeared date and age; see Wikipedia:Templates for discussion/Log/2025 October 19#Template:Disappeared date and age. |
Create or repair template to remove red links and rendering errors across articles |
||
| Line 1: | Line 1: | ||
< | <includeonly><span class="dday" style="display:none;">{{{1}}}-{{padleft:{{#expr:{{{2}}}}}|2|0}}-{{padleft:{{#expr:{{{3}}}}}|2|0}}</span>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}} {{{1}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}}, {{{1}}}}}{{#if:{{{4|}}}| (aged {{#expr: {{{1}}} - {{{4}}} - {{#ifexpr: ({{{2}}} < {{{5|1}}}) or (({{{2}}} = {{{5|1}}}) and ({{{3}}} < {{{6|1}}})) | 1 | 0 }} }})}}</includeonly><noinclude> | ||
Displays a date of death in Manual of Style format, with the age at death when the date of birth is also supplied. | |||
<pre>{{Death date and age|2020|11|27|1973|12|12}} -> November 27, 2020 (aged 46)</pre> | |||
Parameters are death year, month, day, then birth year, month, day. | |||
[[Category:Date templates]] | |||
</noinclude> | |||
Latest revision as of 05:25, 25 August 2026
Displays a date of death in Manual of Style format, with the age at death when the date of birth is also supplied.
{{Death date and age|2020|11|27|1973|12|12}} -> November 27, 2020 (aged 46)
Parameters are death year, month, day, then birth year, month, day.