ಟೆಂಪ್ಲೇಟ್:INRConvert/doc
This is a documentation subpage for ಟೆಂಪ್ಲೇಟ್:INRConvert. It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟ್ page. |
This template is used on approximately ೬,೨೦೦ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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
[ಸಂಪೊಲಿಪುಲೆ]{{INRConvert|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.
|
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 |
---|---|
{{INRConvert|1}} |
₹೧ (೧.೨¢ US) |
{{INRConvert|500}} |
₹೫೦೦ (US$೬�00) |
{{INRConvert|0.05|lk=on}} |
5 paise (೦.೦೬0¢ US) |
{{INRConvert|0.01}} |
1 paisa (೦.೦೧೨¢ US) |
{{INRConvert|0.86}} |
86 paise (೧�0¢ US) |
{{INRConvert|30|m}} |
₹೩೦ million (US$೩,೬೦,೦೦೦) |
{{INRConvert|0.72|m}} |
₹೦.೭೨ million (US$೮,೬೦೦) |
{{INRConvert|36|b}} |
₹೩೬ billion (US$೪೩೦ million) |
{{INRConvert|36|b|-2}} |
₹೩೬ billion (US$೪೦೦ million) |
{{INRConvert|80|b|lk=b}} |
₹೮೦ billion (US$೯೬೦ million) |
{{INRConvert|32|t|lk=r}} |
₹೩೨ trillion (US$೩೮೦ billion) |
{{INRConvert|40000|c|lk=on}} |
₹೪೦,೦೦೦ crore (US$೪.೮ billion) |
{{INRConvert|40000|c|0}} |
₹೪೦,೦೦೦ crore (US$೫ billion) |
{{INRConvert|19|k}} |
₹೧೯,೦೦೦ (US$೨೩೦) |
{{INRConvert|53|m|0}} |
₹೫೩ million (US$೬,೩೫,೦೪೦) |
{{INRConvert|123|k|year=1990}} |
₹೧,೨೩,೦೦೦ (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or US$ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding in 2023) |
{{INRConvert|319|to=GBP}} |
₹೩೧೯ (£೩.೩0) |
{{INRConvert|753|m|year=2000|to=USD EUR}} |
₹೭೫೩ million (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding, US$ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or €ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding in 2023) |
{{INRConvert|324|c|year=2000|to=EUR|mode=historical}} |
₹೩೨೪ crore (€78.08 million) |
{{INRConvert|240|c|year=2001}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or US$ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding in 2023) |
{{INRConvert|240|c|0|year=2001}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or ಅಬಿವ್ಯಕ್ತಿ ದೋಸೊ: ಅನಿರೀಕ್ಷಿತೊ ಒಪರೇಟರ್ <. in 2023) |
{{INRConvert|240|c|lk=on|year=2001}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or US$ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding in 2023) |
{{INRConvert|240|c|0|lk=on|year=2001}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or ಅಬಿವ್ಯಕ್ತಿ ದೋಸೊ: ಅನಿರೀಕ್ಷಿತೊ ಒಪರೇಟರ್ <. in 2023) |
{{INRConvert|240|c|year=2001|0}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or ಅಬಿವ್ಯಕ್ತಿ ದೋಸೊ: ಅನಿರೀಕ್ಷಿತೊ ಒಪರೇಟರ್ <. in 2023) |
{{INRConvert|240|year=2001|c}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or US$ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding in 2023) |
{{INRConvert|240|year=2001|c|0}} |
₹೨೪೦ crore (equivalent to ₹ಟೆಂಪ್ಲೇಟ್:HidFormatting error: invalid input when rounding or ಅಬಿವ್ಯಕ್ತಿ ದೋಸೊ: ಅನಿರೀಕ್ಷಿತೊ ಒಪರೇಟರ್ <. in 2023) |
Precautions
[ಸಂಪೊಲಿಪುಲೆ]Using the |year=
causes the calling page's Highest expansion depth to be very high, typically at least 33. The limit is 40. Take particular care using |year=
when calling this template from within other templates, as this will further increase the template expansion depth of Wikipedia pages that call templates that call this one.
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 to.
See also
[ಸಂಪೊಲಿಪುಲೆ]- {{To USD}} leverages {{INRConvert/HistoricalRate}}.
Summary
[ಸಂಪೊಲಿಪುಲೆ]Template calculates a value of Indian Rupees, which you can enter, to another currency and then presents the results.
ಪರಿಮಿತಿ | ಇವರೊ | ಇದೊ | ಸ್ತಿತಿ | |
---|---|---|---|---|
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).
| ಸಂಕ್ಯೆ | ಬೋಡಾಯಿನ |
Currency formatting | 2 | Use this to represent larger numbers such as crores, billions et al.
| ನೂಲು | ತೋಜ್ಪಾಯಿನ |
Linking | lk | Gives the option to whether link currency (Rupees, Paise) and/or number names (crores, lakhs)
| ನೂಲು | ತೋಜ್ಪಾಯಿನ |
Year | year | This parameter allows for inflation. Historic rupee values will be inflated to current values then converted.
| ಸಂಕ್ಯೆ | ತೋಜ್ಪಾಯಿನ |
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.
| ನೂಲು | ಐಚಿಕೊ |
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.
| ಸಂಕ್ಯೆ | ಐಚಿಕೊ |
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).
| ನೂಲು | ಐಚಿಕೊ |