Template:Ntsp

{{ntsh|{{{1}}}}}{{{3|}}}{{Formatprice|{{{1}}}|{{{2|}}}}}

Documentation icon Template documentation[view] [edit] [history] [purge]

"Number Table Sorting, Price-format". Use to sort numbers formatted with {{Formatprice}} in tables with one template.

Usage

{{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 &10000000000000010990000$10.99
Nice car &10000000000015000000000$15 thousand
Luxury car &10000000000060000000000$60 thousand
Exotic car &10000000001000000000000$1 million
Super Exotic car &10000000100000000000000$100 million
Ridiculously Exotic car &10000001000000000000000$1 billion
Unattainable car &10000100000000000000000$100 billion

Related pages

</includeonl