Template:Smc/doc
Appearance
This is a documentation subpage for Template:Smc. It contains usage information, categories, and other content that is not part of the original template page. |
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 or one's personal Javascript page 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;
On Meta MediaWiki:Common.js currently does not contain this.