For faster navigation, this Iframe is preloading the Wikiwand page for Template:Ntsh.

Template:Ntsh

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

Ntsh (Number Table Sorting, Hidden) is the hidden version of Nts, for correctly sorting tables by their numeric columns. It does the same as Nts, except that it doesn't display anything visible. It can be used to prefix non-numeric entries; for example, you can write ((ntsh|0))None to have the entry to the end of the table when sorting numerically using Nts.

What it solves

[编辑]

To use Help:Sorting and have it function correctly, numbers must be entered without thousands separators. To enable the display of thousands separators, this template automatically creates the hidden <span style="display:none">&&&&&&&123456789.&&1230</span> before the actual displayed number. It forces the sorting routine to use text sort on the hidden segment, which functions correctly due to the preceding ampersands (currently till 16 digits before, and 6 digits after the decimal separator).

Parameters

[编辑]

Only one: a real number without thousand separators.

Input

[编辑]
((Ntsh|123456789.00123))

Output

[编辑]

Output sent to table

 <span style="display:none">&&&&&&&123456789.&&1230</span>

No output is displayed to the user.

See also

[编辑]
  • Template:Nts
  • Template:Lsc11- using non-breaking spaces instead of ampersands in a similar fashion
{{bottomLinkPreText}} {{bottomLinkText}}
Template:Ntsh
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?