• होम
  • अट्रेंडम
  • आसपास
  • खाता में प्रवेश
  • सेटिंग्स
Donate Now If Wikipedia is useful to you, please give today.
  • विकिपीडिया के बारे में
  • नामंजूरी
विकिपीडिया

टेम्पलेट:Death date and age

  • भाषा
  • धियानसूची में डालीं
  • संपादन करीं
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 234,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
Do NOT use this template when the person's exact date of death is disputed or unknown; consider {{death year and age}} instead.
Shortcut
  • {{dda}}
This template uses Lua:
  • Module:Age (sandbox)

This template returns a person's date of death and age at that date. The year, month, and day of death are required, as is the birth year. The month and day of birth are optional.

बिसयसूची

  • 1 Syntax
    • 1.1 To display the death date with age
    • 1.2 Examples when all parameters are known
    • 1.3 Examples when only death-related parameters are known
  • 2 "day first" (df) and "month first" options
  • 3 Alternate template when specific birth date is unknown
  • 4 FAQ
  • 5 Background
  • 6 TemplateData
  • 7 See also

Syntax

संपादन करीं

To display the death date with age

संपादन करीं
{{death date and age|year of death|month of death|day of death|year of birth|month of birth|day of birth|additional parameters}}
Formats
{{death date and age|yyyy|mm|dd|yyyy|mm|dd|df=yes}}
{{death date and age|yyyy|mm|dd|yyyy|mm|dd|mf=yes}}

Examples when all parameters are known

संपादन करीं
{{death date and age|1993|2|24|1921|4|12|df=yes}} returns:  24 फरवरी 1993(1993-02-24) (उमिर 71)
{{death date and age|1993|2|24|1921|4|12|mf=yes}} returns:  फरवरी 24, 1993(1993-02-24) (उमिर 71)

Examples when only death-related parameters are known

संपादन करीं
{{death date and age|1993|2|24|1921|4|df=yes}} returns:  24 फरवरी 1993(1993-02-24) (उमिर 71)
{{death date and age|1993|2|24|1921|mf=yes}} returns:  फरवरी 24, 1993(1993-02-24) (उमिर 71–72)

When the exact birth date is unknown, the template will calculate the age at death and provide a range of two possible ages, if necessary.

The template will generate an error when required parameters are left blank, or when parameters are invalid. Examples of invalid parameters include impossible human ages, months greater than 12 or less than 1, days greater than 31 or less than 1, and parameters in the wrong order.

"day first" (df) and "month first" options

संपादन करीं

The df (day first) parameter indicates the intended date format to display. It is switched on by setting it to "y" or "yes" e.g. df=yes or df=y.

The default output of this template is the month before the day (American-based style). This default may not be appropriate in articles about people from parts of the world where the day precedes the month in a date (e.g. Europe). In such cases the parameter df should be set.

It is possible to use similar parameter "mf" to stress the month-first format so that relying on the default does not lead an editor or bot to change the format to an unintended value; however, it is ignored by the template itself. (So, should both parameters be mistakenly used at once, df takes precedence.)

Examples:

{{death date and age|1993|2|24|1921|4|12|df=yes}} displays  "24 फरवरी 1993(1993-02-24) (उमिर 71)"
{{death date and age|1993|2|24|1921|4|12|mf=yes}} displays  "फरवरी 24, 1993(1993-02-24) (उमिर 71)"

Alternate template when specific birth date is unknown

संपादन करीं

When only the year of a person's death is known, or if it is desired not to state a person's full dates of birth and death (e.g. for privacy), use the template {{death year and age}} instead. See below for other templates that perform similar functions.

FAQ

संपादन करीं
  • Q: Why don't these templates add categories such as "Births in [Year]" to articles where they are used?
A: Because they are sometimes used for dates in lists of people (e.g. members of sports teams).

Background

संपादन करीं

The idea of using the template, as with {{birth date and age}} etc., is to allow for the inclusion of hidden metadata to be used, indexed or searched by software tools. However, as of October 2008 this template does not include any such metadata and never has since it was founded in December 2006. The apparent reason is that the hCard microformat, logically enough for an extension of "standard for electronic business cards", contains only "BDAY" field but nothing to do with a death. It is unclear when metadata standard for the dead will be developed and adopted. Until then, the template does nothing but format the input parameters.

Because the hCard specification requires the use of the Gregorian calendar, the template should not be used for dates stated in the Julian calendar.

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 and age in articles based on its TemplateData.

TemplateData for Death date and age

This template returns a person's date of death and age at that date.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Year of death1

The year in which the person died

Numberrequired
Month of death2

The month (number) in which the person died

