Template:Death-date and age/doc



Returns 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 metadata to be used, indexed or searched by software tools.

Typical Usage

 * Format:

Examples
{| width="100%" xclass="toccolours" style="margin-top:.5em;border:1px solid #a0a0a0;background-color:#f8f8ff;"
 * - style="text-align:left;" colspan=2
 *  Death-date and age examples  (colors for emphasis only):
 * - style="text-align:left;line-height:1.4em;font-size:87%;"
 * style="white-space:normal;"|Month first format: Sample below displays February 24, 1993, with invisible microformat dtend date: 1993-02-25

death date|birth date|additional parameters}}

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. Example: Pope Adrian VI :
 * 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 just Year or Year and month only.

Interaction side-effects with other templates
Note: Do not use this template inside of the Persondata template as it can interfere with data extraction.