Template talk:Date table sorting: Difference between revisions

Content deleted Content added
New functionality: new section
Line 96:
:::Did it. The new parameter is "nowrap", and it defaults to "'''on'''". If there are major problems with this, feel free to revert. Minor problems in individual articles should be fixable by setting nowrap to "off"; I haven't found such cases thus far. I'll update the template documentation shortly. [[User:GregorB|GregorB]] ([[User talk:GregorB|talk]]) 12:05, 27 April 2009 (UTC)
 
== NewChanges functionalityto the template ==
=== New functionality ===
 
I've added the capacity for the template to handle a date as a single parameter. The default formatting is the same (month-day-year) but only applies to ISO input (international format is left as is). It accepts abbreviated month names. It corrects capitilisation and comma mistakes. It uses {{[[mw:Help:Extension:ParserFunctions#.23time:|#time:]]}} and so is limited to what the parser function can handle (e.g. it won't go beyond 100 AD). It ignores <code>link=on</code>.
 
Line 168:
 
[[User:Jimp|J<small>IM</small>p]]<sub>&nbsp;[[User talk:Jimp|talk]]·[[Special:Contributions/Jimp|cont]]</sub> 00:38, 4 August 2009 (UTC)
 
=== New coding ===
I've also somewhat rewritten the coding for the old functionality. There had been an error whereby <code>|link=on|format=dmy</code> would give a date with month-day-year formatting. In the process of fixing that I changed the code a little. This invloved adding some subtemplates:
 
*{{lt|dts/fmtdmy}}
*{{lt|dts/fmtmdy}}
*{{lt|dts/lkoff}}
*{{lt|dts/lkon}}
 
The first two are for formatting & the second are for linking/nonlinking. [[User:Jimp|J<small>IM</small>p]]<sub>&nbsp;[[User talk:Jimp|talk]]·[[Special:Contributions/Jimp|cont]]</sub> 00:50, 4 August 2009 (UTC)