Template:Death date and age

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

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(2015-03-12) (aged 66)

Same age written using British-style dates:

{{Death date and age|2015|03|12|1948|04|28|df=yes}} 12 March 2015(2015-03-12) (aged 66)

History

Probably from Wikipedia:Template:Death date and age

See also