Content deleted Content added
m Archiving 1 discussion(s) from Template talk:Dts) (bot |
m Archiving 1 discussion(s) from Template talk:Dts) (bot |
||
Line 639:
{{#invoke:convert/tester|compare|dts}}
:[[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 23:42, 19 February 2018 (UTC)
== Module:Date ==
@[[User:Mr. Stradivarius|Mr. Stradivarius]]: FYI, I have been slowly developing some age/date modules which work from 9999 BCE to 9999 CE. For example, {{tl|extract}} can handle the current proposal [[#Compatibility with Manual of Style|above]] over that more limited range of years. It accepts dates in a variety of formats so <code>1945-05-27</code> and <code>1945|05|27</code> would work as well.
*<code><nowiki>{{extract|27 May 1945|show=May 27–28|sortable=on}}</nowiki></code> → {{extract|27 May 1945|show=May 27–28|sortable=on}}
I think you should make your change to dts and that it should continue to be used. I am mentioning the alternative only to make you aware that I hope to replace many of the age and date templates which have minor quirks and inconsistencies. I don't think there would be any benefit from replacing dts which is useful for its ability to handle very large years.
[[Module:Age]] and [[Module:Date]] do the work. The latter can produce a sort key based on the [[Julian day]] which allows accurate sorting of dates and times. The sort key increments by 1 for each day, and by fractional amounts if a time-of-day is specified, for example 6:00 am gives 0.25. It works from 9999 BCE to 9999 CE (dates before Julian day number 0 are regarded as negative and sort correctly). [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 00:24, 20 February 2018 (UTC)
|