Difference between revisions of "Template:Ntss/sandbox"
(test) |
m (1 revision) |
(No difference)
|
Latest revision as of 04:18, 22 March 2014
40x40px | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
50px | This is the template sandbox page for Template:Ntss (diff). |
Ntss/sandbox 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}} |
9.1 |
{{Ntss|8.2|thousand}} |
8.2 thousand |
{{Ntss|8.4|million}} |
8.4 million |
{{Ntss|35|billion}} |
billion | 35
{{Ntss|2|trillion}} |
trillion | 2
{{Ntss|4|billion|long}} |
billion | 4
{{Ntss|12|thousand|prefix=$}} |
$12 thousand |
See also
The above documentation is transcluded from Template:Ntss/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |