Template:Death date and age

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
[edit] Template documentation
This template is used on 2,000+ pages.
To avoid any disruptions and to save server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at the talk page before implementing them.

Usage

The templates {{Death date}} and {{Death date and age}} return a person's date of death and optionally his/her age at that date. The latter also has the shortcut {{Dda}}.

Syntax:

{{Death date|year of death|month of death|day of death|year of birth|month of birth|day of birth}}

or

{{Death date and age|year of death|month of death|day of death|year of birth|month of birth|day of birth}}
{{Dda|year of death|month of death|day of death|year of birth|month of birth|day of birth}}


Examples:

{{Death date|1993|2|24|1941|4|12}} returns "February 24, 1993(1993-02-24)"
{{Death date and age|1993|2|24|1941|4|12}} returns "February 24, 1993 (aged 51)"

Day first (df) option

An optional parameter, df, can be set to "yes" to display the day before the month. This is primarily used in articles about people from parts of the world where the day precedes the month in a date, and applies only for users who have not set a date formatting preference.

Example:

{{Death date and age|1993|2|24|1941|4|12|df=yes}} returns "24 February 1993 (aged 51)" to readers without a date preference.

Notes

Note: {{Death date}} and {{Death date and age}} automatically add the category "xxxx deaths" to the page they are used on! If you do not want a category to be added, set the optional nocategory parameter (nocategory=1, for example).

Note: The template will appear broken when the parameters are left blank.

See also