Template:CurrencyCode: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
switching Latvia to Euros |
update TM (Turkmenistan) to TMT |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} |
{{#switch: {{uc:{{{1}}}}} |
||
| |
| US = USD |
||
| |
| CA = CAD |
||
| AU = AUD |
|||
| NZ = NZD |
|||
| GB = GBP |
|||
| AD | AL | AM | AT | AZ | BE | BY | CI | CY | DE | EE | ES | FI | FR | GF | GR | HR | IE | IT | LT | LU | LV | LY | MC | ME | MG | MT | NL | PT | RE | RS | SI | SK | SM | SR | VA = EUR |
|||
| AE = AED |
| AE = AED |
||
| |
| AF = USD |
||
| AG = XCD |
|||
| AN = ANG |
| AN = ANG |
||
| |
| AO = USD |
||
| |
| AR = ARS |
||
| |
| AS = USD |
||
| |
| AW = USD |
||
| VU = AUD |
|||
| AU = AUD |
|||
| BB = BBD |
| BB = BBD |
||
| BD = BDT |
| BD = BDT |
||
| BF = USD |
| BF = USD |
||
| BG = BGN |
| BG = BGN |
||
| BH = BHD |
| BH = BHD |
||
| BI = USD |
|||
| BJ = USD |
| BJ = USD |
||
| BM = BMD |
| BM = BMD |
||
| BN = USD |
|||
| BO = BOB |
| BO = BOB |
||
| BR = BRL |
| BR = BRL |
||
| BS = USD |
| BS = USD |
||
| BW = USD |
|||
| BZ = BZD |
| BZ = BZD |
||
| CA = CAD |
|||
| CF = USD |
| CF = USD |
||
| |
| CG = USD |
||
| CH = CHF |
| CH = CHF |
||
| CK = NZD |
| CK = NZD |
||
| CL = CLP |
| CL = CLP |
||
| CM = USD |
| CM = USD |
||
| CN = CNY |
| CN = CNY |
||
| CO = COP |
| CO = COP |
||
| CR = CRC |
| CR = CRC |
||
| |
| CV = USD |
||
| CZ = CZK |
|||
| DJ = USD |
|||
| DK = DKK |
| DK = DKK |
||
| DM = XCD |
| DM = XCD |
||
| DO = DOP |
| DO = DOP |
||
| DZ = DZD |
| DZ = DZD |
||
| EC = USD |
|||
| EG = EGP |
| EG = EGP |
||
| |
| ER = USD |
||
| ET = USD |
|||
| FJ = FJD |
| FJ = FJD |
||
| |
| FM = USD |
||
| |
| FO = DKK |
||
| GA = USD |
| GA = USD |
||
| GB = GBP |
|||
| GD = XCD |
| GD = XCD |
||
| GE = USD |
|||
| GL = DKK |
| GL = DKK |
||
| GM = USD |
|||
| GQ = USD |
|||
| GT = GTQ |
| GT = GTQ |
||
| |
| GU = USD |
||
| GW = USD |
|||
| HK = HKD |
|||
| HN = HNL |
| HN = HNL |
||
| |
| HU = HUF |
||
| |
| ID = IDR |
||
| |
| IL = ILS |
||
| |
| IN = INR |
||
| |
| IQ = USD |
||
| |
| IS = USD |
||
| JM = JMD |
| JM = JMD |
||
| JO = JOD |
| JO = JOD |
||
| JP = JPY |
| JP = JPY |
||
| KE = KES |
| KE = KES |
||
| KH = USD |
|||
| KI = AUD |
|||
| KM = USD |
|||
| KN = XCD |
| KN = XCD |
||
| |
| KP = USD |
||
| |
| KR = KRW |
||
| KW = USD |
|||
| KZ = KZT |
| KZ = KZT |
||
| LB = LBP |
| LB = LBP |
||
| LC = XCD |
| LC = XCD |
||
| LI = CHF |
|||
| LK = LKR |
| LK = LKR |
||
| |
| LR = USD |
||
| LV = EUR |
|||
| MA = MAD |
| MA = MAD |
||
| MD = USD |
|||
| MH = USD |
|||
| MK = MKD |
| MK = MKD |
||
| ML = USD |
| ML = USD |
||
| MO = USD |
| MO = USD |
||
| MP = USD |
|||
| MR = USD |
|||
| MU = USD |
|||
| MV = MVR |
| MV = MVR |
||
| |
| MW = GBP |
||
| |
| MX = MXN |
||
| MY = MYR |
|||
| MZ = USD |
|||
| NA = USD |
|||
| NE = USD |
| NE = USD |
||
| NG = USD |
|||
| NI = NIO |
| NI = NIO |
||
| NO = NOK |
| NO = NOK |
||
| |
| NP = INR |
||
| |
| NR = AUD |
||
| |
| OM = OMR |
||
| |
| PA = PAB |
||
| PE = PEN |
|||
| PG = AUD |
|||
| PH = PHP |
| PH = PHP |
||
| PK = PKR |
| PK = PKR |
||
| PL = PLN |
| PL = PLN |
||
| PR = USD |
|||
| PS = USD |
|||
| PW = USD |
|||
| PY = PYG |
| PY = PYG |
||
| QA = QAR |
| QA = QAR |
||
| RO = RON |
| RO = RON |
||
| |
| RU = RUB |
||
| |
| SA = SAR |
||
| |
| SB = USD |
||
| SA = SAR |
|||
| SC = USD |
| SC = USD |
||
| |
| SD = GBP |
||
| SE = SEK |
|||
| SG = SGD |
| SG = SGD |
||
| SN = USD |
| SN = USD |
||
| |
| SV = USD |
||
| TD = USD |
|||
| TG = USD |
| TG = USD |
||
| TH = THB |
| TH = THB |
||
| |
| TM = TMT |
||
| |
| TN = USD |
||
| |
| TO = USD |
||
| TW = TWD |
|||
| UA = UAH |
|||
| UY = UYU |
|||
| VN = USD |
|||
| ZA = ZAR |
|||
| PR = USD |
|||
| AF = USD |
|||
| AS = USD |
|||
| AO = USD |
|||
| BW = USD |
|||
| BN = USD |
|||
| BI = USD |
|||
| KH = USD |
|||
| KM = USD |
|||
| CG = USD |
|||
| CV = USD |
|||
| DJ = USD |
|||
| TP = USD |
| TP = USD |
||
| |
| TR = TRY |
||
| |
| TT = TTD |
||
| |
| TW = TWD |
||
| |
| TZ = USD |
||
| |
| UA = UAH |
||
| |
| UY = UYU |
||
| |
| UZ = UZS |
||
| GW = USD |
|||
| IS = USD |
|||
| IQ = USD |
|||
| KP = USD |
|||
| LR = USD |
|||
| MH = USD |
|||
| MR = USD |
|||
| FM = USD |
|||
| MD = USD |
|||
| MZ = USD |
|||
| NA = USD |
|||
| NG = USD |
|||
| MP = USD |
|||
| PW = USD |
|||
| PS = USD |
|||
| SB = USD |
|||
| VC = USD |
| VC = USD |
||
| TZ = USD |
|||
| TO = USD |
|||
| VE = USD |
| VE = USD |
||
| VI = USD |
| VI = USD |
||
| VN = USD |
|||
| VU = AUD |
|||
| YE = USD |
| YE = USD |
||
| ZA = ZAR |
|||
| ZM = USD |
| ZM = USD |
||
| ZW = USD |
| ZW = USD |
||
| US = USD |
|||
| RS = EUR |
|||
| AL = EUR |
|||
| AD = EUR |
|||
| CY = EUR |
|||
| LU = EUR |
|||
| MT = EUR |
|||
| GF = EUR |
|||
| AM = EUR |
|||
| AW = EUR |
|||
| AZ = EUR |
|||
| BY = EUR |
|||
| BA = EUR |
|||
| CI = EUR |
|||
| LY = EUR |
|||
| MG = EUR |
|||
| MC = EUR |
|||
| ME = EUR |
|||
| RE = EUR |
|||
| SM = EUR |
|||
| SR = EUR |
|||
| VA = EUR |
|||
| DE = EUR |
|||
| FR = EUR |
|||
| NL = EUR |
|||
| AT = EUR |
|||
| IT = EUR |
|||
| ES = EUR |
|||
| BE = EUR |
|||
| FI = EUR |
|||
| IE = EUR |
|||
| GR = EUR |
|||
| PT = EUR |
|||
| SK = EUR |
|||
| SI = EUR |
|||
| EE = EUR |
|||
| USD = USD |
| USD = USD |
||
| EUR = EUR |
| EUR = EUR |
||
| #default = USD |
| #default = USD |
||
}}<noinclude> |
}}<noinclude>[[Category:Utility templates]] |
||
Given an [[w:ISO 3166-1 alpha-2|ISO 3166-1]] two letter country code, returns the currency code ([[w:ISO 4217|ISO 4217]]) to use for fundraiser. If none set e.g. because local currency is not supported, defaults to USD. |
Given an [[w:ISO 3166-1 alpha-2|ISO 3166-1]] two letter country code, returns the currency code ([[w:ISO 4217|ISO 4217]]) to use for fundraiser. If none set e.g. because local currency is not supported, defaults to USD. |
||
</noinclude> |
</noinclude> |
Latest revision as of 20:49, 8 February 2023
USD Given an ISO 3166-1 two letter country code, returns the currency code (ISO 4217) to use for fundraiser. If none set e.g. because local currency is not supported, defaults to USD.