https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Ntsh/doc&feed=atom&action=history Modèle:Ntsh/doc - Historique des versions 2024-03-28T22:25:32Z Historique des versions pour cette page sur le wiki MediaWiki 1.40.0 https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Ntsh/doc&diff=581&oldid=prev Adriweb : 1 version 2012-09-03T14:13:32Z <p>1 version</p> <p><b>Nouvelle page</b></p><div>{{Documentation subpage}}<br /> &lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&gt;<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 &lt;code&gt;&lt;nowiki&gt;{{ntsh|0}}&lt;/nowiki&gt;None&lt;/code&gt; will cause &quot;None&quot; 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 /> :&lt;code&gt;&amp;#123;&amp;#123;ntsh&amp;#124;''some number''&amp;#125;&amp;#125;&lt;/code&gt;<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 /> :&lt;code&gt;&lt;nowiki&gt;{{ntsh|123456789.00123}}&lt;/nowiki&gt;&lt;/code&gt; generates &lt;code&gt;&lt;nowiki&gt;&lt;span style=&quot;display:none&quot;&gt;&amp;amp;10000000123456789001230&lt;/span&gt;&lt;/nowiki&gt;&lt;/code&gt;<br /> :&lt;code&gt;&lt;nowiki&gt;{{ntsh|-123456789.00123}}&lt;/nowiki&gt;&lt;/code&gt; generates &lt;code&gt;&lt;nowiki&gt;&lt;span style=&quot;display:none&quot;&gt;&amp;amp;09999999876543210998769&lt;/span&gt;&lt;/nowiki&gt;&lt;/code&gt;<br /> <br /> :&lt;code&gt;&lt;nowiki&gt;{{ntsh|123456789.00123|debug=yes}}&lt;/nowiki&gt;&lt;/code&gt; generates {{ntsh|123456789.00123|debug=yes}}<br /> <br /> ==See also==<br /> * {{tl|Nts}}<br /> * {{tl|Ntss}}<br /> * {{tl|Sms}} – used to generate &lt;u&gt;any&lt;/u&gt; hidden sort key<br /> <br /> &lt;includeonly&gt;<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 /> &lt;/includeonly&gt;</div> Adriweb