Andoza:INRConvert

Vikipediya, ochiq ensiklopediya

Andoza:Indian Rupee0 ({{INRConvert/Expression error: Unrecognized punctuation character "[".|0|0||USD|year={{{year}}}}})

Documentation icon Andoza hujjati[koʻrib chiqish] [tahrirlash] [tarix] [yangilash]

Andoza:Intricate template


Purpose[manbasini tahrirlash]

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[manbasini tahrirlash]

{{INRConvert|rupee_value|currency_formatting|rounding digits|lk=|to=|year=}}

Parameters[manbasini tahrirlash]

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.
  • k – to represent thousand(s)
  • m – to represent million(s)
  • b – to represent billion(s)
  • t – to represent trillion(s)
  • l – to represent lakh(s)
  • c – to represent crore(s)
  • lc – to represent lakh crore(s)
  • Brackets in the sense may be singular (or) plural.
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 – to link "rupee"/"paise" and "lakh"/"crore"/"billion"
  • r – to link "rupee"/"paise"
  • b – to link "billion"
  • t – to link "trillion"
  • l – to link "lakh"
  • c – to link "crore"
  • lc – to link "lakh" and "crore"
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[manbasini tahrirlash]

INRConvert syntax Results
{{INRConvert|1}} Andoza:Indian Rupee1 ({{INRConvert/Expression error: Unrecognized punctuation character "[".|1|0 year={{{year}}}}})
{{INRConvert|500}} Andoza:Indian Rupee500 ({{INRConvert/Expression error: Unrecognized punctuation character "[".|500|0 year={{{year}}}}})
{{INRConvert|0.05|lk=on}} 5 paise ({{INRConvert/Expression error: Unrecognized punctuation character "[".|0.05|0 year={{{year}}}}})
{{INRConvert|0.01}} 0.01|0 year={{{year}}}}})
{{INRConvert|0.86}} 0.86|0 year={{{year}}}}})
{{INRConvert|30|m}} Andoza:Indian Rupee30 million ({{INRConvert/Expression error: Unrecognized punctuation character "[".|30|6 year={{{year}}}}})
{{INRConvert|0.72|m}} Andoza:Indian Rupee0,72 million ({{INRConvert/Expression error: Unrecognized punctuation character "[".|0.72|6 year={{{year}}}}})
{{INRConvert|36|b}} Andoza:Indian Rupee36 billion ({{INRConvert/Expression error: Unrecognized punctuation character "[".|36|9 year={{{year}}}}})
{{INRConvert|36|b|-2}} Andoza:Indian Rupee36 billion ({{INRConvert/Expression error: Unrecognized punctuation character "[".|36|9|-2|USD|year={{{year}}}}})
{{INRConvert|80|b|lk=b}} Andoza:Indian Rupee80 billion ({{INRConvert/Expression error: Unrecognized punctuation character "[".|80|9 year={{{year}}}}})
{{INRConvert|32|t|lk=r}} Andoza:Indian Rupee32 trillion ({{INRConvert/Expression error: Unrecognized punctuation character "[".|32|12 year={{{year}}}}})
{{INRConvert|40000|c|lk=on}} Andoza:Indian Rupee40 000 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|40000|7 year={{{year}}}}})
{{INRConvert|40000|c|0}} Andoza:Indian Rupee40 000 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|40000|7|0|USD|year={{{year}}}}})
{{INRConvert|19|k}} Andoza:Indian Rupee19 000 ({{INRConvert/Expression error: Unrecognized punctuation character "[".|19|3 year={{{year}}}}})
{{INRConvert|53|m|0}} Andoza:Indian Rupee53 million ({{INRConvert/Expression error: Unrecognized punctuation character "[".|53|6|0|USD|year={{{year}}}}})
{{INRConvert|123|k|year=1990}} Andoza:Indian Rupee123 000 ({{INRConvert/Expression error: Unrecognized punctuation character "[".|123|3 year=1990}})
{{INRConvert|319|to=GBP}} Andoza:Indian Rupee319 ({{INRConvert/Expression error: Unrecognized punctuation character "[".|319|0 year={{{year}}}}})
{{INRConvert|753|m|year=2000|to=USD EUR}} Andoza:Indian Rupee753 million ({{INRConvert/Expression error: Unrecognized punctuation character "[".|753|6 year=2000}})
{{INRConvert|324|c|year=2000|to=EUR|mode=historical}} Andoza:Indian Rupee324 crore (Andoza:INRConvert/HistoricalRate/Formatted)
{{INRConvert|240|c|year=2001}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7 year=2001}})
{{INRConvert|240|c|0|year=2001}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7|0|USD|year=2001}})
{{INRConvert|240|c|lk=on|year=2001}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7 year=2001}})
{{INRConvert|240|c|0|lk=on|year=2001}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7|0|USD|year=2001}})
{{INRConvert|240|c|year=2001|0}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7|0|USD|year=2001}})
{{INRConvert|240|year=2001|c}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7 year=2001}})
{{INRConvert|240|year=2001|c|0}} Andoza:Indian Rupee240 crore ({{INRConvert/Expression error: Unrecognized punctuation character "[".|240|7|0|USD|year=2001}})

Precautions[manbasini tahrirlash]

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[manbasini tahrirlash]

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[manbasini tahrirlash]

Summary[manbasini tahrirlash]

Template calculates a value of Indian Rupees, which you can enter, to another currency and then presents the results.

Andoza parametrlari[„TemplateData“ni boshqarish]

This template prefers inline formatting of parameters.

ParametrTavsifTuriStatus
Rupee value1

The value, in Indian Rupees, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).

Namuna
500000000
Sonrequired
Currency formatting2

Use this to represent larger numbers such as crores, billions et al.

Taklif etilgan qiymatlar
b c k l lc m t
Namuna
c, lc, b, m, k
Stringsuggested
Linkinglk

Gives the option to whether link currency (Rupees, Paise) and/or number names (crores, lakhs)

Taklif etilgan qiymatlar
on off l c lc b t
Namuna
on, off, l, c, lc, b, t (Default: off)
Stringsuggested
Yearyear

This parameter allows for inflation. Historic rupee values will be inflated to current values then converted.

Namuna
2015
Sonsuggested
Toto

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.

Sukut boʻyicha
USD
Namuna
USD, EUR
Stringixtiyoriy
Rounding digits3

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.

Sukut boʻyicha
2
Namuna
0
Sonixtiyoriy
Modemode

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).

Sukut boʻyicha
(blank)
Namuna
historical
Stringixtiyoriy