Template talk:Death date and age text
TBD (notes to self)-
- Bug with both dates bc. It's in age template. probably have to fork their code.
- Fixed. -sometime in march. -J JMesserly (talk) 17:44, 10 April 2009 (UTC)
- depending on arbcom decision with autoformatting, adjust to do date formating (CSS styling approach?) and adjust this template accordingly
-J JMesserly (talk) 20:21, 26 February 2009 (UTC)
Template: Death date and age?
[edit]What is the relation of this template to the confusingly similarly worded, but much more commonly used, Template:Death date and age? I'm not confident enough about these templates to propose a merge myself, but don't like the fact they're worded so similarly without explanation of their relation. (To keep the discussion in one place, I suggest people discuss this at the other template's talk page, where I've also raised the question.) Dsp13 (talk) 17:03, 8 February 2010 (UTC)
Age calculation needs improvement
[edit]The calculated age needs a range for some combinations of months and years. Someone born in 1900 who died in 1970 could be either 69 or 70 years old at the time of death. {{Death date and age}} has some code that might be helpful. – Jonesey95 (talk) 14:25, 5 April 2015 (UTC)
- It doesn't look like anyone is working on this template. Just to give an example of this problem:
{{death-date and age}}
gives 31 July 1975 (aged 21){{death date and age}}
gives 31 July 1975 (aged 21–22)
- when both are give full death date and just birth year. There is a note that this doesn't work, but as Jonesey95 said, the code exists in one template to calculate the age correctly. MB 02:21, 16 September 2021 (UTC)
How to fix?
[edit]Can someone please help, Cor Melchers was 61 when he died, but 60 is displayed. I can't find how to solve it. Sander.v.Ginkel (Talk) 23:02, 26 September 2015 (UTC)
- The template has a bug in it. I documented the bug and used a different template in the article. – Jonesey95 (talk) 23:17, 26 September 2015 (UTC)
Can this template go away?
[edit]So in my work on Module:Person date I have discovered that {{death date and age}} actually handles the case that this template was designed for, i.e. passing in the date as a string such as:
{{death date and age|12 May 1990|11 June 1986}}
→May 12, 1990 (aged 3)
What’s more, {{death date and age}} BETTER handles the case of {{currentmonth}}… Consider the following where CURRENTMONTH is being passed in…
{{death date and age|12 October 1990|October 1986}}
→October 12, 1990 (aged 3–4){{death date and age text|12 October 1990|October 1986}}
→12 October 1990 (aged 4)
{{death date and age}} gives the correct age range. Is there any reason not to redirect this template to {{death date and age}}??
@Jonesey95 and Frietjes: can you sanity check me here? I feel like I must be missing something… Zackmann (Talk to me/What I been doing) 07:39, 23 September 2025 (UTC)
- seems like this could be the case. if so, I think most of the uses come through the redirect (very few of these: [1]), {{death-date and age}}, so changing the redirect target would probably take care of most of the uses. Frietjes (talk) 14:44, 23 September 2025 (UTC)
- Fantastic. I’m going to let this sit for a day or too in case Jonesey95 has any objections but then I’ll retarget the redirects. —Zackmann (Talk to me/What I been doing) 20:07, 23 September 2025 (UTC)
- It doesn't seem to handle keeping the date in the same format it was passed over in. For example input DMY format but output is MDY format. Need to add the df=y to get it to work, so can't just redirect this as it stands. -- WOSlinker (talk) 21:14, 23 September 2025 (UTC)
- So for example:
{{dda|June 15, 2002|April 10, 1990}}
→June 15, 2002 (aged 12){{dda|16 August 2002|10 April 1990}}
→August 16, 2002 (aged 12)- Good catch WOSlinker
- — Zackmann (Talk to me/What I been doing) 22:32, 23 September 2025 (UTC)
- I have no objections. I recommend creating a testcases page to compare this template with {{death date and age}} to see how the functionality differs. I suspect there may be edge cases where unusual formats are successfully processed by this template but not by {{death date and age}}. If we want to get rid of this template, it should be taken to TFD before replacements are made. – Jonesey95 (talk) 11:16, 24 September 2025 (UTC)
- It doesn't seem to handle keeping the date in the same format it was passed over in. For example input DMY format but output is MDY format. Need to add the df=y to get it to work, so can't just redirect this as it stands. -- WOSlinker (talk) 21:14, 23 September 2025 (UTC)
- Fantastic. I’m going to let this sit for a day or too in case Jonesey95 has any objections but then I’ll retarget the redirects. —Zackmann (Talk to me/What I been doing) 20:07, 23 September 2025 (UTC)