This is a documentation subpage for Template:Death-date and age. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
{{Death-date and age}} displays a person's date of death and age at that date. Besides calculating the age at death, the benefit of using this template is to allow for the inclusion of hidden microformat dates, which may be indexed or searched by software tools.
Note: The template may not calculate the age at death correctly if full dates (month, day, year) are not provided. For example, a person who was born in 1941 and died in 1993 could have been either 51 or 52 on the day of their death, depending on whether they had reached their birthday in their death year:
{{Death-date and age|1993|1941}}
→ 1993 (aged 52){{Death-date and age|May 1993|May 1941}}
→ May 1993 (aged 52)When only the years are known, consider using {{Death year and age}} instead:
{{Death year and age|1993|1941}}
→ 1993 (aged 51–52){{Death year and age|1993|1941|5}}
→ May 1993 (aged 51–52)