User:AreJay/Template:INRConvert/doc
Appearance
This is a documentation subpage for User:AreJay/Template:INRConvert. It may contain usage information, categories and other content that is not part of the original user template page. |
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) |