Numberrequired
Day of death3

The day (number) in which the person died

Numberrequired
Year of birth4

The year in which the person was born

Numberrequired
Month of birth5

The month (number) in which the person was born

Numberoptional
Day of birth6

The day (number) in which the person was born

Numberoptional
Day firstdf

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

Stringoptional
Month firstmf

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

Stringoptional

See also

संपादन करीं
  • {{Birth date text}} which accepts formats like "1 April 1990" or "April 1, 1990"
  • {{Birth date and age}} or {{Birth-date and age}}
  • {{Death year and age}}
  • {{Recent birth}} or {{Recent death}}
  • {{Death date and given age}}, helpful when death date and age is known, but not the exact birth date
  • दे
  • बा
  • सं
Birth, death and age templates
Birth, death, age
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 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 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).
{{Birth date based on age at death}} To display approximate birth year based on age at death.
Template  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)".
{{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
Template  Description / use 
{{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 days}} Age in days between two dates.
{{age in days nts}} {{age in days}} with output formatted for use in sortable tables.
Template  Description / use 
{{age}} Age based on number of complete years between two dates.
{{age nts}} {{age}} with output formatted for use in sortable tables.
{{age as of date}} Current age (in years) from a known age at a specified date.
Start / end dates
Template  Description / use 
{{start date}} / {{end date}}
{{start-date}} / {{end-date}}
{{start date and age}}
{{end date and age}}
  • About age calculation templates
  • Date mathematics templates
The above documentation is transcluded from टेम्पलेट:Death date and age/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.
"https://bh.wikipedia.org/w/index.php?title=टेम्पलेट:Death_date_and_age&oldid=778026" से लिहल गइल
Last edited on 2 मार्च 2025, at 23:57

Languages

    • Afrikaans
    • العربية
    • مصرى
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • Bikol Central
    • Bajau Sama
    • Беларуская (тарашкевіца)
    • Български
    • Banjar
    • ပအိုဝ်ႏဘာႏသာႏ
    • বাংলা
    • Bosanski
    • Català
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Cebuano
    • Chamoru
    • کوردی
    • Čeština
    • Cymraeg
    • Dansk
    • Zazaki
    • Dolnoserbski
    • ދިވެހިބަސް
    • Ελληνικά
    • English
    • Esperanto
    • Español
    • Eesti
    • فارسی
    • Føroyskt
    • Français
    • Arpetan
    • Gagauz
    • Gàidhlig
    • ગુજરાતી
    • Gungbe
    • Hausa
    • 客家語 / Hak-kâ-ngî
    • हिन्दी
    • Hrvatski
    • Hornjoserbsce
    • Հայերեն
    • Bahasa Indonesia
    • Ilokano
    • Íslenska
    • 日本語
    • Jawa
    • ქართული
    • Kabɩyɛ
    • Қазақша
    • ភាសាខ្មែរ
    • 한국어
    • کٲشُر
    • Kurdî
    • ລາວ
    • Latviešu
    • Madhurâ
    • मैथिली
    • Basa Banyumasan
    • Олык марий
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • Malti
    • မြန်မာဘာသာ
    • مازِرونی
    • नेपाली
    • Norsk nynorsk
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • Pangasinan
    • پنجابی
    • پښتو
    • Português
    • Română
    • Русский
    • संस्कृतम्
    • Саха тыла
    • ᱥᱟᱱᱛᱟᱲᱤ
    • Sardu
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • တႆး
    • සිංහල
    • Simple English
    • Slovenčina
    • Slovenščina
    • Shqip
    • Српски / srpski
    • Sunda
    • Svenska
    • Kiswahili
    • Sakizaya
    • தமிழ்
    • ತುಳು
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • Tagalog
    • Setswana
    • Türkçe
    • Татарча / tatarça
    • ChiTumbuka
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Tiếng Việt
    • 吴语
    • Vahcuengh
    • 中文
    • 閩南語 / Bân-lâm-gú
    • 粵語
    विकिपीडिया
    • Wikimedia Foundation
    • Powered by MediaWiki
    • एह पन्ना पर आखिरी बेर संपादन 2 मार्च 2025 के 23:57 बजे भइल रहल।
    • सामग्री CC BY-SA 4.0 की तहत उपलब्ध बा जबले कि अलगा से बतावल न गइल होखे।
    • गोपनीयता नीति
    • विकिपीडिया के बारे में
    • नामंजूरी
    • Code of Conduct
    • डेवलपर लोग
    • आँकड़ा
    • कुकी इस्टेटमेंट
    • उपयोग के शर्त कुल
    • डेस्कटॉप