Last modified on 27 January 2015, at 14:10

Template talk:Other date

Info non-talk.svg 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.


Lua versionEdit

User:Sn1per, was lately hard at work writing Lua version of this template, see Module:Other date, once it is ready and well tested we will deploy. One big change will be extended syntax. For example to get "from early 20th century until mid 21st century" at the moment one has to do {{other date|-|{{other date|early|{{other date|century|20}}}}|{{other date|mid|{{other date|century|21}}}}}}, but with the Lua's version extended syntax we will use {{other date|adj1=early|date1=20|junction=-|adj2=mid|date2=21|precision=century}} or something similar. it might be good to use this occasion to do some other changes. for example I never liked the name "other date", and would like to propose to change it to something else. May be: "Date phrase", "Complex date", "Expanded date", etc.? I think any one of those would be better than "other date" but none of them is a clear winner. Any other name ideas, or opions on the proposed names? Also the parameter names in the extended syntax might need some careful consideration. --Jarekt (talk) 17:00, 24 December 2014 (UTC)

Nice. I like "complex date" best (even though some of them are not really more complex than a standard iso date). --Zolo (talk) 20:17, 28 December 2014 (UTC)
Ok, I guess those are only votes we are going to get. I will start using "complex date" term for module and new template and eventually "Other date" will redirect to it. --Jarekt (talk) 16:43, 30 December 2014 (UTC)

Correction for Russian languageEdit

{{editprotected}} |-={{LangSwitch … |ru=с {{ISOdate|1={{{2|}}}|2=ru|form=gen}} по {{ISOdate|1={{{3|}}}|2=ru|form=gen}} <!-- Need Genitive case --> … |julian={{LangSwitch <!-- This is often used when talking about birth and death dates of Russians from 19th century --> … |ru={{ISOdate|1={{{2|}}}|2=ru}} {{ISOdate|1={{{3|}}}|2=ru}} [[w:ru:Юлианский календарь|по ст. ст.]] Ain92 (talk) 21:55, 26 December 2014 (UTC)

✓ Done thanks for corrections. --Jarekt (talk) 22:57, 26 December 2014 (UTC)

FR rules for century and millenniumEdit

{{Edit request}}

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 ...

      |fr={{Roman year|{{{2|}}}}}<sup>e</sup> siècle

to ...

      |fr={{Ordinal|{{{2|}}}|lang=fr|style=roman|gender=m}} siècle

In the | millennium ={{langSwitch block change from ...

     |fr={{ordinal|{{{2|}}}|style=Roman year|lang=fr}} millénaire

to ...

     |fr={{Ordinal|{{{2|}}}|lang=fr|style=roman|gender=m}} millénaire

RP88 (talk) 09:35, 9 January 2015 (UTC)

All done Smiley.svg Thank you --Jarekt (talk) 12:45, 9 January 2015 (UTC)
Thanks. —RP88 (talk) 12:56, 9 January 2015 (UTC)

ES, IT, and PT rules for millenniumEdit

{{Edit request}}

Spanish, Italian, and Portuguese should use Roman numerals for millenniums, see e.g. II milenio, II millennio, etc. In the | millennium ={{langSwitch block change from (PT not present)...

     |es={{{2|}}} milenio
     |it={{{2|}}} millennio

to ...

     |es={{Roman|{{{2|}}}}} milenio
     |it={{Roman|{{{2|}}}}} millennio
     |pt={{Roman|{{{2|}}}}} milénio

RP88 (talk) 04:35, 14 January 2015 (UTC)

✓ Done --Jarekt (talk) 14:15, 14 January 2015 (UTC)
Thanks! —RP88 (talk) 14:16, 14 January 2015 (UTC)

betweenEdit

{{other date|?}} yields "Unknown date", and {{other date|between|1800|1825}} yields "between 1800 and 1825". At the moment {{other date|?|1800|1825}} yields "Unknown date", I'd prefer "between 1800 and 1825": 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", 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.Smile fasdfdsfoiueire.svgBe..anyone (talk) 03:42, 18 January 2015 (UTC)

Template was rewritten in LuaEdit

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)

Return to "Other date" page.