This is a documentation subpage for Template:Number table sorting hidden. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 3,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
The {{number table sorting}} template now also creates sort keys that are hidden, so please use that template instead. This template should be used for numbers only! |
TemplateData for Number table sorting hidden
fatal JSON error: mw.text.jsonDecode: Syntax error
{ "description": "'''Ntsh''' ('''<u>N</u>'''umber '''<u>T</u>'''able '''<u>S</u>'''orting, '''<u>H</u>'''idden) generates a hidden sort key that allows numbers to sort correctly when a column of a sortable table needs to be sorted alphabetically. This template is a hidden version of <span class="nowrap">{{</span>Number table sorting<span class="nowrap">}}</span>. See Help:Sortable tables#Sorting with a hidden key. It can be used to prefix non-numeric entries; for example, using <code>{{ntsh|0}}None</code> will cause \"None\" to be sorted as if it had a numeric value of zero.<p>This template has the same limitation as <span class="nowrap">{{</span>Number table sorting<span class="nowrap">}}</span>. Please read Template:Number table sorting#Limitations.</p>", "params": { "1": { "label": "Sort value", "description": "The value which this table row will sort as, when sorted against the output of other cells using ntsh or number table sorting.", "type": "number", "required": true }, "debug": { "label": "Debug mode", "description": "If set to yes, causes the search key to be displayed in a box followed by the number. Do not use in article space." } } }