வார்ப்புரு:INRConvert/doc
{{Documentation subpage}}
 {{intricate template}}
 &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&gt;
 &lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&gt;
 __NOTOC__
 
 ==Purpose==
 The purpose of this template is to automatically convert and format [[foreign currency|currency]] from [[Indian Rupee]]s to other currencies ([[United States Dollar]]s by default) applying adjustment for inflation where appropriate. Rates of exchange and inflation must be [[#Updating|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==
 &lt;code&gt;&lt;nowiki&gt;{{INRConvert|rupee_value|currency_formatting|rounding  digits|lk=|to=|year=}}&lt;/nowiki&gt;&lt;/code&gt;
 
 == Parameters ==
 A description of the template's parameters are listed below.  
 
 {|class=&quot;wikitable&quot;
 |style=&quot;background-color: #A52A2A; font-weight: bolder; color: #FFF5EE;&quot; |Field name ||style=&quot;background-color: #A52A2A; font-weight: bolder; color: #FFF5EE;&quot;| Usage ||style=&quot;background-color: #A52A2A; font-weight: bolder; color: #FFF5EE;&quot; | Description
 
 |-
 |&lt;code&gt;'''rupee_value'''&lt;/code&gt; ||mandatory||The value, in [[Indian Rupee]]s, that needs to be converted.  The template will not accept pre-formatted values (i.e. 1,234).
 |-
 |&lt;code&gt;'''currency_formatting'''&lt;/code&gt;||optional ||Used to represent larger numbers. Available options are as follows.
 * &lt;code&gt;k&lt;/code&gt; &amp;ndash; to represent thousand(s)
 * &lt;code&gt;m&lt;/code&gt; &amp;ndash; to represent million(s)
 * &lt;code&gt;b&lt;/code&gt; &amp;ndash; to represent billion(s)
 * &lt;code&gt;t&lt;/code&gt; &amp;ndash; to represent trillion(s)
 * &lt;code&gt;l&lt;/code&gt; &amp;ndash; to represent lakh(s)
 * &lt;code&gt;c&lt;/code&gt; &amp;ndash; to represent crore(s)
 * &lt;code&gt;lc&lt;/code&gt; &amp;ndash; to represent lakh crore(s)
 
 * '''Brackets in the sense may be singular (or) plural'''.
 
 |-
 |&lt;code&gt;'''rounding_digits'''&lt;/code&gt; ||optional ||Used to round [[significant digit]]s.  Negative values (-2, -3) can be used to round values to the nearest hundred or thousand, etc.  A value of &quot;0&quot; will drop paise or cent values from the converted number.  By default the conversion will be rounded to two significant figures.&lt;br /&gt;Refer to the [[Template:INRConvert#Examples|Examples section]] below for more examples.
 |-
 |&lt;code&gt;'''lk'''&lt;/code&gt; ||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 &quot;off&quot; (i.e. it is set not to link).  Available options are as follows.
 * &lt;code&gt;on&lt;/code&gt; &amp;ndash; to link &quot;rupee&quot;/&quot;paise&quot; and &quot;lakh&quot;/&quot;crore&quot;/&quot;billion&quot;
 * &lt;code&gt;r&lt;/code&gt; &amp;ndash; to link &quot;rupee&quot;/&quot;paise&quot;
 * &lt;code&gt;b&lt;/code&gt; &amp;ndash; to link &quot;billion&quot;
 * &lt;code&gt;t&lt;/code&gt; &amp;ndash; to link &quot;trillion&quot;
 * &lt;code&gt;l&lt;/code&gt; &amp;ndash; to link &quot;lakh&quot;
 * &lt;code&gt;c&lt;/code&gt; &amp;ndash; to link &quot;crore&quot;
 * &lt;code&gt;lc&lt;/code&gt; &amp;ndash; to link &quot;lakh&quot; and &quot;crore&quot;
 On by default.
 |-
 |&lt;code&gt;'''year'''&lt;/code&gt; ||optional ||This parameter allows for inflation.  Historic rupee values will be inflated to current values then converted.  
 |-
 |&lt;code&gt;'''to'''&lt;/code&gt; ||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.
 |-
 |&lt;code&gt;'''mode'''&lt;/code&gt; ||optional ||This parameter controls the output mode. Setting it to blank or omitting it results in the default mode. Setting it to &lt;code&gt;historical&lt;/code&gt; allows conversion using historical exchange rates. The &lt;code&gt;year&lt;/code&gt; parameter must be between 1970 and 2018 in historical mode.
 |}
 
 ==Examples==
 
 {|class=&quot;wikitable&quot;
 !INRConvert syntax || Results
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|1}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|1}} 
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|500}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|500}} 
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|0.05|lk=on}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|0.05|lk=on}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|0.01}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|0.01}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|0.86}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|0.86}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|30|m}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|30|m}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|0.72|m}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|0.72|m}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|36|b}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|36|b}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|36|b|-2}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|36|b|-2}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|80|b|lk=b}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|80|b|lk=b}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|32|t|lk=r}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|32|t|lk=r}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|400|c|lk=on}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|400|c|lk=on}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|400|c|0}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|400|c|0}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|19|k}}&lt;/nowiki&gt;&lt;/code&gt; ||  {{INRConvert|19|k}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|53|m|0}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|53|m|0}} 
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|123|k|year=1990}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|123|k|year=1990}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|319|to=GBP}}&lt;/nowiki&gt;&lt;/code&gt; ||  {{INRConvert|319|to=GBP}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|753|m|year=2000|to=USD EUR}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|753|m|year=2000|to=USD EUR}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{INRConvert|324|c|year=2000|to=EUR|mode=historical}}&lt;/nowiki&gt;&lt;/code&gt; || {{INRConvert|324|c|year=2000|to=EUR|mode=historical}}
 |}
 
 ==Updating==
 It is important to keep the figures used in these conversions up to date.  Data for current exchange rates is kept at {{tl|INRConvert/CurrentRate}}. Data for historical exchange rates are kept at {{tl|INRConvert/HistoricalRate}}. Data for the inflation rate is at {{tl|Inflation/IN/dataset}} (see ''[[Template:Inflation#Developer documentation]]'' for details). Feel free to update these if you are able.
 
 &lt;templatedata&gt;
 {
 	&quot;params&quot;: {
 		&quot;1&quot;: {
 			&quot;label&quot;: &quot;Rupee value&quot;,
 			&quot;description&quot;: &quot;The value, in Indian Rupees, that needs to be converted.  The template will not accept pre-formatted values (i.e. 1,234).&quot;,
 			&quot;example&quot;: &quot;500000000&quot;,
 			&quot;required&quot;: true
 		},
 		&quot;2&quot;: {
 			&quot;label&quot;: &quot;Currency formatting&quot;,
 			&quot;description&quot;: &quot;Use this to represent larger numbers such as crores, billions et al.&quot;,
 			&quot;example&quot;: &quot;c, lc, b, m, k&quot;,
 			&quot;suggested&quot;: true
 		},
 		&quot;3&quot;: {
 			&quot;label&quot;: &quot;Rounding digits&quot;,
 			&quot;description&quot;: &quot;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 \&quot;0\&quot; will drop paise or cent values from the converted number. By default the conversion will be rounded to two significant figures.&quot;,
 			&quot;example&quot;: &quot;0&quot;
 		},
 		&quot;lk&quot;: {
 			&quot;label&quot;: &quot;Linking&quot;,
 			&quot;description&quot;: &quot;Gives option to whether link currency (Rupees, Paise) and/or number names (crores, lakhs)&quot;,
 			&quot;suggested&quot;: true,
 			&quot;example&quot;: &quot;on, off, l, c, lc, b, t&quot;
 		},
 		&quot;year&quot;: {
 			&quot;description&quot;: &quot;This parameter allows for inflation. Historic rupee values will be inflated to current values then converted.&quot;,
 			&quot;example&quot;: &quot;2015&quot;,
 			&quot;label&quot;: &quot;Year&quot;,
 			&quot;suggested&quot;: true
 		},
 		&quot;to&quot;: {
 			&quot;description&quot;: &quot;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.&quot;,
 			&quot;example&quot;: &quot;USD EUR&quot;,
 			&quot;default&quot;: &quot;USD&quot;,
 			&quot;label&quot;: &quot;To&quot;
 		},
 		&quot;mode&quot;: {
 			&quot;description&quot;: &quot;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).&quot;,
 			&quot;example&quot;: &quot;historical&quot;,
 			&quot;default&quot;: &quot;(blank)&quot;,
 			&quot;label&quot;: &quot;Mode&quot;
 		}
 	},
 	&quot;paramOrder&quot;: [
 		&quot;1&quot;,
 		&quot;2&quot;,
 		&quot;lk&quot;,
 		&quot;year&quot;,
 		&quot;to&quot;,
 		&quot;3&quot;,
 		&quot;mode&quot;
 	],
 	&quot;description&quot;: &quot;Template calculates a value of Indian Rupees, which you can enter, to another currency and then presents the results.&quot;
 }
 &lt;/templatedata&gt;
 
 &lt;includeonly&gt;&lt;!--
 ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --&gt;
 [[Category:Currency conversion templates| ]]
 [[bn:টেমপ্লেট:INRConvert]]
 [[pt:Predefinição:INRConvert]]
 &lt;/includeonly&gt;