Template:Death date and age/doc

Boobpedia - Encyclopedia of big boobs
Revision as of 17:02, 5 June 2008 by Prophecy (talk | contribs) (New page: {{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT --> ==Usage== The templat...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This is a documentation subpage for Template:Death date and age (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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 and age|year of death|month of death|day of death|year of birth|month of birth|day of birth}}
Format
{{Death date and age/doc|yyyy|mm|dd|yyyy|mm|dd}}
{{Dda|yyyy|mm|dd|yyyy|mm|dd}}
Example:

{{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)"

Notes

Note: {{Death date}} and {{Death date and age}} automatically add the category "xxxx births" 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