Template talk:Other date

Template:Other date has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.
Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them.

In French "siècle" and "millénaire" are both masculine so ordinals for 1st century and millennium should be a Roman Ier not Ie, see e.g. fr:Ier_millénaire. I have written a fix. In the |century={{LangSwitch block change from ...

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", 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)

This template was rewritten in Lua, see Module:Complex date and Module:I18n/complex date. Also I am working on a new template {{Complex date}} which will be able to replace most of the nested {{Other date}} templates. For example {{other date|-|{{other date|early|{{other date|century|20}}}}|{{other date|mid|{{other date|century|21}}}}}} will be replaced with {{Complex date|adj1=early|date1=20|conj=-|adj2=mid|date2=21|precision=century}} giving "from early 20th century until mid 21st century". However {{Complex date}} is not ready for prime-time yet, since it needs some more development, better documentation, and much more testing. Module:Complex date will also be the core of {{Circa}} and {{Era}}. --Jarekt (talk) 14:10, 27 January 2015 (UTC)

I am now slowly working on templates that will rely on the new module, since I would like to have a single place there all translations are kept. And working on template documentation and testing, but pretty soon I will go back to the LUA coding, since at least in Polish many complex phrases have wrong grammatical cases. How are complex phrases in French? Are they OK? I was thinking about expending the mechanism similar to the one currently used for "turn of the ..." options where if one uses one of those options is equivalent to calling {{Complex date|adj1=late|date1=...|conj=and|adj2=early|date2=...|precision=...}} and the code first tries to use the specialized "turn of the ..." option but if it is not found than builds it from individual phrases. I suspect that for some languages we might have to have many specialized phrases and for some (like English) it is easy to build them up from simpler phrases. --Jarekt (talk) 14:17, 29 January 2015 (UTC)

Yes, from what I have seen French is ok, except circa, where "le" should be added before that day when there is one: you say "vers mai 1900", but "vers le 2 mai 1900", not "vers 2 mai 1900".

Another small point I was wondering about: 1990s is "date1=1990, precision1 = decade", which sounds sensible, but 20th century is "date1=20, precision=century". "date1=1900, precision=century" would be logically more consistent, and also more consistent with Wikibase - though I don't know if that would be too convenient given legacy formats. --Zolo (talk) 16:39, 29 January 2015 (UTC)

User:Zolo I corrected French spelling and added code to allow YY00 and Y000 formats for centuries and millennia. --Jarekt (talk) 05:11, 1 February 2015 (UTC)

Hi, it seems that {{otherdate|c|date}} is no longer supported. {{otherdate|ca|date}} works. I've used ...|c|... often and now this causes the following error message: "Error in Module:Complex date: c is not recognized.". Greetz! Bukk (talk) 09:22, 4 February 2015 (UTC)

Thanks for alerting me. I will make sure to fix it at the next update. --Jarekt (talk) 13:42, 5 February 2015 (UTC)