வார்ப்புரு:USDConvert/doc
This is a documentation subpage for வார்ப்புரு:USDConvert. It may contain usage information, பகுப்புகள் and other content that is not part of the original வார்ப்புரு page. |
This வார்ப்புரு 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
தொகுThe purpose of this template is to automatically convert and format currency from Indian Rupees to other currencies (United States Dollars by default) applying adjustment for inflation where appropriate. Rates of exchange and inflation must be manually copied by editors therefore the template's output does not necessarily reflect the present exchange rates or price indices but, rather, reflects the rates and indices at the time of the last update.
Usage
தொகு{{USDConvert|rupee_value|currency_formatting|rounding digits|lk=|to=|year=}}
Parameters
தொகுA description of the template's parameters are listed below.
Field name | Usage | Description |
rupee_value |
mandatory | The value, in Indian Rupees, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234). |
currency_formatting |
optional | Used to represent larger numbers. Available options are as follows.
|
rounding_digits |
optional | Used to round significant digits. Negative values (-2, -3) can be used to round values to the nearest hundred or thousand, etc. A value of "0" will drop paise or cent values from the converted number. By default the conversion will be rounded to two significant figures. Refer to the Examples section below for more examples. |
lk |
optional | This parameter gives you the option of internally linking currency names (rupees and paise) and/or number names (lakh and crore). By default, the parameter is set to "off" (i.e. it is set not to link). Available options are as follows.
On by default. |
year |
optional | This parameter allows for inflation. Historic rupee values will be inflated to current values then converted. |
to |
optional | This parameter allows for conversion to various different currencies (and some combinations). Currently, the US (default), Canadian, Australian and New Zealand dollars, the euro, the pound sterling, Pakistani rupee and the Bangladeshi taka are supported. |
mode |
optional | This parameter controls the output mode. Setting it to blank or omitting it results in the default mode. Setting it to historical allows conversion using historical exchange rates. The year parameter must be between 1970 and 2018 in historical mode.
|
Examples
தொகுINRConvert syntax | Results |
---|---|
{{USDConvert|1}} |
ஐஅ$1 (₹71.5) |
{{USDConvert|500}} |
ஐஅ$500 (₹35,758) |
{{USDConvert|0.05|lk=on}} |
5 பைசா (less than 1¢) |
{{USDConvert|0.01}} |
1 பைசா (less than 1¢) |
{{USDConvert|0.86}} |
86 பைசா (6,150¢) |
{{USDConvert|30|m}} |
ஐஅ$30 மில்லியன் (₹214.5 கோடி) |
{{USDConvert|0.72|m}} |
ஐஅ$0.72 மில்லியன் (₹5.1 கோடி) |
{{USDConvert|36|b}} |
ஐஅ$36 பில்லியன் (₹2,57,457.6 கோடி) |
{{USDConvert|36|b|-2}} |
ஐஅ$36 பில்லியன் (₹2,57,500 கோடி) |
{{USDConvert|80|b|lk=b}} |
ஐஅ$80 பில்லியன் (₹5,72,128 கோடி) |
{{USDConvert|32|t|lk=r}} |
ஐஅ$32 டிரில்லியன் (₹2,288.5 டிரில்லியன்) |
{{USDConvert|400|c|lk=on}} |
ஐஅ$400 கோடி (₹286.1 பில்லியன்) |
{{USDConvert|400|c|0}} |
ஐஅ$400 கோடி (₹286 பில்லியன்) |
{{USDConvert|19|k}} |
ஐஅ$19,000 (₹13,58,804) |
{{USDConvert|53|m|0}} |
ஐஅ$53 மில்லியன் (₹379 கோடி) |
{{USDConvert|123|k|year=1990}} |
ஐஅ$1,23,000 (₹87,96,468) |
{{USDConvert|319|to=GBP}} |
ஐஅ$319 (₹22,813.6) |
{{USDConvert|753|m|year=2000|to=USD EUR}} |
ஐஅ$753 மில்லியன் (₹5,385.2 கோடி) |
{{USDConvert|324|c|year=2000|to=EUR|mode=historical}} |
ஐஅ$324 கோடி (₹231.7 பில்லியன்) |
Updating
தொகுIt is important to keep the figures used in these conversions up to date. Data for current exchange rates is kept at {{INRConvert/CurrentRate}}. Data for historical exchange rates are kept at {{INRConvert/HistoricalRate}}. Data for the inflation rate is at {{Inflation/IN/dataset}} (see Template:Inflation#Developer documentation for details). Feel free to update these if you are able.
Template calculates a value of Indian Rupees, which you can enter, to another currency and then presents the results.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Rupee value | 1 | The value, in Indian Rupees, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
| Unknown | required |
Currency formatting | 2 | Use this to represent larger numbers such as crores, billions et al.
| Unknown | suggested |
Linking | lk | Gives option to whether link currency (Rupees, Paise) and/or number names (crores, lakhs)
| Unknown | suggested |
Year | year | This parameter allows for inflation. Historic rupee values will be inflated to current values then converted.
| Unknown | suggested |
To | to | This parameter allows for conversion to various different currencies (and some combinations). The US (default), Canadian, NZ and Australian dollars, the euro, the UK pound and the Bangladeshi taka are supported.
| Unknown | optional |
Rounding digits | 3 | Used to round significant digits. Negative values (-2, -3) can be used to round values to the nearest hundred or thousand, etc. A value of "0" will drop paise or cent values from the converted number. By default the conversion will be rounded to two significant figures.
| Unknown | optional |
Mode | mode | This parameter allows for the control of the output mode. Currently, blank (default) and historical are supported. In historical mode, conversions are performed using a historical exchange rate, for the year supplied. Years between 1970 and 2018 are supported, for XDR, USD (default), GBP, JPY, DEM (until 1998) and EUR (from 1999).
| Unknown | optional |