Content deleted Content added
→Approximate dates: commenting |
added 2 new topics "Retrofit talk-page year headers" & "Template:Dts/ver for invalid dates" |
||
Line 1:
This is the discussion/talk page for: [[Template:Dts]].
__TOC__
=<font size=3>Topics from 2007-2008</font>=
== 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.—[[User:Wikibarista|Wikibarista]] 17:16, 21 March 2007 (UTC)
Line 55 ⟶ 57:
::::::Many thanks! [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 13:21, 26 October 2008 (UTC)
=<font size=3>Topics from 2009-2010</font>=
== Approximate dates ==
Is it possible to use this table with approximate dates? I'm thinking of dates in the format "c.", "before", "after", "16/17 November" etc. The question relates to [[List of the titled nobility of England and Ireland 1300–1309]] which is currently nominated for FL, where it has been suggested that a sortable list be used. I've found this problematic with so many approximate dates. [[User:Lampman|Lampman]] ([[User talk:Lampman|talk]]) 13:24, 21 February 2009 (UTC)
: That's not possible with the current code. Regarding implementing it, I think it'd be easier to write custom code for the specific article rather than rewriting this template. Just use {{tl|sort}} to do what you want; the first parameter is for sorting, the second is for what you actually want to appear. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] ([[User talk:Gary King|<font color="#02e">talk</font>]])</font> 16:24, 21 February 2009 (UTC)
==Retrofit talk-page year headers==
''19-Mar-2009:'' I have added subheaders above as "Topics from 2007-2008" (etc.) to emphasize the dates of topics in the talk-page. Older topics might still apply, but using the year headers helps to focus on more current issues as well. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 12:38, 19 March 2009 (UTC)
==Template:Dts/ver for invalid dates==
''19-March-2009:'' I have created the temporary variation [[Template:Dts/ver]] to allow reporting invalid dates. That template could be merged at a later time, after options are fully developed.<br>
Naturally, sometimes people are putting day-number for the month, where 21 gives "September" (21-12=9), 23 gives "November" etc. As in other templates, I was expecting an error-page-category, such as "'''Category:Template dts invalid month pages'''" which would silently list all pages with invalid month numbers passed to {</font>{dts}}. Another method, coded in [[Template:Dts/ver]], leaves the default behavior unchanged, but allows an optional verify-switch "v=yes" when invoking dts:
:::{<font/>{dts/ver|v=yes |2009|78|55}} <--verify to report 78 & 55.
When a user sets "v=yes" then problems will display on the page:
:: <br><font color="#CC8800">'''Template:dts''' - month "78" > 12 in "2009|78|55"</font>.
:: <br><font color="#CC8800">'''Template:dts''' - day "55" > 31 in "2009|78|55"</font>.
That optional reporting allows each user to change pages to globally replace all "dts|" with "dts/ver|v=yes|" if they think those numbers should be reported. Of course, currently, the template handles any numbers for months/days, which some users might have assigned for special codes, such as day "32" sorts to the end of any month, so "v=yes" would be optional to allow day 32 (etc.) if used for special sorting.
See: [[Template:Dts/ver]] for more details. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 12:38, 19 March 2009 (UTC)
|