Template:Ntsp: Difference between revisions
Appearance
Content deleted Content added
m "{{Formatprice" --> "{{Format price" |
Armouredduck (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ntsh|{{{1}}}}}{{{3|}}}{{Format price|{{{1}}}|{{{2|}}}}}</includeonly><noinclude> |
<includeonly>{{ntsh|{{{1}}}}}{{{3|}}}{{Format price|{{{1}}}|{{{2|}}}}}</includeonly><noinclude> |
||
< |
<code><nowiki>{{ntsh|{{{1}}}}}{{{3|}}}{{Format price|{{{1}}}|{{{2|}}}}}</nowiki></code> |
||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 09:39, 26 June 2021
{{ntsh|{{{1}}}}}{{{3|}}}{{Format price|{{{1}}}|{{{2|}}}}}
"Number Table Sorting, Price-format". Use to sort numbers formatted with {{#invoke:Format price}} 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||$}}
|}
|
|