Template:Ntsh

From TAMI
Jump to navigationJump to search

Template:Documentation subpage Template:Mbox

Ntsh (Template:Buumber Template:Buable Template:Buorting, Template:Buidden) 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 Template:Tl. 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 Template:Tlf. Please read Template:Number table sorting#Limitations

Parameters

The first unnamed parameter must be a number.

The only option is Template:Para which causes the search key to be displayed in a box followed by the number.

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 style="display:none">&10000000123456789001230</span>
{{ntsh|-123456789.00123}} generates <span style="display:none">&09999999876543210998769</span>
{{ntsh|123456789.00123|debug=yes}} generates Template:Documentation subpage

Template:Mbox

Ntsh (Template:Buumber Template:Buable Template:Buorting, Template:Buidden) 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 Template:Tl. 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 Template:Tlf. Please read Template:Number table sorting#Limitations

Parameters

The first unnamed parameter must be a number.

The only option is Template:Para which causes the search key to be displayed in a box followed by the number.

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 style="display:none">&10000000123456789001230</span>
{{ntsh|-123456789.00123}} generates <span style="display:none">&09999999876543210998769</span>
{{ntsh|123456789.00123|debug=yes}} generates Template loop detected: Template:Ntsh

See also

bn:টেমপ্লেট:Ntsh hu:Sablon:Ntsh ja:Template:Ntsh no:Mal:Sorterbart tall skjult sl:Predloga:Ntsh vi:Tiêu bản:Ntsh zh:Template:Ntsh


See also