Jump to content

Template talk:Date table sorting: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 66: Line 66:
*:No, they are no longer used, and can be safely deleted. There's one page, [[User:Salton Finneger/sandbox]], using [[Template:Dts/out]], but I am guessing that [[User:Salton Finneger]] probably won't mind if it breaks. — '''''[[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> 09:34, 17 March 2019 (UTC)
*:No, they are no longer used, and can be safely deleted. There's one page, [[User:Salton Finneger/sandbox]], using [[Template:Dts/out]], but I am guessing that [[User:Salton Finneger]] probably won't mind if it breaks. — '''''[[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> 09:34, 17 March 2019 (UTC)
*::{{ping|RHaworth}} You asked [[Wikipedia:Templates for discussion/Log/2019 March 4#Unused DTS Subtemplates|here]] to let you know if any of the ones left should be also deleted - these 4 can be deleted as well. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:34, 17 March 2019 (UTC)
*::{{ping|RHaworth}} You asked [[Wikipedia:Templates for discussion/Log/2019 March 4#Unused DTS Subtemplates|here]] to let you know if any of the ones left should be also deleted - these 4 can be deleted as well. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:34, 17 March 2019 (UTC)
*::No objections whatsoever from me. I'll go ahead and blank the sandbox page—I've long since forgotten about whatever I was trying to do there. —[[User:Salton Finneger|Salton Finneger]] ([[User talk:Salton Finneger|talk]]) 16:40, 19 March 2019 (UTC)


== Day of the week ==
== Day of the week ==

Revision as of 16:40, 19 March 2019

Documentation

Looking at Template:Dts/doc there are tables which all have empty "hidden sort key" columns. So then why is that column there? Is it for addkey or is it for the value of span attribute data-sort-value as seen here: view-source:https://en.wikipedia.org/w/index.php?title=User:User123o987name/sandbox&oldid=876188630? I think it's for the former, but if it is for the latter then values will be difficult to add considering how convoluted things are. --User123o987name (talk) 19:09, 31 December 2018 (UTC)[reply]

Can the subpages be deleted now that a module is being used?

It appears that most or all of the subpages of this template are no longer used, now that it has been converted to a module. Here's a list of the subpages:

Can we nominate these subpages for deletion? Is there any reason to preserve them for historical reference? I'll check each one for incoming links and transclusions before nominating, unless someone here wants to take on the TFD work. – Jonesey95 (talk) 20:33, 26 February 2019 (UTC)[reply]

The more urgent problem is that this template is being used in many places where it isn't necessary. {{3x|p}}ery (talk) 23:22, 26 February 2019 (UTC)[reply]

Day of the week

Is there an easy way to get output to automatically determined and include the day of the week? NewsAndEventsGuy (talk) 15:28, 16 March 2019 (UTC)[reply]

See {{WEEKDAYNAME}} and {{Weekday}}. {{WEEKDAYNAME|{{Weekday|2001|09|11}}}} → Tuesday. There might be an easier way. – Jonesey95 (talk) 18:16, 16 March 2019 (UTC)[reply]
Thanks. I should have been more clear. I would like to input 3-16-2019 into a single template to produce Sat., 16 Mar 2019 or the equivalent. NewsAndEventsGuy (talk) 18:54, 16 March 2019 (UTC)[reply]
There may be a way to decode 3-16-2019 using this template but I hope not because that format is ambiguous (although the values make it obvious in this case that it is month-day-year). Something like 4-1-2019 could be April 1 or 4 January 2019. Using {{extract}} it is possible to decode unambiguous dates:
  • {{extract|2019-3-16|show=%a., %-d %b %Y}} → Sat., 16 Mar 2019
  • {{extract|Mar 16, 2019|show=%a., %-d %b %Y}} → Sat., 16 Mar 2019
The date codes are documented at Module:Date. Johnuniq (talk) 23:04, 16 March 2019 (UTC)[reply]
Thanks and I apologize for still not being clear. If I type 3|16|2019 in any order..... Or if I type those numeric digits with some other dilineation...... is there a single SIMPLE template that will output a date in any format that includes the day of the week?NewsAndEventsGuy (talk) 00:12, 17 March 2019 (UTC)[reply]
As well as {{extract}}, you could also try using the #time parser function, although I wouldn't call it simple. Maybe taking a different tack would be best here - where are you thinking of using this date-converting function? If we know a little bit more about what you want to use it for we might be able to give you some better options. Best — Mr. Stradivarius ♪ talk ♪ 09:45, 17 March 2019 (UTC)[reply]
Thanks to all for help here. Whether it is needed is a matter of ongoing discussion at School strike for climate. My personal opinion remains conflicted.
This paragraph is an offtopic sidebar that I offer just to briefly explain the substance of the dispute, to give context. No need to reply to any of this here, though if you have thoughts to share it would be great to read those in the thread at talk page for the article. The location is School strike for climate. In defining the article scope the lead specifically says the events involve kids skipping school to protest for climate action. The key things is "skipping school". On article talk an IP observed that some of the events may have been held after school hours or on days when school was not in session. So the question is whether such individual events qualify for inclusion in the table. If this tool existed, it could help assess the scope of this dilemma. I could copy paste the entire table to a word processor and reformat the data in the date date column with a search and replace macro then copy back to the article. What we DO with the result is a matter for continued editing/discussion.
Returning now to topical question about the tools, in order to be really useful it would have to be super simple for a wide range of international nonNative English speakers to use. Thanks to all for your help. Again, if you have comments on the substance of the dilemma please add them at article talk. And thanks!
NewsAndEventsGuy (talk) 14:07, 17 March 2019 (UTC)[reply]