Jump to content

Template:Ntsp/doc

From Wikipedia, the free encyclopedia

"Number Table Sorting, Price-format". Use to sort numbers formatted with {{#invoke:Format price}} in tables with one template.

Usage

[edit]
{{ntsp|value|digits|symbol}}

Example:

{| class="wikitable sortable" 
! Car !! Price
|-
| Jalopy || {{ntsp|10.99|2|$}}
|-
| Nice car || {{ntsp|15000||$}}
|-
| Luxury car || {{ntsp|60000||$}}
|-
| Exotic car || {{ntsp|1000000||$}}
|-
| Super Exotic car || {{ntsp|100000000||$}}
|-
| Ridiculously Exotic car || {{ntsp|1000000000||$}}
|-
| Unattainable car || {{ntsp|100000000000||$}}
|}
Car Price
Jalopy $10.99
Nice car $15,000
Luxury car $60,000
Exotic car $1 million
Super Exotic car $100 million
Ridiculously Exotic car $1 billion
Unattainable car $100 billion

See also

[edit]