Template:Death date and age
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Description
This template calculates the difference between birth dates and death dates using {{Age}}. It also makes the date within infoboxes machine-readable for bots, by formatting the dates with hidden text written using a standardized date format.
To accommodate worldwide collaboration between Americans (who use month day, year format) and the rest of the world (who use day month year format) the parameter |df=yes
outputs the day first. Otherwise, American-style format prevails.
Usage
{{Death date and age|death year|death month|death day|birth year|birth month|birth day}}
{{Death date and age|death year|death month|death day|birth year|birth month|birth day|df=yes}}
Examples
Terry Pratchett's age at death written using American-style dates:
{{Death date and age|2015|03|12|1948|04|28}}
March 12, 2015 (aged 66)
Same age written using British-style dates:
{{Death date and age|2015|03|12|1948|04|28|df=yes}}
12 March 2015 (aged 66)
History
Probably from Wikipedia:Template:Death date and age
See also
- {{Age}}
- {{Birth date}}
- {{Birth date and age}}
- {{Death date and age}}
- {{Start date and age}}