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:
 * → 1993
 * → May 1993

When only the years are known, consider using Death year and age instead:
 * → 1993
 * → May 1993

Usage

 * Format:

Microformat output
Death date and age templates:

Julian dates
This template emits data in hidden microformat form. Technically, the requirement of this format is that all dates throughout time be expressed in the same calendar (the ISO8601 standard specifies this as gregorian), so julian calendar format dates cannot properly be used for this purpose. Proper emission of this invisible metadata requires that a gregorian calendar form be provided, even though properly speaking, gregorian dates did not exist prior to 1582. If accuracy of emission with microformats is a concern, the parameters death date and birth date that are displayed in the article may be provided in julian, and the correct gregorian death date form is provided in the "gregorian" parameter. Several calculators that convert from Julian to Gregorian are available and are listed in the Julian calendar article.
 * September 14, 1523

There are some rare circumstances where system limitations do not permit correct handling of a few dates. These should have no impact on correct age calculation except in extremely unusual circumstances. When these errors create incorrect microformat data, use the dt parameter.
 * some dates that would be valid in a non-Gregorian context are treated as out-of-range dates and converted to the next-best in-range values. For example,  results in   because – even though 30 February 1712 is a valid date in the Swedish calendar – February 1712 had only 29 days in the Gregorian calendar.
 * ten dates are not reformatted. These are 29 February & 1 March of the years 1000, 1100, 1300, 1400, 1500. The cause of this is the same as that of the Swedish 30 February 1712.

Dates with years less than 3 digits
Some dates with less than three digits will not be recognized. In these cases, use YYYY-MM-DD format for both death and birth dates. Use Parameter 3 to display the death date in the desired format. It is permitted to specify year only, or year and month only.

Supporting templates

 * Template:Death-date
 * Template:Age

Tracking categories

 * – added by Template:Death-date
 * – added by Template:Death-date and other templates
 * – added by Template:Death-date and other templates