Template:CurrencyCode: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
change Aruba to USD
update TM (Turkmenistan) to TMT
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{uc:{{{1}}}}}
| MU = USD
| US = USD
| SV = 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
| AG = XCD
| AF = USD
| AG = XCD
| AN = ANG
| AN = ANG
| AR = ARS
| AO = USD
| PG = AUD
| AR = ARS
| KI = AUD
| AS = USD
| NR = AUD
| 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
| LI = CHF
| 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
| CZ = CZK
| 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
| FO = DKK
| ER = USD
| ET = USD
| FJ = FJD
| FJ = FJD
| MW = GBP
| FM = USD
| SD = GBP
| 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
| HK = HKD
| GU = USD
| GW = USD
| HK = HKD
| HN = HNL
| HN = HNL
| HR = HRK
| HU = HUF
| HU = HUF
| ID = IDR
| ID = IDR
| IL = ILS
| IL = ILS
| IN = INR
| NP = INR
| IQ = USD
| IN = INR
| 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
| KR = KRW
| KP = USD
| KW = USD
| KR = KRW
| KW = USD
| KZ = KZT
| KZ = KZT
| LB = LBP
| LB = LBP
| LC = XCD
| LC = XCD
| LI = CHF
| LK = LKR
| LK = LKR
| LT = LTL
| 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
| MX = MXN
| MW = GBP
| MY = MYR
| MX = MXN
| MY = MYR
| MZ = USD
| NA = USD
| NE = USD
| NE = USD
| NG = USD
| NI = NIO
| NI = NIO
| NO = NOK
| NO = NOK
| NZ = NZD
| NP = INR
| OM = OMR
| NR = AUD
| PA = PAB
| OM = OMR
| PE = PEN
| 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
| TM = RUB
| RU = RUB
| UZ = RUB
| SA = SAR
| RU = RUB
| SB = USD
| SA = SAR
| SC = USD
| SC = USD
| SE = SEK
| SD = GBP
| SE = SEK
| SG = SGD
| SG = SGD
| SN = USD
| SN = USD
| TD = USD
| SV = USD
| TD = USD
| TG = USD
| TG = USD
| TH = THB
| TH = THB
| TN = USD
| TM = TMT
| TR = TRY
| TN = USD
| TT = TTD
| TO = USD
| TW = TWD
| UA = UAH
| UY = UYU
| VE = VEF
| 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
| EC = USD
| TR = TRY
| ER = USD
| TT = TTD
| ET = USD
| TW = TWD
| GM = USD
| TZ = USD
| GE = USD
| UA = UAH
| GQ = USD
| UY = UYU
| GU = USD
| 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
| VE = USD
| TO = 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 = USD
| 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.