User:AreJay/Template:INRConvert
Appearance
This user page employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Purpose
[edit]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.
Usage
[edit]{{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 yeild non-standard formatting results.
- Additionally, the currency_formatting parameter will accept the following values (these values are not case sensitive):
- m (million)
- b (billion)
- t (trillion)
- 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.
Examples
[edit]
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) |