Template:Smd
This template is used to make the sort mode of a table column "date", in cases where some cells would otherwise be of type number, currency or string. It is called at the end of all cells of the table column.
The effect of the template depends on MediaWiki:Common.js containing a version of function ts_resortTable that overrides the default in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js, in particular on the line
if (itm.match(/sm=d$/)) sortfn = ts_sort_date;
See also Help:Sorting#Sort modes and meta:Template:Smd.
The above documentation is transcluded from Template:Smd/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |