This template was nominated for deletion. Please review the prior discussions if you are considering re-nomination:
|
| Template:Death date and age is indefinitely protected from editing as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use } to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
| |||||||||||||||
Unclear death date but known age
[edit]Deaths are often announced with no explicit death date but with a specific age. Is it possible to have an optional field to supply an age, and not have it shown with a computed range like "(aged 72–73)"? —Bagumba (talk) 06:00, 22 May 2025 (UTC)
@Bagumba: There's a whole family of templates at } that covers various scenarios like this, and seem worth exploring. For this specific situation, } might work. Left guide (talk) 06:37, 22 May 2025 (UTC) Those don't seem to allow an optional age override either. It's also preferable to avoid having to change the template back to "Death date and age" when the date ultimately is known. —Bagumba (talk) 07:12, 22 May 2025 (UTC) I do not understand what output is wanted. Use } if a death date is known, with the age of the person at that time. If no death date is known, a template is not needed—just write something like "Died at age 35." If an approximate death date is known, write the text suggested in the discussion linked above. A template is only needed for the date if the machine-readable date is wanted. That format requires an unambiguous and full date. Johnuniq (talk) 07:55, 22 May 2025 (UTC) @Johnuniq: This is specifically for the infobox. Typically, the first editors use {{Death date and given age}} with the date of the death announcement as their date, and then someone realizes that an actual date was not given, and then removes the day or month. See an example of removing the day here. Depending on the month of birth, the computed age might sometimes show like "(aged 72–73)", but perhaps the source says definitively they were age 73. Sure, the worst case is just to remove (or comment out) the template, but I was just seeing if it would be more elegant to editors to codify the template to take an optional specific age. Thanks. —Bagumba (talk) 08:50, 22 May 2025 (UTC) I don't know what could usefully be done. I think the issue is shown in this example:{{death date and age|May 1, 1999|1949}}→ May 1, 1999 (aged 49–50)
{{death date|1949|5|1}} (aged 49)→ May 1, 1949 (aged 49)
declared dead in XXXX *year only*
[edit]How can I use the template if the only known date of someone being declared dead is a year? For example, there is an article about Jarosław Ziętara, Polish journalist who disappeared on September 1, 1992, is still missing and has been declared dead in 1999, on unknown month and unknown day. I want to add this template but it gives me a bold red error "Error: Need valid death date (first date): year, month, day"
Please help. 83.11.167.64 (talk) 18:22, 30 June 2025 (UTC)
I think you want }. Primefac (talk) 23:10, 30 June 2025 (UTC) This is exactly the template I needed. Thank you very much! 83.11.167.64 (talk) 10:05, 1 July 2025 (UTC)Bug with display formatting in dda function
[edit]WOSlinker uncovered an issue with how dates are displayed when a string is input in DMY format instead of MDY So for example:
{{dda|June 15, 2002|April 10, 1990}}→June 15, 2002 (aged 12){{dda|16 August 2002|10 April 1990}}→16 August 2002 (aged 12)
The second one should produce 16 August 2002 (aged 12).
@Johnuniq: is this something you could take a look at? It is currently blocking a merge of } to }. Thanks! — Zackmann (Talk to me/What I been doing) 22:40, 23 September 2025 (UTC)
There is no bug here. The above is how it is supposed to work. The default is mdy and is independent of how the date is entered ({{dda|16 August 2002|April 10, 1990}} and {{dda|2002-08-16|1990-04-10}} would give the same as above). If you are asking for a change in the way dda behaves, a significant investigation would be needed to see whether it would be desirable and if users of the template wanted it. Johnuniq (talk) 00:29, 24 September 2025 (UTC)
Help me understand, why is this a desired behavior? Why wouldn’t you want {{dda|16 August 2002|10 April 1990}} to preserve the format that was supplied? I can’t think of a reason where you would provide a DMY and be happy that it changed the date to MDY. I realize that you CAN get around this with |df=yes…
For context the reason for this discussion started here as we are hoping to merge } into this one. Zackmann (Talk to me/What I been doing) 03:22, 24 September 2025 (UTC)
The documentation says the dates must be entered as numbers, in the sequence Y | M | D. So whoever edited the template to accept multiple operand orders, and spelled-out months, violated the documentation and those changes should be ripped out. Or, the documentation should be fixed. Jc3s5h (talk) 17:45, 24 September 2025 (UTC)
"day first" (df) and "month first" options
[edit]"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."
Why is this blatant American imperialism entrenched in the default? And on how many pages does this default appear where it is not appropriate, simply because a user did not realise they needed to set 'df=yes'? I'd request that the formatting be changed such that there is no default, and that lack of either 'df=yes' or 'mf=yes' should return an error message, not defaulting to a highly illogical date style that is not used in >90% of the world. It far from just Europe where this idiotic style is not used, also Africa, Asia, Australasia, Oceania, and South America do not use it.
Perhaps until this is done, an addition to the ==FAQ== section might be appropriate:
- Q: Why does this template give a default American date style?
- A: Because of blatant American imperialism to foist an unwanted illogical date system on the rest of the world.
- MPF (talk) 12:24, 9 December 2025 (UTC)
Tell us how you really feel. The default is American likely because the WMF is based in America and the default language is also American English. I agree with you that from a "use" perspective it would make more sense to match the rest of the world, but I don't think there's any reason to get this upset about it. Primefac (talk) 13:19, 14 December 2025 (UTC)death date and age text
[edit]Apparently } has been redirected here by Beland (talk · contribs · blocks · protections · deletions · page moves · rights · RfA) without including/integrating its specific functionality. Previously, as allowed by MOS:ABBR MOS:NUM, } would have generated "1 Jan 2000 (aged 20)". Now it incorrectly generates "1 January 2000 (aged 20)". Can this be fixed? — Fourthords | =Λ= | 15:13, 29 January 2026 (UTC)
|updated= param which produces text like "Stats updated on 29 Jan 2026".
User:Fourthords That is my take on it. If consensus is different that is fine, but I do think the MOS you linked to leaves room for interpretation that should be discussed and decided on. Zackmann (Talk to me/What I been doing) 15:54, 29 January 2026 (UTC)