Template talk:Other date/2016

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

between

{{other date|?}} yields "Unknown date

Unknown date

", and {{other date|between|1800|1825}} yields "between 1800 and 1825

date QS:P,+1850-00-00T00:00:00Z/7,P1319,+1800-00-00T00:00:00Z/9,P1326,+1825-00-00T00:00:00Z/9

". At the moment {{other date|?|1800|1825}} yields "Unknown date

Unknown date

", I'd prefer "between 1800 and 1825

date QS:P,+1850-00-00T00:00:00Z/7,P1319,+1800-00-00T00:00:00Z/9,P1326,+1825-00-00T00:00:00Z/9

": less typing, no obvious conflict. –Be..anyone (talk) 13:56, 17 January 2015 (UTC)

I am fine with adding a shortcut for workd 'Between', but it should not be string or character that is already used for something else. "-" is already taken for "from-until", but we could use "~", "<->", "/", or something else that might be easy to remember. --Jarekt (talk) 22:48, 17 January 2015 (UTC)
? would be easy to remember, and at the moment it ignores {{{2}}} and {{{3}}}. Recycling it as shortcut for between could fix this "bug", or rather, I don't see how that could be a "feature". Maybe it needs temporary tracking to check that nobody used this undocumented behaviour (bug or feature) for something, that is not between. –Be..anyone (talk) 01:04, 18 January 2015 (UTC)
I am not sure what you mean by undocumented feature. "?" is listed as an alternative to "Unknown" and "unknown" does not take any arguments. --Jarekt (talk) 03:05, 18 January 2015 (UTC)
"Undocumented" = not listed in the table with two dates, only listed in a table for one date. Quick test: {{other date|?|1800}} yields "Unknown date
Unknown date
", so that's also not used. I stumbled over ? by trial+error, looking in the docu for two dates only later, when ? didn't do what I wanted.:-)Be..anyone (talk) 03:42, 18 January 2015 (UTC)
Update: The bug is now documented, and no date got its own table for more test cases (date operators with no date expecting one or two dates.) –Be..anyone (talk) 12:33, 5 February 2015 (UTC)
@Jarekt: : What is the proper way to enter an uncertain date? I would really like to output something like "1608?", but there doesn't seem to be an i18n compatible way to do that. Personally, I think it would make more sense if {{other date|?|1608}} output "1608?" rather than "Unknown date". Could we add that if there isn't another way already? Kaldari (talk) 22:33, 5 April 2016 (UTC)
"?" seems to be quite international so why not just "1608?" Unless the sign is different in other oriental languages. I am fine with adding it. {{other date|?|1608}} doesn't expect parameter, but we could have a different behavior if parameter is provided. So go ahead or I can try it tomorrow. --Jarekt (talk) 02:23, 6 April 2016 (UTC)