Template:Number table sorting hidden
| This template is used on approximately 3,700 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. |
| 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! |
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Number table sorting hidden in articles based on its TemplateData.
TemplateData for Number table sorting hidden
Ntsh (Number Table Sorting, Hidden) 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 {{tl|Number table sorting}}. See Help:Sortable tables#Sorting with a hidden key. It can be used to prefix non-numeric entries; for example, using
{{ntsh|0}}None will cause "None" to be sorted as if it had a numeric value of zero.This template has the same limitation as {{tl|Number table sorting}}. Please read Template:Number table sorting#Limitations.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Sort value | 1 | The value which this table row will sort as, when sorted against the output of other cells using ntsh or number table sorting. | Number | required |
| Debug mode | debug | If set to yes, causes the search key to be displayed in a box followed by the number. Do not use in article space. | Boolean | optional |
Usage
{{ntsh|some number}}
This template is not intended for use with non numeric input. Doing so will result in an error message.
Output
No output is displayed when using almost all browsers. If a text browser is used the result is undefined. See Wikipedia:Accessibility#Users with limited CSS/JavaScript support.
{{ntsh|123456789.00123}}generates<span data-sort-value="7008123456789001230♠" style="display:none"></span>{{ntsh|-123456789.00123}}generates<span data-sort-value="2991876543210998770♠" style="display:none"></span>
See also
- {{Number table sorting}}
- {{val}} - displays numbers and quantities with various formatting options
- {{sort}} – used to generate any sort key with visible text
- {{hidden sort key}} – used to generate any hidden sort key
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.