Template talk:Start date and age

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

"days ago" too high if month is given as full name[edit]

  • {{Start date and age|2020|Jul|31}} produces correctly 1 day ago
  • {{Start date and age|2020|July|31}} produces 30 days ago

Dexxor (talk) 09:29, 1 August 2020 (UTC)[reply]

Partially expanded template:
  • July 31, 2020; 3 years ago (2020-07-31)
  • July 31, 2020; 3 years ago (2020-07-31)
The first part is fine; but the second is not:
  • {{time ago|2020-Jul-31|min_magnitude=days}} → 3 years ago
  • {{time ago|2020-July-31|min_magnitude=days}} → 3 years ago
which in turn means that the problem is in Module:Time ago. I can go no further. --Redrose64 🌹 (talk) 10:10, 1 August 2020 (UTC)[reply]

How to show from Wikidata?[edit]

If this is not possible - please mention in documentation. Vitaly Zdanevich (talk) 18:56, 29 March 2021 (UTC)[reply]

Change template[edit]

When I view Mountain Dew, it says 82 years ago instead of 81–82 years ago. Please change this so it could work more like Template:Birth year and age. — Preceding unsigned comment added by KaiHunter12 (talkcontribs) 01:58, 6 June 2022 (UTC)[reply]

@KaiHunter12: I think that the problem is in {{years or months ago|1940}} → 84 years ago. --Redrose64 🌹 (talk) 14:07, 6 June 2022 (UTC)[reply]
Template:Years or months ago should also be updated to correctly show 81–82 years. KaiHunter12 (talk) 19:22, 7 June 2022 (UTC)[reply]
That's what I'm saying - the problem is in that template, not this one. If you can get Template:Years or months ago amended, you'll find that {{Start date and age|1940}} then behaves as you want. But you also need to ensure that such a change does not compromise the other places that {{Years or months ago}} is used. --Redrose64 🌹 (talk) 23:17, 7 June 2022 (UTC)[reply]

Removal of {{Error}}[edit]

Wbm1058, to answer the question in Special:Diff/1099411584 – the problem is visible on every page that uses it. Please take a look at Template:Start date and age/testcases. —⁠andrybak (talk) 16:52, 20 July 2022 (UTC)[reply]

Thanks andrybak. Sorry I did not check the test cases. My bad. wbm1058 (talk) 16:57, 20 July 2022 (UTC)[reply]
Doh. I removed {{error but neglected to remove the closing }}wbm1058 (talk) 17:04, 20 July 2022 (UTC)[reply]

I have a change ready in the sandbox which will just return blank when parameters 1, 2, and 3 are all missing. Editors are pulling Wikidata to use for this template's parameters and often there is no date in Wikidata. This is considered "normal" so returning an error has been problematic. For example in the Python (programming language) infobox. I was reverted after I removed Wikidata-filled parameters where Wikidata was not returning any "latest preview date". See the relevant test cases. The new behavior is to only show the error when parameter 1 is missing and parameter 2 and/or 3 are not missing. If there are no timely objections I will make the sandbox code go live. – wbm1058 (talk) 18:22, 20 July 2022 (UTC)[reply]

Template-protected edit request on 26 April 2023[edit]

I think we need prehistoric years (0BC and before) to be included. 50.39.178.57 (talk) 03:56, 26 April 2023 (UTC)[reply]

 Not done for now: please establish a consensus for this alteration before using the {{Edit template-protected}} template. BilCat (talk) 04:03, 26 April 2023 (UTC)[reply]
Also: (i) there is no such year as 0BC - the year before AD 1 is 1 BC; (ii) that is not the meaning of "prehistoric". --Redrose64 🌹 (talk) 16:21, 26 April 2023 (UTC)[reply]
It's possible to use a negative year:
-2833; 4857 years ago (-2833)
But "2833 BC" as output would be better. --Kallichore (talk) 21:01, 26 April 2023 (UTC)[reply]
 Not done. This is a documented limitation of the template, for reasons outside of the template's control. – Jonesey95 (talk) 22:39, 26 April 2023 (UTC)[reply]