Jump to content

Template talk:Death date and age

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Satyam BCS (talk | contribs) at 17:57, 5 July 2020 (Template-protected edit request on 5 July 2020: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconTime Template‑class
WikiProject iconThis template is within the scope of WikiProject Time, a collaborative effort to improve the coverage of Time on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Microformats
Death date and age is part of, or of interest to, WikiProject Microformats, which encourages the deployment of microformats in Wikipedia, and documents them in the article space. If you would like to participate, visit the project page.

BC to AD

I'm not sure of the proper way to handle those born in BC and dying in AD. Sejanus being an example. If only in BC I believe the template should work if you use negative years. However with no year zero, you seem likely to get an off-by-one error. Jerod Lycett (talk) 16:01, 20 September 2018 (UTC)[reply]

The template emits metadata in one of the standard metadata formats. The specification of the format is by an outside organization, and is not subject to control or reinterpretation by Wikipedia. The format for dates is ISO 8601, which requires use of the Gregorian calendar, and also requires consent among the data exchange partners to use for dates before AD 1583.
Dates around AD 1 of a Roman will be in the Julian calendar. Such dates are also before 1583. Therefore the template should not be used. Jc3s5h (talk) 16:24, 20 September 2018 (UTC)[reply]
I was not aware of that, this and other such templates should contain a note about that then, and possibly generate a category for those before 1583. Jerod Lycett (talk) 16:44, 20 September 2018 (UTC)[reply]
I just added a note to the documentation. Feel to make the note more prominent. Jc3s5h (talk) 17:05, 20 September 2018 (UTC)[reply]

Ask

why can't I use it like the following?

{{death date and age|2012|03|13|2001|03|df=yes}} {{death date and age |1993|2|29 |1921|2|df=yes}}--223.104.186.116 (talk) 13:58, 14 November 2018 (UTC)[reply]

Likely because you don't need the template to know the age-at-death for someone who died in the BCs. Mostly because "January 3" didn't exist back then and so we only use years. Primefac (talk) 14:54, 14 November 2018 (UTC) Whoops. Struck (see below). Primefac (talk) 15:38, 14 November 2018 (UTC)[reply]
223.104.186.116's post had the edit summary "→‎BC to AD" because that was picked up automatically from the heading of the preceding section, since it was the post that created this "Ask" section. This section has nothing to do with BC or AD.
223.104.186.116's second template does't work because there was no February 29 in 1993 (although there is nothing about the error message that would help anyone figure that out). Jc3s5h (talk) 15:19, 14 November 2018 (UTC)[reply]
The output from {{death date and age|1993|2|29|1921|2|df=yes}} is (simulated to avoid the ugly errors):
29 February 1993 (aged Error: Second date should be year, month, dayError: Second date should be year, month, day)
The reason that occurs is that the template outputs the following after the date if the final day is missing:
(aged {{age|1921|12|31|1993|2|29|}}–{{age|1921|1|1|1993|2|29|}})
Since 1993-02-29 is an invalid date and is used twice, the rather unhelpful message occurs. The logic could probably be moved into Module:Age which can handle missing days but it might not be worth it. Johnuniq (talk) 00:45, 15 November 2018 (UTC)[reply]

confusing error message

This template seems to accept Feb 29 only for leap years. For example, February 29, 2016(2016-02-29) (aged 15) works fine. With an invalid death date, there is an error but it points to a problem with the birth date: Error: Need valid death date (first date): year, month, day (That's how I interpreted the error message - "second date" meant the birth date)

But with the an invalid birth date, there is a different error: Error: Need valid birth date (second date): year, month, day

This was even more confusing because Template:death date doesn't seem to care at all, e.g. (2015-02-29)February 29, 2015, (2016-02-30)February 30, 2016, (2016-02-31)February 31, 2016

Is there any way to have the template say specifically which date (death or birth) is in error. I assumed there was a problem with the birth date because of the "second date" part of the error message. I was further misled when I "confirmed" the death date was correct by trying (1523-02-29)February 29, 1523 in template:death date, where it worked fine. So I went back to looking for a problem with the birth date and finally figured out the problem was really with the death date because there is no Feb 29 in 1523. MB 06:24, 4 January 2019 (UTC)[reply]

This situation arises because the template uses wikitext for most functionality but calls {{age}} to display the age in years. The latter is implemented by Module:Age and it requires valid dates and issues the unfortunate message. It says the second date is invalid because that is what it is given:
Input:    {{death date and age |2015|02|29|2000|05|05}}
Output:   29 February 2015 ({{age |2000|05|05|2015|02|29}})
Notice that the dates are reversed in {{age}} and the invalid date is the second.
The fix would be to implement the logic of this template in Module:Age but I haven't got around to that. I converted a fair number of other templates to use the module to get proper date validation but it involved a ton of manual fixes to articles with invalid dates. Johnuniq (talk) 06:47, 4 January 2019 (UTC)[reply]
I will be glad to help with manual fixes to cleanup errors. Just let me know. MB 15:32, 6 January 2019 (UTC)[reply]
OK, thanks. I put a new version in Module:Age/sandbox but have run into an irritating glitch regarding what it does if the second date (the birth date) is omitted. I also investigated how the template is used in articles and there aren't many problems (maybe 30 or 40) because this template calls {{age}} and it requires valid dates, so many old problems have been fixed. I think I'll be another few days and will ping you when I update this template to use the module. Johnuniq (talk) 22:15, 6 January 2019 (UTC)[reply]
Perhaps I'm merely repeating what others have already pointed out, but the error message "Error: Death date (first date) must occur after birth date (second date)" is confusing - or even false (because in this template the death date must occur before the birth date). --77.173.90.33 (talk) 09:28, 30 March 2019 (UTC)[reply]
No, that's not correct—the death date (first date) should be after the birth date (the second date) meaning that the first date has to be later than the first. On 7 January 2019 I updated Module:Age to implement this template, and updated Template:Death date and age to use the module. That means the messages above are obsolete (they refer to what the old template did before 7 January 2019). It looks like I forgot to ping MB so here is a late notification. Johnuniq (talk) 10:36, 30 March 2019 (UTC)[reply]
Editors enter two dates when using this template. One of these comes first, the one on the left. The death date may be chronologically last, but it's included first. Neither the error message nor what you write makes any sense, and both are completely confusing. --77.173.90.33 (talk) 10:40, 30 March 2019 (UTC)[reply]
And, by the way, I'm talking about this error message: Error: Death date (first date) must be later in time than the birth date (second date)

Error: Death date (first date) must occur after birth date (second date)

--77.173.90.33 (talk) 10:43, 30 March 2019 (UTC)[reply]
I think the confusion is caused by "occur" being multi-interpretable. Occur (exist) in the template vs. occur (take place) chronologically. --77.173.90.33 (talk) 10:53, 30 March 2019 (UTC)[reply]
Yes, that is unfortunate. What should it say? Johnuniq (talk) 10:57, 30 March 2019 (UTC)[reply]
I know we'll get into the nitty-gritty of "template-speak" vs "captain dummy talk", but we could change it to say Death date (first date values) must occur after birth date (second date values) or something similar, to make it clear that it's the parameter set we're referring to (simply saying "first parameter" might be confusing since technically the dates are three params. Primefac (talk) 12:11, 30 March 2019 (UTC)[reply]
Phrase "must occur after" there can still cause confusion. I actually wanted to reply to you with "before :)" thinking you made a mistake. But then I realized you're simply using occur chronologically. So, your suggested phrasing doesn't solve the problem (fully). --77.173.90.33 (talk) 14:32, 30 March 2019 (UTC)[reply]
Death date (first date value) must be later in time than the birth date (second date value)? Without semantically deconstructing every nuance of every word we use, I'm not sure if we're making things better or worse by being this specific. At some point we have to assume that the users will have some idea of what we're talking about. Primefac (talk) 21:35, 30 March 2019 (UTC) And I apologize if I sound snarky or sarcastic, I'm genuinely curious how we can be succinct and avoid being overly verbose.[reply]
What you suggest here - Death date (first date value) must be later in time than the birth date (second date value) - seems perfect to me. --77.173.90.33 (talk) 22:28, 30 March 2019 (UTC)[reply]

I updated Module:Age with a new message namely "Death date (first date) must be later in time than the birth date (second date)". That's slightly different from Primefac's suggestion but should be adequate and is consistent with other messages. I did some i18n work for the Bengali Wikipedia in February and took this opportunity to put that in the enwiki module so it's a massive change. Johnuniq (talk) 01:11, 31 March 2019 (UTC)[reply]

Thanks Johnuniq. --77.173.90.33 (talk) 09:48, 31 March 2019 (UTC)[reply]

Using Module:Age

I plan to use Module:Age to implement this template soon. {{Death date and age/sandbox}} uses the module and can be used for testing. The module checks dates are valid and has more features.

The current template documentation says the "year, month, and day of death are required" but that is not the case. For example, William Inge (judge) has

  • {{Death date and age|1322|5||1260||}} → May 1322(1322-05-00) (aged 61–62)
  • {{Death date and age/sandbox|1322|5||1260||}} → May 1322(1322-05-00) (aged 61–62)

The template requires the month of death but that seems to be a limitation due to wikitext complexity rather than a wanted requirement. The module requires the year of death and the year of birth. All other fields are optional.

The module also accepts two dates in a variety of formats:

  • {{Death date and age/sandbox|2011|5|12|2000|4|11}} → May 12, 2011(2011-05-12) (aged 11)
  • {{Death date and age/sandbox|2011-05-12|2000-4-11}} → May 12, 2011(2011-05-12) (aged 11)
  • {{Death date and age/sandbox|12 May 2011|April 11, 2000}} → May 12, 2011(2011-05-12) (aged 11)

The main reason to use the module is to improve the error messages that can occur (see #confusing error message above). Examples of error messages:

  • {{death date and age/sandbox|2005|4|12|2000|4|31}}Error: Need valid birth date (second date): year, month, day
  • {{death date and age/sandbox|2005|4|31|2000|4|30}}Error: Need valid death date (first date): year, month, day
  • {{death date and age/sandbox|2000|4|1|2000|4|2}}Error: Death date (first date) must be later in time than the birth date (second date)

Earlier I thought that using the module would reveal 30 or 40 problems in articles that would need to be fixed. After looking more closely, I don't think that is the case because the existing template mostly calls {{age}} which uses the module, so dates are already validated. Johnuniq (talk) 09:30, 7 January 2019 (UTC)[reply]

Once you've updated this template. Just wondering if it's also worth doing Template:Birth date and age2 as well? -- WOSlinker (talk) 11:41, 7 January 2019 (UTC)[reply]
Will the updates either issue a warning, or not produce metadata, if either date is before 15 October 1582? Jc3s5h (talk) 12:08, 7 January 2019 (UTC)[reply]
Compatibility was my first thought, so no. Putting the two templates for William Inge above into Special:ExpandTemplates shows they generate exactly the same output, except the module does not have the extraneous comma after "May". That cutoff date is unclear because, as you would know, the switchover date varied enormously worldwide. However, it would be pretty easy to add a test to not output the metadata. I was also wondering about whether the metadata should show zeroes for missing month/day (it currently does), or whether an unknown component should mean the metadata is omitted. Johnuniq (talk) 22:33, 7 January 2019 (UTC)[reply]
I switched the template to use the module. Problems will appear in Category:Age error which I check regularly. Johnuniq (talk) 22:55, 7 January 2019 (UTC)[reply]
I understand the module is supposed to emit metadata that follows the V-card standard. That standard says it follows a subset of ISO 8601:2004. I have a copy of that that I grabbed before ISO removed all the publicly accessible versions. The relevant section indicate that if the date is unknown, it may be omitted. Similarly, if the month and date are both unknown, they can both be omitted. Substituting zeros for unknown values is not mentioned, and is therefore incorrect. The examples given in the standard are 1985-04 for April 1985, and just 1985 when neither the month nor date are known. Jc3s5h (talk) 03:32, 8 January 2019 (UTC)[reply]
Would you mind posting a new section with a proposal for what should happen with the metadata. According to the doc, the metadata is not official anyway because (it says) there is no standard for death date metadata. Therefore I'm not sure if it matters what we do, but I have no concern about removing it if wanted. The year is always known (omitting the year gives an error). Apart from possibly omitting metadata when the month or day is unknown, there is the question of what to do when the death date is before the official Gregorian calendar. We need some discussion from people with an interest in metadata. Any sign of consensus would mean I'd be happy to do what is needed with the module. Johnuniq (talk) 05:00, 8 January 2019 (UTC)[reply]
Do you know if all the date and biography related templates all use Module:Age? Would fixing Module:Age fix all of them? It seems a shame to fix it for just the death date and age template when all of them are an issue. Jc3s5h (talk) 15:51, 8 January 2019 (UTC)[reply]

There are lots of related templates and many do not use the module. I listed some at Module talk:Age#Age/birth/death templates. Some of those output metadata. I looked at {{birth-date and age}} and it outputs a lot of HTML that is quite different from {{birth date and age}}:

{{birth-date and age|April 12, 1941}}
<span class="mw-formatted-date" title="1941-04-12">April 12, 1941</span><span style="display:none">&#160;(<span class="dtstart bday">1941-04-12</span>)</span> (age&nbsp;<span class="currentage"></span>77)

{{birth date and age|April 12, 1941}}
<span style="display:none"> (<span class="bday">1941-04-12</span>) </span>April 12, 1941<span class="noprint ForceAgeToShow"> (age&nbsp;77)</span>

{{death-date and age|May 1993|May 1941}}
May 1993<span style="display:none">&#160;(<span class="dtend dday deathdate">1993-06</span>)</span> (aged&nbsp;52)

{{death date and age|May 1993|May 1941}}
May 1993<span style="display:none">(1993-05-00)</span> (aged&nbsp;51–52)

There would be a fair bit of turmoil in getting all the templates cleaned up, and there are several that I did not list that probably should be deleted. Proceed slowly, I guess. I will ping MB to be sure they know the message problems mentioned above have been fixed. There were only a couple of glitches in articles and they have been fixed. Johnuniq (talk) 06:35, 9 January 2019 (UTC)[reply]

I added outputs from {{death-date and age}} and {{death date and age}} as well. Johnuniq (talk) 08:42, 9 January 2019 (UTC)[reply]
I put more details at Module talk:Age#Age/birth/death templates and asked about the metadata at WT:WikiProject Microformats#Age/birth/death microformats. Johnuniq (talk) 09:32, 12 January 2019 (UTC)[reply]

"Age" versus "aged": 2019

Read all of this: https://en.wikipedia.org/wiki/Template_talk:Death_date_and_age/Archive_2#%22Age%22_versus_%22aged%22 - no consensus was reached.

Can we reach a consensus now?

Template-protected edit request on 5 July 2020

My request is that - instead of 'Died' it should be 'Disappeared' in the main page that appears in Google or inside the page in Wikipedia in side bar (as devotees never died they appear and disappear from this material world when their role reaches climax). Thank you !! Satyam BCS (talk) 17:57, 5 July 2020 (UTC)[reply]