Toggle menu
14
236
69
27.2K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 07:22, 16 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{High-use}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{lua|Module:Number table sorting}} {{mbox |text=The {{tl|number table sorting}} template now also creates sort keys that are hidden, so please use that template instead. This template should be used for '''numbers''' only! }} {{Format TemplateData|JSON={ "description": "'''Ntsh''' ('''<u>N</u>'''umber '''<u>T</u>'''able '''<u>S</u>'''orting, '''<u>H</u>'''idden) generates a hid...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:High-use

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Number table sorting hidden in articles based on its TemplateData.

TemplateData for Number table sorting hidden

fatal JSON error: mw.text.jsonDecode: Syntax error

{
"description": "'''Ntsh''' ('''<u>N</u>'''umber '''<u>T</u>'''able '''<u>S</u>'''orting, '''<u>H</u>'''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 <span class="nowrap">&#123;&#123;</span>Number table sorting<span class="nowrap">&#125;&#125;</span>. See Help:Sortable tables. It can be used to prefix non-numeric entries; for example, using <code>&#123;&#123;ntsh&#124;0&#125;&#125;None</code> will cause \"None\" to be sorted as if it had a numeric value of zero.<p>This template has the same limitation as <span class="nowrap">&#123;&#123;</span>Number table sorting<span class="nowrap">&#125;&#125;</span>. Please read Template:Number table sorting.</p>", "params": {
"1": {
"label": "Sort value",
"description": "The value which this table row will sort as, when sorted against the output of other cells using ntsh or number table sorting.",
"type": "number",
"required": true
},
"debug": {
"label": "Debug mode",
"description": "If set to yes, causes the search key to be displayed in a box followed by the number. Do not use in article space."
}
} }

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.

{{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