• Home
  • Random
  • Log in
  • Settings
  • About Startupedia
  • Disclaimers
Startupedia

Template:Death date

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 9,900 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:
  • NO LABEL (P570) (see uses)
This template uses Lua:
  • Module:String
  • Module:Wd

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.

Contents

  • 1 Usage
    • 1.1 Additional parameters
    • 1.2 Range, Calendar
  • 2 Examples
  • 3 TemplateData
  • 4 Tracking categories
  • 5 See also

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

<templatedata> { "description": "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.", "params": { "1": { "label": "Year of death", "description": "The year in which the person died.", "type": "number", "example": "1993", "required": true }, "2": { "label": "Month of death", "description": "The month (number) in which the person died.", "type": "number", "example": "2", "required": true }, "3": { "label": "Day of death", "description": "The day (number) in which the person died.", "type": "number", "example": "24", "required": true }, "df": { "label": "Day first", "description": "When set to 'y' or 'yes', the date of death is output in a DMY format.", "type": "string", "example": "y", "required": false }, "mf": { "label": "Month first", "description": "When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of death.", "type": "string", "example": "y", "required": false } } } </templatedata>

Tracking categories

  • Category:Pages using age template with invalid date (0)
  • Category:Date of death not in Wikidata (0)
  • Category:Articles without Wikidata item (3)

See also

  • {{Death date text}} which accepts formats like "1 April 1990" or "April 1, 1990"
  • {{Death date and age}} or {{Death-date and age}} if date of birth is known
  • v
  • t
  • e
Birth, death and age templates
birth, death, age
Combined BDA template Description / use 
{{BirthDeathAge}}Combines functions of {{Birth date}}, {{Birth date text}}, {{Birth date and age}}, {{Birth year and age}}, {{Death date}}, {{Death date text}}, {{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 text}}
{{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 text}}
{{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 text}} / {{End date text}}
{{Start date and age}}
{{End date and age}}
miscellaneous
Template Description / use 
{{OldStyleDate}}Dates in Julian calendar.
{{OldStyleDateDY}}As {{OldStyleDate}} but used when Julian / Gregorian dates fall in different years.
{{OldStyleDateNY}}As {{OldStyleDate}} but without the year.
{{Unidentified for}}
{{Missing for}}
  • About age calculation templates
  • Date mathematics templates
The above documentation is transcluded from Template:Death date/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "http://startupwiki.ai/index.php?title=Template:Death_date&oldid=2967"
Last edited on 22 May 2025, at 10:05

Languages

      This page is not available in other languages.

      Startupedia
      • This page was last edited on 22 May 2025, at 10:05.
      • Privacy policy
      • About Startupedia
      • Disclaimers
      • Contact us
      • Desktop