Template talk:Date table sorting

This is an old revision of this page, as edited by Wikibarista (talk | contribs) at 00:35, 17 April 2007 (Possible bugs). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 18 years ago by Wikibarista in topic Possible bugs

Expand the features

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.—Wikibarista 17:16, 21 March 2007 (UTC)Reply

Being used outside of sorted tables

The acronym is great, but unfortunately, it's being 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. —Wikibarista 18:02, 21 March 2007 (UTC)Reply

Template talk:Sort

Centralized discussion for all issues surrounding sortkeys for wikitables created here: Template talk:Sort. ~ trialsanderrors 09:02, 5 April 2007 (UTC)Reply

Possible bugs

My Special:Preferences have the date presentation set to "2001-01-15T16:12:34". Yet when template is passed {{Dts|15|January|2001}} I get the output of "15 January 2001". Surely I should be seeing the same output as what [[January 15]] [[2001]] would give me, which is "2001-01-15". What's gone wrong? --Oscarthecat 16:46, 10 April 2007 (UTC)Reply

I fixed it, it was due to a blank space in the year link: [[12 April]] [[2007 ]] gives 12 April 2007 .--Patrick 07:25, 12 April 2007 (UTC)Reply
Thanks for the quick response Patrick. Yes, now working great. --Oscarthecat 20:32, 15 April 2007 (UTC)Reply

Great work this weekend! I noted dts doesn't play nice with {{sortdate}} in the same table. I might be wrong on that, I'll have to look later. —Wikibarista 00:28, 17 April 2007 (UTC)Reply

A-ha, I see it. dts has a leading 0 whereas sortdate does not. —Wikibarista 00:35, 17 April 2007 (UTC)Reply