Template talk:Date table sorting: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) to Template talk:Date table sorting/Archive 2) (bot
 
(370 intermediate revisions by more than 100 users not shown)
Line 1:
{{talkheader|search=yes}}
== Expand the features ==
{{User:MiszaBot/config
|archiveheader = {{talkarchivenav}}
|maxarchivesize = 75K
|counter = 2
|minthreadsleft = 3
|minthreadstoarchive = 1
|algo = old(14d)
|archive = Template talk:Date table sorting/Archive %(counter)d
}}
 
== [[:ce:Модуль:Dts]] ==
This template has no error checking for missing params, like day or month, and it should, since date can sort without them. It broke our [[Help:Sorting#Dates]] section, too! To convert existing tables in the DD-MM-YYYY format to something pretty, and to do it easily, it needs to be able to take the standard DD-MM-YYYY or DD-MM-YY format. In those cases, there would be no need to error check. Maybe it could just check parameter {{{1}}}, perhaps, for dashes and then directly print the full string hidden, then wikilinked, and Mediawiki will do the rest. Let me know if that part doesn't make sense. Sorry I can't figure out how to do that myself.—[[User:Wikibarista|Wikibarista]] 17:16, 21 March 2007 (UTC)
 
Hello! Can someone help me fix the date format in Chechen? should be "2020 шеран 9 декабрь". [[User:Takhirgeran Umar|Takhirgeran Umar]] ([[User talk:Takhirgeran Umar|talk]]) 20:28, 9 December 2022 (UTC)
== Being used outside of sorted tables ==
 
== How to make date ranges sort to correct position in both ascending and descending displays? ==
The acronym is great, but unfortunately, it's being [http://en.wikipedia.org/w/index.php?title=Jissen_Pachi-Slot_Pachinko_Hissh%C3%B4h%C3%B4_%21_Hokuto_no_Ken&diff=prev&oldid=116744504 used incorrectly] already by people to just put in dates anywhere in an article. We should rename it to "sortdate" to avoid misuse, because the misuse will cause pages to be larger when they're converted to HTML. —[[User:Wikibarista|Wikibarista]] 18:02, 21 March 2007 (UTC)
 
Is there any way to make a [[MOS:DATERANGE]] sort to the correct chronological position in both ascending and descending displays? For example in [[Jack Deam#Filmography]] the date ranges sort by the first date in the range, which is correct if sorting oldest first but gives incorrect chronological order when using date sorting to display most recent at the top where it is the end of the range date that determines correct chronological order. [[Special:Contributions/213.18.145.207|213.18.145.207]] ([[User talk:213.18.145.207|talk]]) 13:44, 5 April 2023 (UTC)
==[[Template talk:Sort]]==
:I believe not although you might check at [[WP:VPT]]. As I far as I know, each column has a single sort key which is used for both ascending and descending ordering. For example, <code>2016–2022</code> cannot be sorted by 2016 in one direction and 2022 in the other. I don't think it matters much for the example given. If it were a big deal, two columns would be needed, one for the first date and another for the last. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 02:53, 6 April 2023 (UTC)
Centralized discussion for all issues surrounding sortkeys for wikitables created here: [[Template talk:Sort]]. ~ [[User:Trialsanderrors|trialsanderrors]] 09:02, 5 April 2007 (UTC)
 
== Invalid date error for 2524 BC ==
==Possible bugs==
My [[Special:Preferences]] have the date presentation set to "2001-01-15T16:12:34". Yet when template is passed '''<code><nowiki>{{Dts|15|January|2001}}</nowiki></code>''' I get the output of "15 January 2001". Surely I should be seeing the same output as what '''<code><nowiki>[[January 15]] [[2001]]</nowiki></code>''' would give me, which is "2001-01-15". What's gone wrong? --[[User:Oscarthecat|Oscarthecat]] 16:46, 10 April 2007 (UTC)
 
The [[Decolonisation of Asia]] article has a table with a cell containing the date 2524 BC. This template throws an error if used with this date. [[User:Wtmitchell|Wtmitchell]] [[User talk:Wtmitchell|(talk)]] <small>(earlier ''Boracay Bill'')</small> 00:16, 4 January 2024 (UTC)
:I fixed it, it was due to a blank space in the year link: <nowiki>[[12 April]] [[2007 ]]</nowiki> gives [[12 April]] [[2007 ]].--[[User:Patrick|Patrick]] 07:25, 12 April 2007 (UTC)
:I believe the following works:
::Thanks for the quick response Patrick. Yes, now working great. --[[User:Oscarthecat|Oscarthecat]] 20:32, 15 April 2007 (UTC)
:*<code><nowiki>{{dts|2524|||BC}}</nowiki></code> → {{dts|2524|||BC}}
 
:The missing parameters 2 and 3 are for the month and day. The era (BC etc.) is parameter 4. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 00:38, 4 January 2024 (UTC)
Great work this weekend! I noted dts doesn't play nice with {{tl|sortdate}} in the same table. I ''might'' be wrong on that, I'll have to look later. —[[User:Wikibarista|Wikibarista]] 00:28, 17 April 2007 (UTC)
:{{ping|Wtmitchell}} I should probably have notified you. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 03:37, 4 January 2024 (UTC)
:A-ha, I see it. dts has a leading 0 whereas sortdate does not. —[[User:Wikibarista|Wikibarista]] 00:35, 17 April 2007 (UTC)
::Thanks. I applied fixed [https://en.wikipedia.org/w/index.php?title=Decolonisation_of_Asia&diff=1193505885&oldid=1192949085 here]. [[User:Wtmitchell|Wtmitchell]] [[User talk:Wtmitchell|(talk)]] <small>(earlier ''Boracay Bill'')</small> 04:39, 4 January 2024 (UTC)
 
::I have added the zero in sortdate.--[[User:Patrick|Patrick]] 08:54, 3 May 2007 (UTC)
 
==[[List of Wii games]]==
It seems like this template is breaking the sortable list of wii games, around the game "Wii Play". I have been unable to solve the problem, is any template coder capable of providing advanced help around? --[[User:Krator]] ([[User talk:Krator|t]] [[Special:Contributions/Krator|c]]) 14:43, 26 April 2007 (UTC)
:It seems the limit per [[Wikipedia:Template limits]] is reached on the page. --[[User:Krator]] ([[User talk:Krator|t]] [[Special:Contributions/Krator|c]]) 15:07, 26 April 2007 (UTC)
 
== Change entry format from MM-DD-YYYY to YYYY-MM-DD ==
 
I motion that we change the entry format for this template from MM-DD-YYYY to YYYY-MM-DD. Pretty much all of the templates that require date entry are using YYYY-MM-DD ( {{tl|Age in days}} is one I use often), and this should be changed to conform to that. I think that's standard - even the citation templates use that format. [[User:Gary King|Gary King]] ([[User talk:Gary King|talk]]) 02:36, 26 March 2008 (UTC)
 
==Compatibility with [[WP:DATE]]==
Based on recent changes to date formats (in particular, date autoformatting) in the [[Wikipedia:Manual of Style]] for dates, I would like to suggest that "link=off" should be the default setting so that dates are not automatically linked when not specifying a parameter (likely to be the most common usage). If editors wish to link dates, they can set "link=on". [[User:Truthanado|Truthanado]] ([[User talk:Truthanado|talk]]) 00:15, 15 September 2008 (UTC)
 
: A lot of people who use this template might then wonder why the links are now off; they might think something is broken, perhaps. <font face="Verdana">[[User:Gary King|<font color="#02e">Gary</font>&nbsp;<font color="#02b"><b>King</b></font>]]&nbsp;([[User talk:Gary King|<font color="#02e">talk</font>]])</font> 03:00, 15 September 2008 (UTC)
 
::That kind of confusion is already happening with the major change in the way dates are handled now. In the interest of moving forward to a consistent system, maybe that's an acceptable "bump in the road". [[User:Truthanado|Truthanado]] ([[User talk:Truthanado|talk]]) 11:32, 15 September 2008 (UTC)
 
::: I don't mind; I created that feature in this template and would like to see the default as unlinked. But of course, I'm always a fan of consensus, too :) <font face="Verdana">[[User:Gary King|<font color="#02e">Gary</font>&nbsp;<font color="#02b"><b>King</b></font>]]&nbsp;([[User talk:Gary King|<font color="#02e">talk</font>]])</font> 14:14, 15 September 2008 (UTC)
 
:::: I think if the policy is to have unlinked dates, then the template ought to be made to be consistent with that policy. It is true that some people might think the template is broken, but then that should hopefully lead them to discover the change in policy, which would be a good thing in the long run! [[User:Mrh30|Mrh30]] ([[User talk:Mrh30|talk]]) 09:27, 10 October 2008 (UTC)
 
== Day and month without year? ==
 
I thought I had already asked this question, but apparently not. :) Is it possible to make this template display a date without the year, i.e. just day and month? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 23:16, 23 October 2008 (UTC)
: No, not with its current setup. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary&nbsp;<b>King</b></font>]]&nbsp;([[User talk:Gary King|<font color="#02e">talk</font>]])</font> 23:20, 23 October 2008 (UTC)