ᱪᱷᱟᱸᱪ:Number table sorting hidden

(ᱪᱷᱟᱸᱪ:Ntsh ᱠᱷᱚᱱ ᱟᱹᱪᱩᱨ ᱦᱮᱡᱠᱟᱱᱟ)
Template documentation[view] [edit] [history] [purge]

ᱪᱷᱟᱸᱪ:Deprecated

This is the TemplateData documentation for this template used by VisualEditor and other tools; Italic textsee the monthly error report for this template.

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 {{Number table sorting}}. See Help:Sorting#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 {{Number table sorting}}. Please read Template:Number table sorting#Limitations.

Template parameters

ParameterDescriptionTypeStatus
Sort value1
The value which this table row will sort as, when sorted against the output of other cells using ntsh or number table sorting.
Numberrequired
Debug modedebug
If set to yes, causes the search key to be displayed in a box followed by the number. Do not use in article space.
Unknownoptional
Test of raw TemplateData output:

Ntsh ('umber 'able 'orting, '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 {{Number table sorting}}. See Help:Sorting#Sorting with a hidden key. It can be used to prefix non-numeric entries; for example, using will cause "None" to be sorted as if it had a numeric value of zero.

Template parameters

ParameterDescriptionTypeStatus
Sort value1

The value which this table row will sort as, when sorted against the output of other cells using ntsh or number table sorting.

Numberrequired
Debug modedebug

If set to yes, causes the search key to be displayed in a box followed by the number. Do not use in article space.

Unknownoptional

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