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 568:
I used the DTSH template on tables of fraternity installation dates in sortable tables when the only information available was season, so if I had three fraternity installations as February 1, 1940, Spring 1940 and May 13, 1940, I'd do them as <nowiki>{{dts|1940|2|1}}, {{dtsh|1940|4|1}}Spring 1940, and {{dts|1940|5|13}}</nowiki> how can I do this without dtsh?[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 00:47, 23 February 2015 (UTC)
:It's been replaced by {{para|format|hidden}}. [[User talk:Jimp|Jimp]] 11:56, 19 March 2015 (UTC)
 
== Sorting with range of dates ==
 
Is it possible somehow to sort with a date range? For example, I have a list of events with the following dates "June 22 - July 3, 1956", "September 20 - October 5, 1946" and "August 1-20, 1934". --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 12:53, 14 June 2015 (UTC)
:{{ping|Gonnym}} There is a manual workaround. Enter the first date of the range in the template, use {{para|format|hide}}, and then display the date range manually. You may also want to prevent your dates from wrapping by using {{tl|nowrap}}. For example, <code><nowiki>{{dts|1956|6|22|format=hide}}{{nowrap|June 22 - July 3, 1956}}</nowiki></code> will give you "{{dts|1956|6|22|format=hide}}{{nowrap|June 22 - July 3, 1956}}". — '''''[[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> 04:23, 4 July 2015 (UTC)
::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)