Template:INRConvert
From Wikipedia, the free encyclopedia
[edit]
Template documentation
[edit] Purpose
To automatically convert and format currency from Indian Rupees (Rs.) to United States Dollars. (US$) for use on India-related articles on Wikipedia or wherever appropriate.
[edit] Usage
{{INRConvert|rupee_value|currency_formatting}}
- Note
Indian Rupee currencies should be input in conventional standarized form. The template will only accept numerical values (ie. no pre-formatted text such as {{INRConvert|1,500}}). Inputs with non-standard representation will produce non-standard formatting results.
Additionally, the currency_formatting parameter will accept the following values (these values are not case sensitive):
{{INRConvert}} will also accept argument formats from the Indian numbering system and present them in their international equivalent scale.
- Refer to the "Examples" section for examples on the use of the currency_formatting parameter.
- Foreign Exchange Data Source
- This template will always aim to convert Indian Rupees at current Dollar prices. Source data for INR > USD rates is obtained from Bloomberg online.
[edit] Examples
| INRConvert syntax | Results |
|---|---|
| {{INRConvert|500}} | Rs. 500 (US$ 12.74) |
| {{INRConvert|0.05}} | Rs. 0.05 (US$ 0) |
| {{INRConvert|30|m}} | Rs. 30 million (US$ 764,160) |
| {{INRConvert|0.72|m}} | Rs. 0.72 million (US$ 18,339.84) |
| {{INRConvert|36|b}} | Rs. 36 billion (US$ 916.99 million) |
| {{INRConvert|80|B}} | Rs. 80 billion (US$ 2.04 billion) |
| {{INRConvert|32|t}} | Rs. 32 trillion (US$ 815.1 billion) |
| {{INRConvert|400|c}} | Rs. 400 crore (US$ 101.89 million) |

