The purpose of this template is to automatically convert and format currency applying adjustment for inflation where appropriate. Rates of exchange and inflation must be manually copied by editors in the supporting templates therefore this 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.
The default target currency (USD at present) may change in the future. Currently, only the Euro is also supported.
A description of the template's parameters are listed below.
Field name
Usage
Example
Description
country_code
mandatory
GBR
The country code of the currency to be converted, e.g. DEU (Germany, Euro since the year 2000).
value
mandatory
10000.01
The value, in the country_code currency, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
currency_units
optional
m
Used to represent smaller or larger numbers. Available options are as follows.
ct– to represent cent(s)
p– to represent penny (pence)
pa– to represent paisa (paise) (generalized to mean cents)
po– to represent poysha (generalized to mean cents)
ba– to represent baisa(s) (generalized to mean 1/1000)
k– to represent thousand(s)
m– to represent million(s)
b– to represent short scale billion(s)
t– to represent short scale 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.
The Indian units can be applied to any currency.
cur
optional
cur=FRF
This is an optional parameter. It allows to select the currency for the country. Currently only supported for the Euro and the currencies that have been immediately replaced by the Euro.
cursign
optional
cursign=[[£]]
This provides a currency sign for the original and inflated (without conversion) values. If the argument is not present they will be shown without one.
infsign
optional
infsign=£
This provides a currency sign for the inflated (without conversion) value. If the argument is not present, cursign will be looked for.
lk
optional
lk=on
This parameter gives you the option of internally linking currency names (paise, which is generalized here to mean cents in the source currency) and/or number names (billion, trillion, lakh, 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 all units
source– to link the source value
original– to link the values in the original currency
inflated– to link the inflated value in the original currency
result– to link the inflated and converted vales
converted– to link the converted value
source-converted– to link the source and converted values
year
optional
year=2002
This parameter allows entering values from previous years. The year will be displayed and historic values will be inflated to the latest year available in {{Inflation}} if index is also provided then converted. If no index name is present, the conversion will be attempted for the year indicated (but see force). If year is not provided, just a conversion will be performed at the most current rate available.
index
optional
index=UK-GDP
This parameter allows for inflation. Historic values will be inflated to the latest year available in {{Inflation}} then converted.
to
optional
to=EUR
This parameter allows for conversion to various different currencies. Currently, the USD (default) and the euro are supported.
r
optional
r=3
Sets the digits to which the results must be rounded. A negative value indicates rounding to an upper significant digit, and a positive value indicates a fractional digit including trailing zeros. Defaults to 2.
force
optional
force=yes
This parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value is yes.
exact
optional
exact=source
This provides some control over formatting. source requests to display the input value normally (in American fashion) after applying the units. on does this for both the input and result values. Otherwise all values will be displayed as per {{Format price}}.
showdate
optional
showdate=no
This allows to disable displaying the original year.
ref
optional
ref=<ref>some wikitext ref</ref>
This allows displaying one or more references next to the original value. Each one must consist of a ref wikitext element.
mode
optional
mode=historical
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.
convert
optional
convert=no
This parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it to no disables it.
onlytarget
optional
onlytarget=yes
When set, the 'equivalent to' text will only show the conversion in the target currency instead of in both the source and target currencies.
{{Inflation}}: Calculates a value in a given country in a given year based on an amount of currency in the same country in another year. It is used by {{FXConvert}}.
{{To USD}}: Converts a given currency to US dollars using exchange rates last updated (as of February 2021) in 2021. It is used by {{FXConvert}}.
Template calculates a value of a currency, which you can enter, to another currency and then presents the results.
Parameter templat
Parameter
Keterangan
Jenis
Status
country code
1country
ISO 3166-1 alpha-3 country code of the currency to be converted, e.g. DEU (Germany, Euro since the year 2000).
Contoh
GBR
Baris
wajib diisi
Value
2
The value, in the source, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
Contoh
500000000
Angka
wajib diisi
Currency units
3
Use this to represent larger numbers such as crores, billions et al.
Contoh
c, lc, b, m, k, cr, p, pa, po, ba
Baris
disarankan
Currency code
cur
It allows to select the currency for the country. Currently only supported for the Euro and the currencies that have been immediately replaced by the Euro.
Contoh
FRF, EUR
Baris
opsional
Currency sign
cursign
This provides a currency sign for the original and inflated (without conversion) values. If the argument is not present they will be shown without one.
Contoh
[[£]]
Isi
disarankan
Inflated sign
infsign
This provides a currency sign for the inflated (without conversion) value. If the argument is not present, cursign will be looked for.
Contoh
£
Isi
opsional
Linking
lk
Gives option to whether link currency names (paise, etc.) or number names (crores, lakhs, billions, trillions)
Contoh
on, off, source, original, inflated, result, converted, source-converted
Baris
disarankan
Year
year
This parameter allows for inflation. Historic values will be inflated to the most current values available then converted.
Contoh
2015
Angka
disarankan
Index
index
This parameter allows for inflation. Historic values will be inflated to the latest year available in Inflation then converted.
Contoh
UK-GDP
Baris
opsional
To
to
This parameter allows for conversion to various different currencies. The USD (default) and the euro are currently supported.
Bawaan
USD
Contoh
EUR
Tak dikenal
opsional
Rounding digits
r
Used to round significant digits. 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.
Contoh
0
Angka
opsional
Force
force
This parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value is "yes".
Contoh
yes
Baris
opsional
Exact
exact
This provides some control over formatting. "source" requests to display the input value normally (in American fashion) after applying the units. "on" does this for both the input and result values. Otherwise all values will be displayed as per Format price.
Contoh
source, on
Baris
opsional
Show date
showdate
This allows to disable displaying the original year.
Contoh
no
Baris
opsional
References
ref
This allows displaying one or more references next to the original value. Each one must consist of a ref wikitext element.
Contoh
<ref>some wikitext ref</ref>
Isi
disarankan
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.
Bawaan
(blank)
Contoh
historical
Baris
opsional
Convert
convert
This parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it to <code>no</code> disables it.