Template talk:Start date and age

(Redirected from Template talk:Start date and age/sandbox)
Latest comment: 8 days ago by Redrose64 in topic Use outside infoboxes

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

Use outside infoboxes

edit

Template:Start date#When not to use this template explicitly states that it is not to be used outside microformat-emitting templates or table rows. Does the same restriction apply here? If so, why isn't it documented? --Redrose64 🌹 (talk) 22:22, 10 August 2024 (UTC)Reply