Difference between revisions of "Template:Currency/LongType"
imported>Stepho-wrs (Added LTL for Lithuanian litas.) |
imported>Stepho-wrs (Added MMK for Burmese kyat.) |
||
| (9 intermediate revisions by 6 users not shown) | |||
| Line 22: | Line 22: | ||
|BSD={{formatnum:{{{1}}}}} [[Bahamian dollar]]s | |BSD={{formatnum:{{{1}}}}} [[Bahamian dollar]]s | ||
|BTN={{formatnum:{{{1}}}}} [[Ngultrum|Nu.]]s | |BTN={{formatnum:{{{1}}}}} [[Ngultrum|Nu.]]s | ||
| + | |CDF={{formatnum:{{{1}}}}} [[Congolese franc]]s | ||
| + | |CHF={{formatnum:{{{1}}}}} [[Swiss franc]]s | ||
| + | |CLP={{formatnum:{{{1}}}}} [[Chilean peso]]s | ||
|COP={{formatnum:{{{1}}}}} [[Colombian peso]]s | |COP={{formatnum:{{{1}}}}} [[Colombian peso]]s | ||
|CNY={{formatnum:{{{1}}}}} [[Renminbi]] | |CNY={{formatnum:{{{1}}}}} [[Renminbi]] | ||
| Line 38: | Line 41: | ||
|ISK={{formatnum:{{{1}}}}} [[Icelandic króna]]s | |ISK={{formatnum:{{{1}}}}} [[Icelandic króna]]s | ||
|JPY={{formatnum:{{{1}}}}} [[Japanese yen]] | |JPY={{formatnum:{{{1}}}}} [[Japanese yen]] | ||
| + | |KES|KSH={{formatnum:{{{1}}}}} [[Kenyan shilling]]s | ||
|KHR={{formatnum:{{{1}}}}} [[Cambodian riel]] | |KHR={{formatnum:{{{1}}}}} [[Cambodian riel]] | ||
|KPW={{formatnum:{{{1}}}}} [[North Korean won]] | |KPW={{formatnum:{{{1}}}}} [[North Korean won]] | ||
| Line 44: | Line 48: | ||
|LKR={{formatnum:{{{1}}}}} [[Sri Lankan rupee]] | |LKR={{formatnum:{{{1}}}}} [[Sri Lankan rupee]] | ||
|LTL={{formatnum:{{{1}}}}} [[Lithuanian litas]] | |LTL={{formatnum:{{{1}}}}} [[Lithuanian litas]] | ||
| − | + | |MMK={{formatnum:{{{1}}}}} [[Burmese kyat]]s | |
|MNT={{formatnum:{{{1}}}}} [[Mongolian tögrög]] | |MNT={{formatnum:{{{1}}}}} [[Mongolian tögrög]] | ||
|MXN={{formatnum:{{{1}}}}} [[Mexican peso]]s | |MXN={{formatnum:{{{1}}}}} [[Mexican peso]]s | ||
| Line 55: | Line 59: | ||
|RUB={{formatnum:{{{1}}}}} [[Russian ruble]]s <!-- after Aug 1998 redenomination --> | |RUB={{formatnum:{{{1}}}}} [[Russian ruble]]s <!-- after Aug 1998 redenomination --> | ||
|RUR={{formatnum:{{{1}}}}} [[Russian ruble]]s <!-- before Aug 1998 redenomination --> | |RUR={{formatnum:{{{1}}}}} [[Russian ruble]]s <!-- before Aug 1998 redenomination --> | ||
| + | |RWF|FRW={{formatnum:{{{1}}}}} [[Rwandan franc]]s | ||
|SEK={{formatnum:{{{1}}}}} [[Swedish krona|Swedish kronor]] | |SEK={{formatnum:{{{1}}}}} [[Swedish krona|Swedish kronor]] | ||
|SEK2={{formatnum:{{{1}}}}} [[Swedish krona|Swedish kronor]] | |SEK2={{formatnum:{{{1}}}}} [[Swedish krona|Swedish kronor]] | ||
|SGD={{formatnum:{{{1}}}}} [[Singapore dollar]]s | |SGD={{formatnum:{{{1}}}}} [[Singapore dollar]]s | ||
| + | |TZS|TSH={{formatnum:{{{1}}}}} [[Tanzanian shilling]]s | ||
|THB={{formatnum:{{{1}}}}} [[Thai baht]] | |THB={{formatnum:{{{1}}}}} [[Thai baht]] | ||
| + | |TRL={{formatnum:{{{1}}}}} [[Turkish lira#First Turkish lira (1923-2005)|Turkish lira]] | ||
| + | |TRY={{formatnum:{{{1}}}}} [[Turkish lira#Second Turkish lira (2005-present)|Turkish lira]] | ||
|TWD={{formatnum:{{{1}}}}} [[New Taiwan dollar|Taiwan dollar]]s | |TWD={{formatnum:{{{1}}}}} [[New Taiwan dollar|Taiwan dollar]]s | ||
|UAH={{formatnum:{{{1}}}}} [[Ukrainian hryvnia]] | |UAH={{formatnum:{{{1}}}}} [[Ukrainian hryvnia]] | ||
| + | |UGS|UGX|USH={{formatnum:{{{1}}}}} [[Ugandan shilling]]s | ||
|VND={{formatnum:{{{1}}}}} [[Vietnamese đồng]] | |VND={{formatnum:{{{1}}}}} [[Vietnamese đồng]] | ||
|ZAR={{formatnum:{{{1}}}}} [[South African rand]] | |ZAR={{formatnum:{{{1}}}}} [[South African rand]] | ||
| − | |EU|EUR|EURO|THE SINGLE CURRENCY|EGE|EUMELN|KNAAK | + | |BTC|XBT|BITCOIN={{formatnum:{{{1}}}}} [[bitcoin]]s |
| + | |EU|EUR|EURO|THE SINGLE CURRENCY|EGE|EUMELN|KNAAK|TEURO={{formatnum:{{{1}}}}} [[Euro]]s | ||
|GBP|POUND|POUND STERLING={{formatnum:{{{1}}}}} [[Pound sterling|pounds sterling]] | |GBP|POUND|POUND STERLING={{formatnum:{{{1}}}}} [[Pound sterling|pounds sterling]] | ||
|US|U.S.|USA|USD|USS|UNITED STATES={{formatnum:{{{1}}}}} [[United States dollar]]s | |US|U.S.|USA|USD|USS|UNITED STATES={{formatnum:{{{1}}}}} [[United States dollar]]s | ||
Latest revision as of 04:12, 7 January 2016
{{{1}}} United States dollars
This is the type sub-template to Template:Currency. The LongType sub-template converts the values it is given to the appropriate currency plus the linked currency name (for example: [[United States dollar]]s).
Usage
Note: This template should generally not be used alone.
This template uses two unnamed parameters, the second of which is matched against a table to find the linked currency name to output. Note that any value given to it is converted to upper case before processing for matches, so this template does not distinguish between "United States" and "UNITED STATES", for example. The first parameter should be the amount of the currency. If the currency parameter is empty, US dollars are assumed; if it matches no entry, behavior is undefined.
Examples
| Parameter | Result |
|---|---|
{{Currency/LongType|1234.56|GBP}} |
1,234.56 pounds sterling |
{{Currency/LongType|1234.56|EUR}} |
1,234.56 Euros |
{{Currency/LongType|1234.56|USD}} |
1,234.56 United States dollars |
{{Currency/LongType|1234.56|GRD}} |
1,234.56 Greek drachmae |
{{Currency/LongType|1234.56|SEK}} |
1,234.56 Swedish kronor |
{{Currency/LongType|1234.56|HUF}} |
1,234.56 Hungarian forints |
{{Currency/LongType|1234.56|MYR}} |
1,234.56 Malaysian ringgit |
{{Currency/LongType|1234.56|CNY}} |
1,234.56 Renminbi |
{{Currency/LongType|1234.56|unknown}} |
1,234.56 United States dollars |
{{Currency/LongType|1234.56|}} |
1,234.56 United States dollars |
See also
| The above documentation is transcluded from Template:Currency/LongType/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |