Jump to content
Wikipedia The Free Encyclopedia

Template:Death date

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
Warning This template is used on approximately 9,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template tracks the Wikidata property:
This template uses Lua:

Template:Death date will return a person's date of death.

Using this template rather than simply inserting the date into articles allows for the inclusion of hidden metadata about the date. This metadata can be used by web browsers and other software tools to extract the details, and display them using some other website or mapping tool, index or search them.

Usage

{{Death date|year of death|month of death|day of death|additional parameters}}

Additional parameters

The df (day first) and mf (month first) parameters indicate the intended date format to display. The appropriate parameter should be set to "y" or "yes", e.g. |df=y or |df=yes.

The default output of this template is to display the month before the day. This default may not be appropriate for articles about people from parts of the world where the day precedes the month in a date. In such articles the parameter, "df", should be set to display the day before the month.

The parameter "mf", while not actually used by the template, will indicate that month first format is intended. Using these parameters can assist bots or other automated processing to detect which date format is intended; leaving the format as default may lead an editor or bot to change the format to an unintended value.

Do not specify both "df" and "mf" parameters in the same use of the template, as these formats are mutually exclusive.

Range, Calendar

Since the data is emitted in the ISO 8601 format, the calendar must be the Gregorian calendar; the first acceptable year is 1583, the last acceptable year is 9999 (which would only be a concern for fictitious characters).

Examples

  • {{Death date|1993|2|24}}(1993年02月24日)February 24, 1993
  • {{Death date|1993|2|24|df=yes}}(1993年02月24日)24 February 1993
  • {{Death date|1993|2|24|mf=yes}}(1993年02月24日)February 24, 1993

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Death date in articles based on its TemplateData.

TemplateData for Death date

This template will return a person's date of death. Using this template rather than simply inserting the date into articles allows for the inclusion of hidden metadata about the date. This metadata can be used by web browsers and other software tools to extract the details, and display them using some other website or mapping tool, index, or search them.

Template parameters[Edit template data ]

ParameterDescriptionTypeStatus
Year of death1

The year in which the person died.

Example
1993
Numberrequired
Month of death2

The month (number) in which the person died.

Example
2
Numberrequired
Day of death3

The day (number) in which the person died.

Example
24
Numberrequired
Day firstdf

When set to 'y' or 'yes', the date of death is output in a DMY format.

Example
y
Stringoptional
Month firstmf

When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of death.

Example
y
Stringoptional

Tracking categories

See also

Birth, death and age templates
birth, death, age
Combined BDA template  Description / use 
{{BirthDeathAge }} Combines functions of {{Birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}}, and {{death year and age}}.
Birth templates  Description / use 
{{Birth date }} To display a birth date and related hidden metadata.
{{Birth-date }}
{{Birth date and age }} {{Birth date}} with suffix '(age N)'.
{{Birth date and age2 }} {{Birth date and age}} plus age as of a specified date.
{{Birth-date and age }} As {{Birth date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.).
{{Birth date and age in years and days }} {{Birth date and age}}, but with the age displayed in years and days rather than just years.
{{Birth year and age }} Year of birth and approximate age.
{{Birth based on age as of date }} To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person), only works for living people.
{{Birth based on age as of dates }} To display approximate birth year and current age given several particular dates (e.g. when a dated reference mentions the age of a person), only works for living people.
{{Birth based on age at death }} To display approximate birth year based on age at death, or on age at a specific date if death date isn't known.
Death templates  Description / use 
{{Death date }} To display a death date and related hidden metadata.
{{Death-date }}
{{Death date and age }} {{Death date}} with suffix '(aged N)'; also called with {{event date and age}}.
{{Death-date and age }} As {{Death date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.).
{{Death date and given age }} To display a death date and specified age.
{{Death year and age }} To display a year of, and approximate age at death.
age only
Conventional age templates  Description / use 
{{Age in years, months, weeks and days }} Number of complete years, months, weeks and days between two dates.
{{Age in years, months and days }} Number of complete years, months and days between two dates.
{{Age in years and months }} Number of complete years and remaining months between two dates.
{{Age in years and days }} Number of complete years and remaining days between two dates.
{{Age in years and days nts }} {{Age in years and days}} with output formatted for use in number sortable tables.
{{Age in decimal years }} Number of years between two dates, rounded to the specified number of decimal places.
{{Age in years }} Number of years between two dates.
{{Age in years nts }} {{Age in years}} with output formatted for use in number sortable tables.
{{Age in months }} Number of months between two dates.
{{Age in weeks and days }} Number of weeks and days between two dates.
{{Age in weeks }} Number of weeks between two dates.
{{Age in days }} Age in days between two dates.
{{Age in days nts }} {{Age in days}} with output formatted for use in number sortable tables.
Reverse-determined age template  Description / use 
{{Age }} Age based on number of complete years between two dates.
{{Age nts }} {{Age}} with output formatted for use in number sortable tables.
{{Age as of date }} Current age (in years) from a known age at a specified date.
{{Age for infant }} Current age for infant: months and days up to one year, years and months up to three years, and years beyond age 3.
start / end dates
Date-focused templates  Description / use 
{{Start date }} / {{End date }}
{{Start-date }} / {{End-date }}
miscellaneous
Template  Description / use 
{{OldStyleDateDY }} As {{OldStyleDate}} but used when Julian / Gregorian dates fall in different years.
{{OldStyleDateNY }} As {{OldStyleDate}} but without the year.
The above documentation is transcluded from Template:Death date/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /