Template:Death date and age/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:Death date and age.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Death date and age.

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