Difference between revisions of "Template:Data currency"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This is a data template which takes currency code returns currency symbol and currency name (plural) separated by | + | This is a data template which takes currency code returns currency symbol and currency name (plural) separated by slashes. First position is not used because #titleparts parser function makes first letter uppercase. |
'''Examples:''' | '''Examples:''' | ||
<pre> | <pre> | ||
− | {{Data currency|USD}} -> $ | + | {{Data currency|USD}} -> /$/US dollars |
− | {{Data currency|ERN}} -> Nfk | + | {{Data currency|ERN}} -> /Nfk/Eritrean nakfas |
+ | |||
+ | {{#titleparts: {{Data currency|EUR}} | 1 | 2 }} -> € | ||
+ | {{#titleparts: {{Data currency|EUR}} | 1 | 3 }} -> euros | ||
</pre> | </pre> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly>{{#switch:{{{1}}} | </noinclude><includeonly>{{#switch:{{{1}}} | ||
− | |USD=$ | + | |USD=/$/US dollars |
− | |CAD=CA$ | + | |CAD=/CA$/Canadian dollars |
− | |EUR=€ | + | |EUR=/€/euros |
− | |AED=AED | + | |AED=/AED/UAE dirhams |
− | |AFN=Af | + | |AFN=/Af/Afghan Afghanis |
− | |ALL=ALL | + | |ALL=/ALL/Albanian lekë |
− | |AMD=AMD | + | |AMD=/AMD/Armenian drams |
− | |ARS=AR$ | + | |ARS=/AR$/Argentine pesos |
− | |AUD=AU$ | + | |AUD=/AU$/Australian dollars |
− | |AZN=man. | + | |AZN=/man./Azerbaijani manats |
− | |BAM=KM | + | |BAM=/KM/Bosnia-Herzegovina convertible marks |
− | |BDT=Tk | + | |BDT=/Tk/Bangladeshi takas |
− | |BGN=BGN | + | |BGN=/BGN/Bulgarian leva |
− | |BHD=BD | + | |BHD=/BD/Bahraini dinars |
− | |BIF=FBu | + | |BIF=/FBu/Burundian francs |
− | |BND=BN$ | + | |BND=/BN$/Brunei dollars |
− | |BOB=Bs | + | |BOB=/Bs/Bolivian bolivianos |
− | |BRL=R$ | + | |BRL=/R$/Brazilian reals |
− | |BWP=BWP | + | |BWP=/BWP/Botswanan pulas |
− | |BYR=BYR | + | |BYR=/BYR/Belarusian rubles |
− | |BZD=BZ$ | + | |BZD=/BZ$/Belize dollars |
− | |CDF=CDF | + | |CDF=/CDF/Congolese francs |
− | |CHF=CHF | + | |CHF=/CHF/Swiss francs |
− | |CLP=CL$ | + | |CLP=/CL$/Chilean pesos |
− | |CNY=CN¥ | + | |CNY=/CN¥/Chinese yuan |
− | |COP=CO$ | + | |COP=/CO$/Colombian pesos |
− | |CRC=₡ | + | |CRC=/₡/Costa Rican colóns |
− | |CVE=CV$ | + | |CVE=/CV$/Cape Verdean escudos |
− | |CZK=Kč | + | |CZK=/Kč/Czech Republic korunas |
− | |DJF=Fdj | + | |DJF=/Fdj/Djiboutian francs |
− | |DKK=Dkr | + | |DKK=/Dkr/Danish kroner |
− | |DOP=RD$ | + | |DOP=/RD$/Dominican pesos |
− | |DZD=DA | + | |DZD=/DA/Algerian dinars |
− | |EGP=EGP | + | |EGP=/EGP/Egyptian pounds |
− | |ERN=Nfk | + | |ERN=/Nfk/Eritrean nakfas |
− | |ETB=Br | + | |ETB=/Br/Ethiopian birrs |
− | |GBP=£ | + | |GBP=/£/British pounds sterling |
− | |GEL=GEL | + | |GEL=/GEL/Georgian laris |
− | |GHS=GH₵ | + | |GHS=/GH₵/Ghanaian cedis |
− | |GNF=FG | + | |GNF=/FG/Guinean francs |
− | |GTQ=GTQ | + | |GTQ=/GTQ/Guatemalan quetzals |
− | |HKD=HK$ | + | |HKD=/HK$/Hong Kong dollars |
− | |HNL=HNL | + | |HNL=/HNL/Honduran lempiras |
− | |HRK=kn | + | |HRK=/kn/Croatian kunas |
− | |HUF=Ft | + | |HUF=/Ft/Hungarian forints |
− | |IDR=Rp | + | |IDR=/Rp/Indonesian rupiahs |
− | |ILS=₪ | + | |ILS=/₪/Israeli new sheqels |
− | |INR=Rs | + | |INR=/Rs/Indian rupees |
− | |IQD=IQD | + | |IQD=/IQD/Iraqi dinars |
− | |IRR=IRR | + | |IRR=/IRR/Iranian rials |
− | |ISK=Ikr | + | |ISK=/Ikr/Icelandic krónur |
− | |JMD=J$ | + | |JMD=/J$/Jamaican dollars |
− | |JOD=JD | + | |JOD=/JD/Jordanian dinars |
− | |JPY=¥ | + | |JPY=/¥/Japanese yen |
− | |KES=Ksh | + | |KES=/Ksh/Kenyan shillings |
− | |KHR=KHR | + | |KHR=/KHR/Cambodian riels |
− | |KMF=CF | + | |KMF=/CF/Comorian francs |
− | |KRW=₩ | + | |KRW=/₩/South Korean won |
− | |KWD=KD | + | |KWD=/KD/Kuwaiti dinars |
− | |KZT=KZT | + | |KZT=/KZT/Kazakhstani tenges |
− | |LBP=LB£ | + | |LBP=/LB£/Lebanese pounds |
− | |LKR=SLRs | + | |LKR=/SLRs/Sri Lankan rupees |
− | |LTL=Lt | + | |LTL=/Lt/Lithuanian litai |
− | |LYD=LD | + | |LYD=/LD/Libyan dinars |
− | |MAD=MAD | + | |MAD=/MAD/Moroccan dirhams |
− | |MDL=MDL | + | |MDL=/MDL/Moldovan lei |
− | |MGA=MGA | + | |MGA=/MGA/Malagasy Ariaries |
− | |MKD=MKD | + | |MKD=/MKD/Macedonian denari |
− | |MMK=MMK | + | |MMK=/MMK/Myanma kyats |
− | |MOP=MOP$ | + | |MOP=/MOP$/Macanese patacas |
− | |MUR=MURs | + | |MUR=/MURs/Mauritian rupees |
− | |MXN=MX$ | + | |MXN=/MX$/Mexican pesos |
− | |MYR=RM | + | |MYR=/RM/Malaysian ringgits |
− | |MZN=MTn | + | |MZN=/MTn/Mozambican meticals |
− | |NAD=N$ | + | |NAD=/N$/Namibian dollars |
− | |NGN=₦ | + | |NGN=/₦/Nigerian nairas |
− | |NIO=C$ | + | |NIO=/C$/Nicaraguan córdobas |
− | |NOK=Nkr | + | |NOK=/Nkr/Norwegian kroner |
− | |NPR=NPRs | + | |NPR=/NPRs/Nepalese rupees |
− | |NZD=NZ$ | + | |NZD=/NZ$/New Zealand dollars |
− | |OMR=OMR | + | |OMR=/OMR/Omani rials |
− | |PAB=B/. | + | |PAB=/B/./Panamanian balboas |
− | |PEN=S/. | + | |PEN=/S/./Peruvian nuevos soles |
− | |PHP=₱ | + | |PHP=/₱/Philippine pesos |
− | |PKR=PKRs | + | |PKR=/PKRs/Pakistani rupees |
− | |PLN=zł | + | |PLN=/zł/Polish zlotys |
− | |PYG=₲ | + | |PYG=/₲/Paraguayan guaranis |
− | |QAR=QR | + | |QAR=/QR/Qatari rials |
− | |RON=RON | + | |RON=/RON/Romanian lei |
− | |RSD=din. | + | |RSD=/din./Serbian dinars |
− | |RUB=RUB | + | |RUB=/RUB/Russian rubles |
− | |RWF=RWF | + | |RWF=/RWF/Rwandan francs |
− | |SAR=SR | + | |SAR=/SR/Saudi riyals |
− | |SDG=SDG | + | |SDG=/SDG/Sudanese pounds |
− | |SEK=Skr | + | |SEK=/Skr/Swedish kronor |
− | |SGD=S$ | + | |SGD=/S$/Singapore dollars |
− | |SOS=Ssh | + | |SOS=/Ssh/Somali shillings |
− | |SYP=SY£ | + | |SYP=/SY£/Syrian pounds |
− | |THB=฿ | + | |THB=/฿/Thai baht |
− | |TND=DT | + | |TND=/DT/Tunisian dinars |
− | |TOP=T$ | + | |TOP=/T$/Tongan paʻanga |
− | |TRY=TL | + | |TRY=/TL/Turkish Lira |
− | |TTD=TT$ | + | |TTD=/TT$/Trinidad and Tobago dollars |
− | |TWD=NT$ | + | |TWD=/NT$/New Taiwan dollars |
− | |TZS=TSh | + | |TZS=/TSh/Tanzanian shillings |
− | |UAH=₴ | + | |UAH=/₴/Ukrainian hryvnias |
− | |UGX=USh | + | |UGX=/USh/Ugandan shillings |
− | |UYU=$U | + | |UYU=/$U/Uruguayan pesos |
− | |UZS=UZS | + | |UZS=/UZS/Uzbekistan som |
− | |VEF=Bs.F. | + | |VEF=/Bs.F./Venezuelan bolívars |
− | |VND=₫ | + | |VND=/₫/Vietnamese dong |
− | |XAF=FCFA | + | |XAF=/FCFA/CFA francs BEAC |
− | |XOF=CFA | + | |XOF=/CFA/CFA francs BCEAO |
− | |YER=YR | + | |YER=/YR/Yemeni rials |
− | |ZAR=R | + | |ZAR=/R/South African rand |
− | |ZMK=ZK | + | |ZMK=/ZK/Zambian kwachas |
|}}<nowiki /></includeonly> | |}}<nowiki /></includeonly> |
Latest revision as of 23:11, 24 September 2014
This is a data template which takes currency code returns currency symbol and currency name (plural) separated by slashes. First position is not used because #titleparts parser function makes first letter uppercase.
Examples:
{{Data currency|USD}} -> /$/US dollars {{Data currency|ERN}} -> /Nfk/Eritrean nakfas {{#titleparts: {{Data currency|EUR}} | 1 | 2 }} -> € {{#titleparts: {{Data currency|EUR}} | 1 | 3 }} -> euros