Template:CurrencyCode: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Lithuania to use EUR
sort, use fallthrough for EUR countries
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
| MU = USD
| US = USD
| SV = USD
| CA = CAD
| AU = AUD
| NZ = NZD
| GB = GBP
| AD | AL | AM | AT | AW | AZ | BE | BY | CI | CY | DE | EE | ES | FI | FR | GF | GR | 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
| AG = XCD
| AN = ANG
| AN = ANG
| AO = USD
| AR = ARS
| AR = ARS
| PG = AUD
| AS = USD
| KI = AUD
| AW = USD
| NR = AUD
| VU = AUD
| AU = AUD
| BB = BBD
| BB = BBD
| BD = BDT
| BD = BDT
Line 16: Line 19:
| 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
Line 32: Line 37:
| CO = COP
| CO = COP
| CR = CRC
| CR = CRC
| CV = USD
| CZ = CZK
| 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
| GU = USD
| GW = USD
| HK = HKD
| HK = HKD
| HN = HNL
| HN = HNL
Line 53: Line 66:
| ID = IDR
| ID = IDR
| IL = ILS
| IL = ILS
| NP = INR
| IN = INR
| 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
| KR = KRW
| KW = USD
| KW = USD
Line 65: Line 83:
| LB = LBP
| LB = LBP
| LC = XCD
| LC = XCD
| LI = CHF
| LK = LKR
| LK = LKR
| LT = EUR
| 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
| MX = MXN
| MY = MYR
| MY = MYR
| MZ = USD
| NA = USD
| NE = USD
| NE = USD
| NG = USD
| NI = NIO
| NI = NIO
| NO = NOK
| NO = NOK
| NZ = NZD
| NP = INR
| NR = AUD
| OM = OMR
| OM = OMR
| PA = PAB
| PA = PAB
| PE = PEN
| 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
| UZ = RUB
| RU = RUB
| RU = RUB
| SA = SAR
| SA = SAR
| SB = USD
| SC = USD
| SC = USD
| SD = GBP
| SE = SEK
| SE = SEK
| SG = SGD
| SG = SGD
| SN = USD
| SN = USD
| SV = USD
| TD = USD
| TD = USD
| TG = USD
| TG = USD
| TH = THB
| TH = THB
| TM = RUB
| TN = USD
| TN = USD
| TO = USD
| TP = USD
| TR = TRY
| TR = TRY
| TT = TTD
| TT = TTD
| TW = TWD
| TW = TWD
| TZ = USD
| UA = UAH
| UA = UAH
| UY = UYU
| UY = UYU
| VE = VEF
| UZ = RUB
| 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
| EC = USD
| ER = USD
| ET = USD
| GM = USD
| GE = USD
| GQ = USD
| GU = USD
| 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 = VEF
| 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

Revision as of 22:21, 6 January 2015

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.