Template:Death date and age: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
Chalochatu (talk | contribs) Created page with "<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}}<span style="display:none">(<span class="dday deathdate"..." |
Chalochatu (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
< | <onlyinclude> | ||
{{#if:{{{1|}}} | |||
| {{{1}}} {{{2}}}, {{{3}}} (aged {{#expr:{{{3}}} - {{{4}}}}}) | |||
| <!-- no output if blank --> | |||
}} | |||
</onlyinclude> | |||
<noinclude> | |||
== Usage == | |||
This template displays a formatted death date along with age at death. Use only year-based approximation. This is ideal for Chalo Chatu biographies where full dates are not always known. | |||
=== Syntax === | |||
<pre> | |||
{{death date and age|day|month|year of death|year of birth}} | |||
</pre> | |||
=== Example === | |||
<pre> | |||
{{death date and age|4|March|1989|1919}} | |||
</pre> | |||
=== Output === | |||
4 March 1989 (aged 70) | |||
=== Notes === | |||
* If exact birth and death **months and days** are available, use `{{death date full}}` instead. | |||
* This version is simplified for use without Lua or `#time` functions. | |||
[[Category:Templates for biography dates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 06:03, 29 September 2025
Usage
This template displays a formatted death date along with age at death. Use only year-based approximation. This is ideal for Chalo Chatu biographies where full dates are not always known.
Syntax
{{death date and age|day|month|year of death|year of birth}}
Example
{{death date and age|4|March|1989|1919}}
Output
4 March 1989 (aged 70)
Notes
- If exact birth and death **months and days** are available, use `Template:Death date full` instead.
- This version is simplified for use without Lua or `#time` functions.