Template talk:Date table sorting/Archive 1: Difference between revisions

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 575:
::A very much belated thank you for your assistance Mr. Stradivarius. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 17:31, 10 August 2015 (UTC)
::Thank's a lot for this. My workaround was to use the generated sort key like <code>|data-sort-value=000000002015-10-29-0000 |October 29–31, 2015</code> which wasn't pretty or scalable at all. [[User:Opencooper|Opencooper]] ([[User talk:Opencooper|talk]]) 17:42, 1 October 2015 (UTC)
 
== Available formats ==
 
This may not be especially relevant, since automatic support of dates in table sorts has made this template a lot less necessary, but note that at [[Template:Dts/doc#Parameters]], the list of format options is incomplete—the template also supports MDY to display dates in the {{#time: n/j/Y}} format. —[[User:Salton Finneger|Salton Finneger]] ([[User talk:Salton Finneger|talk]]) 14:11, 1 July 2016 (UTC)
:{{ping|Salton Finneger}} I'm not quite sure what you mean - {{para|format|mdy}} is one of the options listed at [[Template:Dts/doc#Formatting]], but it results in something like {{#time: F j, Y}}, not {{#time: n/j/Y}}. Could you clarify? Best — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 13:08, 5 July 2016 (UTC)
::{{ping|Mr. Stradivarius}} Sorry for not being more clear. I'm not referring to the output formats, but rather the acceptable input formats. I'm looking at the second column of the table at [[template:dts/doc#dates]], where there is a bulleted list showing the date formats that are accepted for input. —[[User:Salton Finneger|Salton Finneger]] ([[User talk:Salton Finneger|talk]]) 17:41, 5 July 2016 (UTC)
:::{{ping|Salton Finneger}} Ah, I see. That will actually be interpreted as DMY, not MDY. You can check that by going to [[Special:ExpandTemplates]] and entering <code><nowiki>{{dts|5/7/2016}}</nowiki></code> - it will give you <code><nowiki><span class="sortkey" style="display:none;speak:none">000000002016-07-05-0000</span><span style="white-space:nowrap">5 July 2016</span></nowiki></code>. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 23:27, 5 July 2016 (UTC)
::::I'd say it's best not to mention this in the doc though. XX/XX/XXXX format is ambiguous. Even though it'd only be in the source code, it'd be better not to encourage it. [[User talk:Jimp|Jimp]] 02:02, 6 July 2016 (UTC)