Difference between revisions of "Template:Currency/LongType"
imported>SimonTrew (Defer table to Currency/Link) |
imported>Wbm1058 |
||
Line 1: | Line 1: | ||
− | < | + | {{#switch:{{uc:{{{2|}}}}}<!-- If you add a case to this switch statement, be sure to give the case in upper case letters, since the us parser function used here converts everything given to upper case. --> |
+ | |AED={{formatnum:{{{1}}}}} [[United Arab Emirates dirham]]s | ||
+ | |AFN={{formatnum:{{{1}}}}} [[Afghan Afghani]]s | ||
+ | |ALL={{formatnum:{{{1}}}}} [[Albanian lek]]s | ||
+ | |AMD={{formatnum:{{{1}}}}} [[Armenian dram]]s | ||
+ | |ANG={{formatnum:{{{1}}}}} [[Netherlands Antillean guilder]]s | ||
+ | |AOA={{formatnum:{{{1}}}}} [[Angolan kwanza|kwanzas]] | ||
+ | |ARS={{formatnum:{{{1}}}}} [[Argentine peso]]s | ||
+ | |AUD={{formatnum:{{{1}}}}} [[Australian dollar]]s | ||
+ | |AWG={{formatnum:{{{1}}}}} [[Aruban guilder]]s | ||
+ | |AZN={{formatnum:{{{1}}}}} [[Azerbaijani manat]]s | ||
+ | |BAM={{formatnum:{{{1}}}}} [[Bosnia and Herzegovina konvertibilna marka]]s | ||
+ | |BBD={{formatnum:{{{1}}}}} [[Barbados dollar]]s | ||
+ | |BDT={{formatnum:{{{1}}}}} [[Bangladeshi taka]]s | ||
+ | |BGN={{formatnum:{{{1}}}}} [[Bulgarian lev]]s | ||
+ | |BHD={{formatnum:{{{1}}}}} [[Bahraini dinar]]s | ||
+ | |BIF={{formatnum:{{{1}}}}} [[Burundian franc]]s | ||
+ | |BMD={{formatnum:{{{1}}}}} [[Bermudian dollar]]s | ||
+ | |BND={{formatnum:{{{1}}}}} [[Brunei dollar]]s | ||
+ | |BOB={{formatnum:{{{1}}}}} [[Boliviano]]s | ||
+ | |BRL={{formatnum:{{{1}}}}} [[Brazilian real]]s | ||
+ | |BSD={{formatnum:{{{1}}}}} [[Bahamian dollar]]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 | ||
+ | |CNY={{formatnum:{{{1}}}}} [[Renminbi]] | ||
+ | |RMB={{formatnum:{{{1}}}}} [[Renminbi]] | ||
+ | |DKK={{formatnum:{{{1}}}}} [[Danish krone]]s | ||
+ | |DKK2={{formatnum:{{{1}}}}} [[Danish krone]]s | ||
+ | |EGP={{formatnum:{{{1}}}}} [[Egyptian pound]]s | ||
+ | |GRD={{formatnum:{{{1}}}}} [[Greek drachma]]e | ||
+ | |HRK={{formatnum:{{{1}}}}} [[Croatian kuna]]s | ||
+ | |HKD={{formatnum:{{{1}}}}} [[Hong Kong dollar]]s | ||
+ | |HNL={{formatnum:{{{1}}}}} [[Honduran lempira]]s | ||
+ | |HUF={{formatnum:{{{1}}}}} [[Hungarian forint]]s | ||
+ | |ILS={{formatnum:{{{1}}}}} [[Israeli new shekel]]s | ||
+ | |INR={{formatnum:{{{1}}}}} [[Indian rupee]]s | ||
+ | |IRR={{formatnum:{{{1}}}}} [[Iranian rial]]s | ||
+ | |ISK={{formatnum:{{{1}}}}} [[Icelandic króna]]s | ||
+ | |JPY={{formatnum:{{{1}}}}} [[Japanese yen]] | ||
+ | |KES|KSH={{formatnum:{{{1}}}}} [[Kenyan shilling]]s | ||
+ | |KHR={{formatnum:{{{1}}}}} [[Cambodian riel]] | ||
+ | |KPW={{formatnum:{{{1}}}}} [[North Korean won]] | ||
+ | |KRW={{formatnum:{{{1}}}}} [[South Korean won]] | ||
+ | |LAK={{formatnum:{{{1}}}}} [[Lao kip]] | ||
+ | |LKR={{formatnum:{{{1}}}}} [[Sri Lankan rupee]] | ||
+ | |LTL={{formatnum:{{{1}}}}} [[Lithuanian litas]] | ||
+ | |MNT={{formatnum:{{{1}}}}} [[Mongolian tögrög]] | ||
+ | |MXN={{formatnum:{{{1}}}}} [[Mexican peso]]s | ||
+ | |MYR={{formatnum:{{{1}}}}} [[Malaysian ringgit]] | ||
+ | |NPR={{formatnum:{{{1}}}}} [[Nepalese Rupee]] | ||
+ | |NEP={{formatnum:{{{1}}}}} [[Nepalese Rupee]] | ||
+ | |NGN={{formatnum:{{{1}}}}} [[Nigerian naira]] | ||
+ | |NLG={{formatnum:{{{1}}}}} [[Dutch guilder]]s | ||
+ | |PHP={{formatnum:{{{1}}}}} [[Philippine peso]]s | ||
+ | |RUB={{formatnum:{{{1}}}}} [[Russian ruble]]s <!-- after 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]] | ||
+ | |SEK2={{formatnum:{{{1}}}}} [[Swedish krona|Swedish kronor]] | ||
+ | |SGD={{formatnum:{{{1}}}}} [[Singapore dollar]]s | ||
+ | |TZS|TSH={{formatnum:{{{1}}}}} [[Tanzanian shilling]]s | ||
+ | |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 | ||
+ | |UAH={{formatnum:{{{1}}}}} [[Ukrainian hryvnia]] | ||
+ | |UGS|UGX|USH={{formatnum:{{{1}}}}} [[Ugandan shilling]]s | ||
+ | |VND={{formatnum:{{{1}}}}} [[Vietnamese đồng]] | ||
+ | |ZAR={{formatnum:{{{1}}}}} [[South African rand]] | ||
+ | |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]] | ||
+ | |US|U.S.|USA|USD|USS|UNITED STATES={{formatnum:{{{1}}}}} [[United States dollar]]s | ||
+ | |{{formatnum:{{{1}}}}} [[United States dollar]]s | ||
+ | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 15:21, 30 November 2015
{{{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. |