फलकम्:INRConvert/doc
This is a documentation subpage for फलकम्:Terminate sentence It may contain usage information, categories and other content that is not part of the original फलकम् page. |
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|nolink=(yes/no)|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 (ie. 1,234) |
currency_formatting |
optional | Used to represent larger numbers. Available options include :
|
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. |
nolink |
optional | This parameter gives you the option of not internally linking currency names (Rupees and paise) and number names (lakh and crore). By default, the parameter is set to "no" (ie. it is set to link). Currency and number names will be displayed with no links when the parameter is set to "yes". Per WP:OVERLINK the currencies converted to are not linked. |
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). The US, Canadian, NZ and Australian dollars, the euro, the UK pound and the Bangladeshi taka are supported. |
Examples
सम्पादयतुINRConvert syntax | Results |
---|---|
{{INRConvert|1}} | ₹१ (US$०.०१) |
{{INRConvert|500}} | ₹५०० (US$७.४३) |
{{INRConvert|0.05}} | ५ पैसे (less than 1¢) |
{{INRConvert|0.01}} | १ पैसे (less than 1¢) |
{{INRConvert|0.86}} | ८६ पैसे (१¢) |
{{INRConvert|30|m}} | ₹30 मिलियन् (US$४,४५,८००) |
{{INRConvert|0.72|m}} | ₹0.72 मिलियन् (US$१०,६९९.२) |
{{INRConvert|36|b}} | ₹36 बिलियन् (US$५३४.९६ मिलियन्) |
{{INRConvert|36|b|-2}} | ₹36 बिलियन् (US$५०० मिलियन्) |
{{INRConvert|80|B}} | ₹0.80 बिलियन् (US$११.८९ मिलियन्) |
{{INRConvert|32|t}} | ₹32 trillion (US$४७५.५२ बिलियन्) |
{{INRConvert|400|c}} | ₹४०० कोटिः (US$५९.४४ मिलियन्) |
{{INRConvert|400|c|0}} | ₹४०० कोटिः (US$५९ मिलियन्) |
{{INRConvert|19|k}} | ₹१९,००० (US$२८२.३४) |
{{INRConvert|53|m|0|nolink=yes}} | फलकम्:INRConvert/nolinks |
{{INRConvert|123|k|year=1990}} | ₹१,२३,००० (US$१,८२७.७८) |
{{INRConvert|319|to=GBP}} | ₹३१९ (US$४.७४) |
{{INRConvert|753|m|year=2000|to=USD EUR}} | ₹७५३ मिलियन्् (US$ ११.१९ मिलियन््) |
Updating
सम्पादयतुIt is important to keep the figures used in these conversions up to date. Data for the exchange rates is kept at {{INRConvert/CurrentRate}}. Data for the inflation rate is at {{Inflation/IN/dataset}}. Feel free to up date these if you are able.