Template:NPRConvert

From HandWiki

Template:Nepalese rupee0 (US$0.00)


Template documentation[view] [edit] [history] [purge]


Purpose

The purpose of this template is to automatically convert and format currency from Nepalese 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

{{ NPRConvert|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 Nepalese 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)
  • l – to represent lakh(s)
  • c – to represent crore(s)
  • lc – to represent lakh crore(s)
  • m – to represent million(s)
  • b – to represent billion(s)
  • t – to represent trillion(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 Paisa 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 Paisa) 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"/"Paisa" and "lakh"/"crore"/"billion"
  • r – to link "rupee"/"Paisa"
  • b – to link "billion"
  • t – to link "trillion"
  • l – to link "lakh"
  • c – to link "crore"
  • lc – to link "lakh" and "crore"

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

NPRConvert syntax Results
{{ NPRConvert|1}} Template:Nepalese rupee1 (0.88¢ US)
{{ NPRConvert|500}} Template:Nepalese rupee500 (US$4.40)
{{ NPRConvert|0.05|lk=on}} 5 paise (0.044¢ US)
{{ NPRConvert|0.01}} 1 paisa (US$0)
{{ NPRConvert|0.86}} 86 paise (0.75¢ US)
{{ NPRConvert|30|m}} Template:Nepalese rupee30 million (US$260,000)
{{ NPRConvert|0.72|m}} Template:Nepalese rupee0.72 million (US$6,300)
{{ NPRConvert|36|b}} Template:Nepalese rupee36 billion (US$320 million)
{{ NPRConvert|36|b|-2}} Template:Nepalese rupee36 billion (US$300 million)
{{ NPRConvert|80|b|lk=b}} Template:Nepalese rupee80 billion (US$700 million)
{{ NPRConvert|32|t|lk=r}} Template:Nepalese rupee32 trillion (US$280 billion)
{{ NPRConvert|400|c|lk=on}} Template:Nepalese rupee400 crore (US$35 million)
{{ NPRConvert|400|c|0}} Template:Nepalese rupee400 crore (US$35 million)
{{ NPRConvert|19|k}} Template:Nepalese rupee19,000 (US$170)
{{ NPRConvert|53|m|0}} Template:Nepalese rupee53 million (US$464,413)
{{ NPRConvert|123|k|year=1990}} Template:Nepalese rupee123,000 (equivalent to 1.00 or 1.4¢ US in 2019)
{{ NPRConvert|319|to=GBP}} Template:Nepalese rupee319 (Template:INRConvert/GBP)
{{ NPRConvert|753|m|year=2000|to=USD EUR}} Template:Nepalese rupee753 million (equivalent to 0.00, US$0.00 or Template:INRConvert/EUR in 2019)
{{ NPRConvert|324|c|year=2000|to=EUR|mode=historical}} Template:Nepalese rupee324 crore (Template:INRConvert/HistoricalRate/Formatted)

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.


Summary

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

Template parameters

ParameterDescriptionTypeStatus
Rupee value1

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

Example
500000000
Unknownrequired
Currency formatting2

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

Example
c, lc, b, m, k
Unknownsuggested
Linkinglk

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

Example
on, off, l, c, lc, b, t
Unknownsuggested
Yearyear

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

Example
2015
Unknownsuggested
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.

Default
USD
Example
USD EUR
Unknownoptional
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 Paisa or cent values from the converted number. By default the conversion will be rounded to two significant figures.

Example
0
Unknownoptional
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).

Default
(blank)
Example
historical
Unknownoptional

Nepali Currency Conversion is pegged [1] with Indian Rupee so, calculation can be made based with Indian Rupees