Template:Currency/testcases

☆ Save On Wikipedia ↗

This testcases page compares the sub-template driven version against the Lua module driven version. Codes in the tables are taken from the table in [[ISO 4217].

The error messages are for the currencies that don't exist in a real world sense – they cannot be put into a pocket and used at the local shops. The Lua module supports all of the real-world currencies; the sub-templates do not.


short form

currency code test
code{{currency}}{{currency/sandbox}}
AEDDH 1,000DH 1,000
AFN؋1,000؋1,000
ALLL1,000L1,000
AMD֏ 1,000֏ 1,000
ANGNAƒ1,000NAƒ1,000
AOAKz 1,000Kz 1,000
ARSAR$1,000AR$1,000
AUDA$1,000A$1,000
AWGAfl. 1,000Afl. 1,000
AZN1,0001,000
BAMKM 1,000KM 1,000
BBDBds$ 1,000Bds$ 1,000
BDT1,0001,000
BGNлв. 1,000лв. 1,000
BHD.د.ب 1,000.د.ب 1,000
BIFFBu 1,000FBu 1,000
BMDBD$1,000BD$1,000
BNDB$1,000B$1,000
BOBBs. 1,000Bs. 1,000
BOV{{currency}} – invalid code (help){{currency}} – invalid code (help)
BRLR$1,000R$1,000
BSDB$1,000B$1,000
BTNNu. 1,000Nu. 1,000
BWPP 1,000P 1,000
BYRBr 1,000Br 1,000
BZDBZ$1,000BZ$1,000
CADCA$1,000CA$1,000
CDFFC 1,000FC 1,000
CHE{{currency}} – invalid code (help){{currency}} – invalid code (help)
CHFCHF 1,000CHF 1,000
CHW{{currency}} – invalid code (help){{currency}} – invalid code (help)
CLF{{currency}} – invalid code (help){{currency}} – invalid code (help)
CLPCL$1,000CL$1,000
CNYCN¥ 1,000CN¥ 1,000
COPCOL$1,000COL$1,000
COU{{currency}} – invalid code (help){{currency}} – invalid code (help)
CRC1,0001,000
CUCCUC$1,000CUC$1,000
CUP$MN1,000$MN1,000
CVE1.000$001.000$00
CZK1,000 1,000 
DJFFdj1,000Fdj1,000
DKKkr. 1,000kr. 1,000
DOPRD$1,000RD$1,000
DZDد.ج 1,000د.ج 1,000
EGP1,0001,000
ERNNfk 1,000Nfk 1,000
ETBBr 1,000Br 1,000
EUR1,0001,000
FJDFJ$1,000FJ$1,000
FKPFK£1,000FK£1,000
GBP£1,000£1,000
GEL1,0001,000
GHS1,0001,000
GIPGI£1,000GI£1,000
GMDD 1,000D 1,000
GNFFG 1,000FG 1,000
GTQQ 1,000Q 1,000
GYDGY$1,000GY$1,000
HKDHK$1,000HK$1,000
HNLL 1,000L 1,000
HRKkn 1,000kn 1,000
HTGG 1,000G 1,000
HUF1,000 Ft1,000 Ft
IDRRp 1,000Rp 1,000
ILS1,0001,000
INR1,0001,000
IQDد.ع 1,000د.ع 1,000
IRR1,0001,000
ISK1,000 krISK 1,000
JMDJ$1,000J$1,000
JODد.أ 1,000JOD 1,000
JPY¥1,000¥1,000
KESKSh 1,000KSh 1,000
KGSKGS 1,000KGS 1,000
KHR1,0001,000
KMFCF 1,000CF 1,000
KPW1,0001,000
KRW1,0001,000
KWDد.ك 1,000د.ك 1,000
KYDCI$1,000CI$1,000
KZT1,0001,000
LAK1,0001,000
LBPل.ل 1,000ل.ل 1,000
LKRරු.1,000රු.1,000
LRDL$1,000L$1,000
LSLL1,000L1,000
LYDل.د 1,000ل.د 1,000
MAD1,000DHMAD 1,000
MDLL 1,000MDL 1,000
MGAAr 1,000Ar 1,000
MKDден 1,000ден 1,000
MMKK 1,000K 1,000
MNT1,0001,000
MOPMOP$1,000MOP$1,000
MROUM 1,000UM 1,000
MUR 1,000 1,000
MVRRf. 1,000Rf. 1,000
MWKK1,000K1,000
MXNMex$1,000Mex$1,000
MXV{{currency}} – invalid code (help){{currency}} – invalid code (help)
MYRRM1,000RM1,000
MZNMT 1,000MT 1,000
NADN$1,000N$1,000
NGN1,0001,000
NIOC$1,000C$1,000
NOKkr 1,000kr 1,000
NPRरू 1,000रू 1,000
NZDNZ$1,000NZ$1,000
OMRر.ع. 1,000ر.ع. 1,000
PABB/.1,000B/.1,000
PENS/.1,000S/.1,000
PGKK 1,000K 1,000
PHP1,0001,000
PKR1,0001,000
PLN1,0001,000
PYG1,000 1,000 
QARر.ق 1,000ر.ق 1,000
RONRON 1,000RON 1,000
RSDdin. 1,000din. 1,000
RUB1,000 1,000 
RWFFRw 1,000FRw 1,000
SARر.س 1,000ر.س 1,000
SBDSI$1,000SI$1,000
SCRSR 1,000SR 1,000
SDGج.س. 1,000ج.س. 1,000
SEKkr 1,000kr 1,000
SGDS$1,000S$1,000
SHPSH£1,000SH£1,000
SLLLe 1,000Le 1,000
SOSSh.So. 1,000Sh.So. 1,000
SRDSR$1,000SR$1,000
SSPSSP 1,000SSP 1,000
STDDb 1,000Db 1,000
SYP£S 1,000£S 1,000
SZLL1,000L1,000
THB฿1,000฿1,000
TJSSM 1,000TJS 1,000
TMTT 1,000T 1,000
TNDد.ت 1,000د.ت 1,000
TOPT$1,000T$1,000
TRY1,0001,000
TTDTT$1,000TT$1,000
TWDNT$1,000NT$1,000
TZSTSh 1,000TSh 1,000
UAH1,0001,000
UGXUSh 1,000USh 1,000
USDUS$1,000US$1,000
USN{{currency}} – invalid code (help){{currency}} – invalid code (help)
USS{{currency}} – invalid code (help){{currency}} – invalid code (help)
UYI{{currency}} – invalid code (help){{currency}} – invalid code (help)
UYU$U 1,000$U 1,000
UZSUZS 1,000UZS 1,000
VEDBs.S. 1,000Bs.S. 1,000
VND1,0001,000
VUVVT 1,000VT 1,000
WSTWS$1,000WS$1,000
XAFFCFA 1,000FCFA 1,000
XAG{{currency}} – invalid code (help){{currency}} – invalid code (help)
XAU{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBA{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBB{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBC{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBD{{currency}} – invalid code (help){{currency}} – invalid code (help)
XCDEC$1,000EC$1,000
XDR{{currency}} – invalid code (help){{currency}} – invalid code (help)
XFU{{currency}} – invalid code (help){{currency}} – invalid code (help)
XOFCFA 1,000CFA 1,000
XPD{{currency}} – invalid code (help){{currency}} – invalid code (help)
XPFF 1,000F 1,000
XPT{{currency}} – invalid code (help){{currency}} – invalid code (help)
XSU{{currency}} – invalid code (help){{currency}} – invalid code (help)
XTS{{currency}} – invalid code (help){{currency}} – invalid code (help)
XUA{{currency}} – invalid code (help){{currency}} – invalid code (help)
XXX¤1,000¤1,000
YER1,0001,000
ZARR 1,000R 1,000
ZMWZMW 1,000ZMW 1,000

long form

currency code test
code{{currency}}{{currency/sandbox}}
AED1,000 United Arab Emirates dirhams1,000 United Arab Emirates dirhams
AFN1,000 Afghan afghanis1,000 Afghan afghanis
ALL1,000 lekë1,000 lekë
AMD1,000 Armenian drams1,000 Armenian drams
ANG1,000 Netherlands Antillean guilders1,000 Netherlands Antillean guilders
AOA1,000 Angolan kwanzas1,000 Angolan kwanzas
ARS1,000 Argentine pesos1,000 Argentine pesos
AUD1,000 Australian dollars1,000 Australian dollars
AWG1,000 Aruban florins1,000 Aruban florins
AZN1,000 Azerbaijani manats1,000 Azerbaijani manats
BAM1,000 Bosnia and Herzegovina convertible marks1,000 Bosnia and Herzegovina konvertibilna markas
BBD1,000 Barbados dollars1,000 Barbados dollars
BDT1,000 Bangladeshi taka1,000 Bangladeshi taka
BGN1,000 leva1,000 leva
BHD1,000 Bahraini dinars1,000 Bahraini dinars
BIF1,000 Burundian francs1,000 Burundian francs
BMD1,000 Bermudian dollars1,000 Bermudian dollars
BND1,000 Brunei dollars1,000 Brunei dollars
BOB1,000 Bolivian bolivianos1,000 Bolivian bolivianos
BOV{{currency}} – invalid code (help){{currency}} – invalid code (help)
BRL1,000 Brazilian reals1,000 Brazilian reals
BSD1,000 Bahamian dollars1,000 Bahamian dollars
BTN1,000 Ngultrums1,000 Ngultrums
BWP1,000 Botswana pula1,000 Botswana pula
BYR1,000 Belarusian rubles1,000 Belarusian rubles
BZD1,000 Belize dollars1,000 Belize dollars
CAD1,000 Canadian dollars1,000 Canadian dollars
CDF1,000 Congolese francs1,000 Congolese francs
CHE{{currency}} – invalid code (help){{currency}} – invalid code (help)
CHF1,000 Swiss francs1,000 Swiss francs
CHW{{currency}} – invalid code (help){{currency}} – invalid code (help)
CLF{{currency}} – invalid code (help){{currency}} – invalid code (help)
CLP1,000 Chilean pesos1,000 Chilean pesos
CNY1,000 Renminbi1,000 Renminbi
COP1,000 Colombian pesos1,000 Colombian pesos
COU{{currency}} – invalid code (help){{currency}} – invalid code (help)
CRC1,000 Costa Rican colons1,000 Costa Rican colons
CUC1,000 Cuban convertible pesos1,000 Cuban convertible pesos
CUP1,000 Cuban pesos1,000 Cuban pesos
CVE1,000 Cape Verde escudos1,000 Cape Verde escudos
CZK1,000 Czech koruna1,000 Czech koruna
DJF1,000 Djiboutian francs1,000 Djiboutian francs
DKK1,000 Danish kroner1,000 Danish kroner
DOP1,000 Dominican pesos1,000 Dominican pesos
DZD1,000 Algerian dinars1,000 Algerian dinars
EGP1,000 Egyptian pounds1,000 Egyptian pounds
ERN1,000 Eritrean nakfa1,000 Eritrean nakfa
ETB1,000 Ethiopian birr1,000 Ethiopian birr
EUR1,000 Euros1,000 Euros
FJD1,000 Fijian dollars1,000 Fijian dollars
FKP1,000 Falkland Islands pounds1,000 Falkland Islands pounds
GBP1,000 pounds sterling1,000 pounds sterling
GEL1,000 Georgian lari1,000 Georgian lari
GHS1,000 Ghanaian cedi1,000 Ghanaian cedi
GIP1,000 Gibraltar pounds1,000 Gibraltar pounds
GMD1,000 Gambian dalasi1,000 Gambian dalasi
GNF1,000 Guinean francs1,000 Guinean francs
GTQ1,000 Guatemalan quetzales1,000 Guatemalan quetzales
GYD1,000 Guyanese dollars1,000 Guyanese dollars
HKD1,000 Hong Kong dollars1,000 Hong Kong dollars
HNL1,000 Honduran lempiras1,000 Honduran lempiras
HRK1,000 Croatian kuna1,000 Croatian kuna
HTG1,000 Haitian gourdes1,000 Haitian gourdes
HUF1,000 Hungarian forint1,000 Hungarian forint
IDR1,000 Indonesian rupiah1,000 Indonesian rupiah
ILS1,000 Israeli new shekels1,000 Israeli new shekels
INR1,000 Indian rupees1,000 Indian rupees
IQD1,000 Iraqi dinars1,000 Iraqi dinars
IRR1,000 Iranian rials1,000 Iranian rials
ISK1,000 Icelandic króna1,000 Icelandic króna
JMD1,000 Jamaican dollars1,000 Jamaican dollars
JOD1,000 Jordanian dinars1,000 Jordanian dinars
JPY1,000 Japanese yen1,000 Japanese yen
KES1,000 Kenyan shillings1,000 Kenyan shillings
KGS1,000 Kyrgyzstani som1,000 Kyrgyzstani som
KHR1,000 Cambodian riels1,000 Cambodian riels
KMF1,000 Comorian francs1,000 Comorian francs
KPW1,000 North Korean won1,000 North Korean won
KRW1,000 South Korean won1,000 South Korean won
KWD1,000 Kuwaiti dinars1,000 Kuwaiti dinars
KYD1,000 Cayman Islands dollars1,000 Cayman Islands dollars
KZT1,000 Kazakhstani tenge1,000 Kazakhstani tenge
LAK1,000 Lao kip1,000 Lao kip
LBP1,000 Lebanese pounds1,000 Lebanese pounds
LKR1,000 Sri Lankan rupees1,000 Sri Lankan rupees
LRD1,000 Liberian dollars1,000 Liberian dollars
LSL1,000 Lesotho maloti1,000 Lesotho maloti
LYD1,000 Libyan dinars1,000 Libyan dinars
MAD1,000 Moroccan dirhams1,000 Moroccan dirhams
MDL1,000 Moldovan lei1,000 Moldovan lei
MGA1,000 Malagasy ariary1,000 Malagasy ariary
MKD1,000 Macedonian denari1,000 Macedonian denari
MMK1,000 Burmese kyats1,000 Burmese kyats
MNT1,000 Mongolian tögrög1,000 Mongolian tögrög
MOP1,000 Macanese patacas1,000 Macanese patacas
MRO1,000 Mauritanian ouguiya1,000 Mauritanian ouguiya
MUR1,000 Mauritian rupees1,000 Mauritian rupees
MVR1,000 Maldivian rufiyaa1,000 Maldivian rufiyaa
MWK1,000 Malawian kwacha1,000 Malawian kwacha
MXN1,000 Mexican pesos1,000 Mexican pesos
MXV{{currency}} – invalid code (help){{currency}} – invalid code (help)
MYR1,000 Malaysian ringgits1,000 Malaysian ringgits
MZN1,000 Mozambican meticais1,000 Mozambican meticais
NAD1,000 Namibian dollars1,000 Namibian dollars
NGN1,000 Nigerian naira1,000 Nigerian naira
NIO1,000 Nicaraguan córdobas1,000 Nicaraguan córdobas
NOK1,000 Norwegian kroner1,000 Norwegian kroner
NPR1,000 Nepalese rupees1,000 Nepalese rupees
NZD1,000 New Zealand dollars1,000 New Zealand dollars
OMR1,000 Omani rials1,000 Omani rials
PAB1,000 Panamanian balboas1,000 Panamanian balboas
PEN1,000 Peruvian soles1,000 Peruvian soles
PGK1,000 Papua New Guinean kina1,000 Papua New Guinean kina
PHP1,000 Philippine pesos1,000 Philippine pesos
PKR1,000 Pakistani rupees1,000 Pakistani rupees
PLN1,000 Polish złoty1,000 Polish złoty
PYG1,000 Paraguayan guaraníes1,000 Paraguayan guaraníes
QAR1,000 Qatari riyals1,000 Qatari riyals
RON1,000 Romanian lei1,000 Romanian lei
RSD1,000 Serbian dinar1,000 Serbian dinar
RUB1,000 Russian rubles1,000 Russian rubles
RWF1,000 Rwandan francs1,000 Rwandan francs
SAR1,000 Saudi riyals1,000 Saudi riyals
SBD1,000 Solomon Islands dollars1,000 Solomon Islands dollars
SCR1,000 Seychellois rupees1,000 Seychellois rupees
SDG1,000 Sudanese pounds1,000 Sudanese pounds
SEK1,000 Swedish kronor1,000 Swedish kronor
SGD1,000 Singapore dollars1,000 Singapore dollars
SHP1,000 Saint Helena pounds1,000 Saint Helena pounds
SLL1,000 Sierra Leonean leones1,000 Sierra Leonean leones
SOS1,000 Somali shillings1,000 Somali shillings
SRD1,000 Surinamese dollars1,000 Surinamese dollars
SSP1,000 South Sudanese pounds1,000 South Sudanese pounds
STD1,000 São Tomé and Príncipe dobras1,000 São Tomé and Príncipe dobras
SYP1,000 Syrian pounds1,000 Syrian pounds
SZL1,000 Swazi emalangeni1,000 Swazi emalangeni
THB1,000 Thai baht1,000 Thai baht
TJS1,000 Tajikistani somoni1,000 Tajikistani somoni
TMT1,000 Turkmenistan manat1,000 Turkmenistan manat
TND1,000 Tunisian dinars1,000 Tunisian dinars
TOP1,000 Tongan paʻanga1,000 Tongan paʻanga
TRY1,000 Second Turkish lira1,000 Second Turkish lira
TTD1,000 Trinidad and Tobago dollars1,000 Trinidad and Tobago dollars
TWD1,000 New Taiwan dollars1,000 New Taiwan dollars
TZS1,000 Tanzanian shilingis1,000 Tanzanian shilingis
UAH1,000 Ukrainian hryvnia1,000 Ukrainian hryvnia
UGX1,000 Ugandan shillings1,000 Ugandan shillings
USD1,000 United States dollars1,000 United States dollars
USN{{currency}} – invalid code (help){{currency}} – invalid code (help)
USS{{currency}} – invalid code (help){{currency}} – invalid code (help)
UYI{{currency}} – invalid code (help){{currency}} – invalid code (help)
UYU1,000 Uruguayan pesos1,000 Uruguayan pesos
UZS1,000 Uzbekistani so'm1,000 Uzbekistani so'm
VEF{{currency}} – invalid code (help){{currency}} – invalid code (help)
VND1,000 Vietnamese đồng1,000 Vietnamese đồng
VUV1,000 Vanuatu vatu1,000 Vanuatu vatu
WST1,000 Samoan tālā1,000 Samoan tālā
XAF1,000 Central African CFA francs1,000 Central African CFA francs
XAG{{currency}} – invalid code (help){{currency}} – invalid code (help)
XAU{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBA{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBB{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBC{{currency}} – invalid code (help){{currency}} – invalid code (help)
XBD{{currency}} – invalid code (help){{currency}} – invalid code (help)
XCD1,000 East Caribbean dollars1,000 East Caribbean dollars
XDR{{currency}} – invalid code (help){{currency}} – invalid code (help)
XFU{{currency}} – invalid code (help){{currency}} – invalid code (help)
XOF1,000 West African CFA francs1,000 West African CFA francs
XPD{{currency}} – invalid code (help){{currency}} – invalid code (help)
XPF1,000 CFP francs1,000 CFP francs
XPT{{currency}} – invalid code (help){{currency}} – invalid code (help)
XSU{{currency}} – invalid code (help){{currency}} – invalid code (help)
XTS{{currency}} – invalid code (help){{currency}} – invalid code (help)
XUA{{currency}} – invalid code (help){{currency}} – invalid code (help)
XXX1,000 ¤1,000 ¤
YER1,000 Yemeni rials1,000 Yemeni rials
ZAR1,000 South African rand1,000 South African rand
ZMW1,000 Zambian kwacha1,000 Zambian kwacha

translated codes

Codes in this table were found in the sub-templates. A translation table in the Module code maps these non-standard codes to the standard ISO 4217 codes for rendering.

currency code translation test
code{{currency}}{{currency/sandbox}}
EGE1,0001,000
EU1,0001,000
EUMELN{{currency}} – invalid code (help){{currency}} – invalid code (help)
EURO1,0001,000
FRWFRw 1,000FRw 1,000
KNAAK{{currency}} – invalid code (help){{currency}} – invalid code (help)
KSHKSh 1,000KSh 1,000
NEPरू 1,000रू 1,000
POUND£1,000£1,000
POUND STERLING£1,000£1,000
RMBCN¥ 1,000CN¥ 1,000
TEURO{{currency}} – invalid code (help){{currency}} – invalid code (help)
THE SINGLE CURRENCY{{currency}} – invalid code (help){{currency}} – invalid code (help)
TSHTSh 1,000TSh 1,000
UK£1,000£1,000
UNITED STATESUS$1,000US$1,000
USUS$1,000US$1,000
U.S.US$1,000US$1,000
USAUS$1,000US$1,000
USHUSh 1,000USh 1,000

non-standard codes

Codes in this table were found in the sub-templates. A separate table in the Module code allows rendering of currencies that do not conform to ISO 4217.

non-standard code test
code{{currency}}{{currency/sandbox}}notes
AED2{{currency}} – invalid code (help){{currency}} – invalid code (help)singular symbol version of AED (plural)
AFN2{{currency}} – invalid code (help){{currency}} – invalid code (help)singular symbol version of AFN (plural)
BITCOINBTC 1,000BTC 1,000
BTCBTC 1,000BTC 1,000
BYN2{{currency}} – invalid code (help){{currency}} – invalid code (help)singular symbol version of BYN (plural)
CHF2{{currency}} – invalid code (help){{currency}} – invalid code (help)ISO code variant
DKK2DKK 1,000DKK 1,000ISO code variant
LKR2LKR 1,000LKR 1,000ISO code variant
LSL2M1,000M1,000plural symbol version of LSL (singular)
NOK2NOK 1,000NOK 1,000ISO code variant
SEK2SEK 1,000SEK 1,000ISO code variant
SZL2E1,000E1,000plural symbol version of SZL (singular)
XBTBTC 1,000BTC 1,000

linked symbol and currency name

Uses |linked=no to turn off wikilinks

currency code test
code{{currency}}{{currency/sandbox}}
AEDDH 1,000DH 1,000
AED1,000 United Arab Emirates dirhams1,000 United Arab Emirates dirhams
AFN؋1,000؋1,000
AFN1,000 Afghan afghanis1,000 Afghan afghanis
GBP£1,000£1,000
GBP1,000 pounds sterling1,000 pounds sterling