If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
ort_currency_convert
This is a tiny plugin that allows you to convert an amount of money from one currency to another.
The exchange rate is obtained live from http://www.webservicex.net//CurrencyConvertor.asmx (there’s a test page here – look down for “Test”).
Idea and development: Juan Tommasone – Alan Tafel
Tutoring: Mariano Absatz
Instituto de TecnologĂa ORT – Seminario de Aplicaciones
Usage
Put the <txp:ort_currency_convert />
tag right within an article or use it wherever you have a number representing money in one currency that you want to show in another currency at the present currency exchange.
Attributes
- from: The currency in which the original sum is expressed (default = EUR).
- to: The currency to which you want to convert the sum (default = USD).
- value: The sum of money you want to convert (default = 1).
- precision: The precision (number of decimals) of the result (default = 2).
Notes:
- I think the precision of the conversion rate is at most 4.
- To avoid error propagation, rounding is the very last step.
- You can also specify a negative precision with the precision attribute. If you specify precision = “-2” then the last 2 digits will always be 0.
So, if you put a plain <txp:ort_currency_convert />
tag with no attributes, it will show you the Euro to US Dollar exchange rate.
Example usage (within an article)
I bought a T-Shirt in London that cost me about <txp:ort_currency_convert value=12.95 from="GBP" to="USD" /> US Dollars (I actually payed 12.95 British Pounds).
Supported currencies:
Symbol | Currency |
---|---|
AFA | Afghanistan Afghani |
ALL | Albanian Lek |
DZD | Algerian Dinar |
ARS | Argentine Peso |
AWG | Aruba Florin |
AUD | Australian Dollar |
BSD | Bahamian Dollar |
BHD | Bahraini Dinar |
BDT | Bangladesh Taka |
BBD | Barbados Dollar |
BZD | Belize Dollar |
BMD | Bermuda Dollar |
BTN | Bhutan Ngultrum |
BOB | Bolivian Boliviano |
BWP | Botswana Pula |
BRL | Brazilian Real |
GBP | British Pound |
BND | Brunei Dollar |
BIF | Burundi Franc |
XOF | CFA Franc (BCEAO) |
XAF | CFA Franc (BEAC) |
KHR | Cambodia Riel |
CAD | Canadian Dollar |
CVE | Cape Verde Escudo |
KYD | Cayman Islands Dollar |
CLP | Chilean Peso |
CNY | Chinese Yuan |
COP | Colombian Peso |
KMF | Comoros Franc |
CRC | Costa Rica Colon |
HRK | Croatian Kuna |
CUP | Cuban Peso |
CYP | Cyprus Pound |
CZK | Czech Koruna |
DKK | Danish Krone |
DJF | Dijibouti Franc |
DOP | Dominican Peso |
XCD | East Caribbean Dollar |
EGP | Egyptian Pound |
SVC | El Salvador Colon |
EEK | Estonian Kroon |
ETB | Ethiopian Birr |
EUR | Euro |
FKP | Falkland Islands Pound |
GMD | Gambian Dalasi |
GHC | Ghanian Cedi |
GIP | Gibraltar Pound |
XAU | Gold Ounces |
GTQ | Guatemala Quetzal |
GNF | Guinea Franc |
GYD | Guyana Dollar |
HTG | Haiti Gourde |
HNL | Honduras Lempira |
HKD | Hong Kong Dollar |
HUF | Hungarian Forint |
ISK | Iceland Krona |
INR | Indian Rupee |
IDR | Indonesian Rupiah |
IQD | Iraqi Dinar |
ILS | Israeli Shekel |
JMD | Jamaican Dollar |
JPY | Japanese Yen |
JOD | Jordanian Dinar |
KZT | Kazakhstan Tenge |
KES | Kenyan Shilling |
KRW | Korean Won |
KWD | Kuwaiti Dinar |
LAK | Lao Kip |
LVL | Latvian Lat |
LBP | Lebanese Pound |
LSL | Lesotho Loti |
LRD | Liberian Dollar |
LYD | Libyan Dinar |
LTL | Lithuanian Lita |
MOP | Macau Pataca |
MKD | Macedonian Denar |
MGF | Malagasy Franc |
MWK | Malawi Kwacha |
MYR | Malaysian Ringgit |
MVR | Maldives Rufiyaa |
MTL | Maltese Lira |
MRO | Mauritania Ougulya |
MUR | Mauritius Rupee |
MXN | Mexican Peso |
MDL | Moldovan Leu |
MNT | Mongolian Tugrik |
MAD | Moroccan Dirham |
MZM | Mozambique Metical |
MMK | Myanmar Kyat |
NAD | Namibian Dollar |
NPR | Nepalese Rupee |
ANG | Neth Antilles Guilder |
NZD | New Zealand Dollar |
NIO | Nicaragua Cordoba |
NGN | Nigerian Naira |
KPW | North Korean Won |
NOK | Norwegian Krone |
OMR | Omani Rial |
XPF | Pacific Franc |
PKR | Pakistani Rupee |
XPD | Palladium Ounces |
PAB | Panama Balboa |
PGK | Papua New Guinea Kina |
PYG | Paraguayan Guarani |
PEN | Peruvian Nuevo Sol |
PHP | Philippine Peso |
XPT | Platinum Ounces |
PLN | Polish Zloty |
QAR | Qatar Rial |
ROL | Romanian Leu |
RUB | Russian Rouble |
WST | Samoa Tala |
STD | Sao Tome Dobra |
SAR | Saudi Arabian Riyal |
SCR | Seychelles Rupee |
SLL | Sierra Leone Leone |
XAG | Silver Ounces |
SGD | Singapore Dollar |
SKK | Slovak Koruna |
SIT | Slovenian Tolar |
SBD | Solomon Islands Dollar |
SOS | Somali Shilling |
ZAR | South African Rand |
LKR | Sri Lanka Rupee |
SHP | St Helena Pound |
SDD | Sudanese Dinar |
SRG | Surinam Guilder |
SZL | Swaziland Lilageni |
SEK | Swedish Krona |
TRY | Turkey Lira |
CHF | Swiss Franc |
SYP | Syrian Pound |
TWD | Taiwan Dollar |
TZS | Tanzanian Shilling |
THB | Thai Baht |
TOP | Tonga Pa’anga |
TTD | Trinidad & Tobago Dollar |
TND | Tunisian Dinar |
TRL | Turkish Lira |
USD | U.S. Dollar |
AED | UAE Dirham |
UGX | Ugandan Shilling |
UAH | Ukraine Hryvnia |
UYU | Uruguayan New Peso |
VUV | Vanuatu Vatu |
VEB | Venezuelan Bolivar |
VND | Vietnam Dong |
YER | Yemen Riyal |
YUM | Yugoslav Dinar |
ZMK | Zambian Kwacha |
ZWD | Zimbabwe Dollar |