close
Sayahna Sayahna
Search

Difference between revisions of "Template:Smc"


(add documentation)
 
m (1 revision)
 
(No difference)

Latest revision as of 04:18, 22 March 2014

sm=c

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is used to make the sort mode of a table column "currency", in cases where some cells would otherwise be of type number, date, 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=c$/)) sortfn = ts_sort_currency;

See also Help:Sorting#Sort modes and meta:Template:Smc.