Template:Death-date and age/doc

{{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 (1994) (aged 52)
{{Death-date and age|May 1993|May 1941}} → May 1993 (1993-06) (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)