Template:Death date and age

From Cvillepedia
Jump to navigation Jump to search

Template:Death date and age calculates the age at which a person died, based on the birth and death dates.

The template takes six unnamed parameters, in order:

  1. Death year,
  2. Death month, and
  3. Death day of month;
  4. Birth year,
  5. Birth month, and
  6. Birth day of month.

Usage example:

{{death date and age|2008|2|8|1926|10|21}} displays "aged 81".

Often used with officeholder templates in the date_of_death parameter, as in:

| date_of_death = {{death date and age|2008|2|8|1926|10|21}}

See also: Template:Age