https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Ntsh/doc&feed=atom&action=historyModèle:Ntsh/doc - Historique des versions2024-03-28T22:25:32ZHistorique des versions pour cette page sur le wikiMediaWiki 1.40.0https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Ntsh/doc&diff=581&oldid=prevAdriweb : 1 version2012-09-03T14:13:32Z<p>1 version</p>
<p><b>Nouvelle page</b></p><div>{{Documentation subpage}}<br />
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --><br />
{{mbox<br />
<br />
|text=This template will create valid sort keys for '''numbers''' only! Use {{tl|Sms}} for text.<br />
}}<br />
<br />
'''Ntsh''' ({{Bu|N}}umber {{Bu|T}}able {{Bu|S}}orting, {{Bu|H}}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 {{tl|Number table sorting}}. See [[Help:Sorting#Sorting with a hidden key]]. It can be used to prefix non-numeric entries; for example, using <code><nowiki>{{ntsh|0}}</nowiki>None</code> will cause "None" to be sorted as if it had a numeric value of zero. <br />
<br />
This template has the same limitation as {{tlf|Number table sorting}}. Please read [[Template:Number table sorting#Limitations]]<br />
<br />
===Parameters===<br />
The first unnamed parameter must be a number.<br />
<br />
The only option is {{para|debug|yes}} which causes the search key to be displayed in a box followed by the number.<br />
<br />
===Usage===<br />
:<code>&#123;&#123;ntsh&#124;''some number''&#125;&#125;</code><br />
<br />
This template is not intended for use with non numeric input. Doing so will result in an error message.<br />
<br />
===Output===<br />
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]].<br />
<br />
:<code><nowiki>{{ntsh|123456789.00123}}</nowiki></code> generates <code><nowiki><span style="display:none">&amp;10000000123456789001230</span></nowiki></code><br />
:<code><nowiki>{{ntsh|-123456789.00123}}</nowiki></code> generates <code><nowiki><span style="display:none">&amp;09999999876543210998769</span></nowiki></code><br />
<br />
:<code><nowiki>{{ntsh|123456789.00123|debug=yes}}</nowiki></code> generates {{ntsh|123456789.00123|debug=yes}}<br />
<br />
==See also==<br />
* {{tl|Nts}}<br />
* {{tl|Ntss}}<br />
* {{tl|Sms}} – used to generate <u>any</u> hidden sort key<br />
<br />
<includeonly><br />
[[Category:Sorting templates]]<br />
<br />
[[bn:টেমপ্লেট:Ntsh]] <br />
[[hu:Sablon:Ntsh]]<br />
[[no:Mal:Sorterbart tall skjult]]<br />
[[vi:Tiêu bản:Ntsh]]<br />
[[zh:Template:Ntsh]]<br />
</includeonly></div>Adriweb