ទំព័រគំរូ:Ntss

ពីវិគីភីឌា
Jump to navigation Jump to search
Documentation icon ឯកសារកម្មទំព័រគំរូ[បង្ហាញ] [កែប្រែ] [ប្រវត្តិ] [បន្សុទ្ធ]

Ntss stands for Number Table Sorting Scaled and display numbers with short or long scales in a sortable table and have them numerically sorted in alphabetic sort mode. It is applied to all numbers of a column, in cases where numeric sort mode does not work or is not desired.

Usage[កែប្រែ]

{{Ntss|value|scale|long|prefix=prefix}}

Where:

  • value - the significant value that will be displayed in front of the scale (required).
  • scale - scale used with value, see below.
  • long - if included, will use long scales, otherwise uses short scales; see below.
  • prefix - String to display before the number.

Decimal scales[កែប្រែ]

Using long and short scales:

  • thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion

The "long" (old British) scales differ from "billion" (1012) onwards. When using long scales, this template also accepts the following -iard scales:

  • milliard, billiard, trilliard, quadrilliard

Bit and byte scales[កែប្រែ]

Using standard SI prefixes:

  • bit, kbit, Mbit, Gbit, Tbit, Pbit, Ebit, Zbit, Ybit
  • byte or "B", kB, MB, GB, TB, PB, EB, ZB, YB

Using binary prefixes:

  • kibit, Mibit, Gibit, Tibit, Pibit, Eibit, Zibit, Yibit
  • kiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB

Examples[កែប្រែ]

Template Result
{{Ntss|9.1}} 7000910000000000000៩,១
{{Ntss|8.2|thousand}} 7003820000000000000៨,២ thousand
{{Ntss|8.4|million}} 7006840000000000000៨,៤ million
{{Ntss|35|billion}} 7010350000000000000៣៥ billion
{{Ntss|2|trillion}} 7012200000000000000២ trillion
{{Ntss|4|billion|long}} 7012400000000000000៤ billion
{{Ntss|12|thousand|prefix=$}} 7004120000000000000$១២ thousand

See also[កែប្រែ]