قالب:JPYConvert


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


Purpose

The purpose of this template is to automatically convert and format Japanese yen 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.

The possibility of converting to other target currencies in the future is left open, hence the general name of this template.

Usage

{{JPYConvert|value|currency_units|year=|to=|r=|force=|lk=|exact=|showdate=|ref=|mode=|convert=}}

Parameters

A description of the template's parameters are listed below.

Field name Usage Example Description
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.

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 by {{ToUSD}}. 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.
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.

Examples

JPYConvert syntax Results
{{JPYConvert|1|ct|lk=on}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|10|ct}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|ct|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|10|ct|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|ct|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|10|ct|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|1|ct|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|10|ct|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|ct|year=2002|mode=historical}} ¥قالب:FXConvert/Wordify (2002) (US$قالب:FXConvert/Wordify)
{{JPYConvert|10|ct|year=2002|mode=historical}} ¥قالب:FXConvert/Wordify (2002) (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|ct|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|10|ct|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|ct|year=2002|exact=on}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|10|ct|year=2002|exact=on}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|ct|lk=on|convert=no}} ¥قالب:FXConvert/Wordify
{{JPYConvert|10|ct|convert=no}} ¥قالب:FXConvert/Wordify
{{JPYConvert|1|ct|exact=source|convert=no}} ¥قالب:FXConvert/Formatnum
{{JPYConvert|10|ct|exact=source|convert=no}} ¥قالب:FXConvert/Formatnum
{{JPYConvert|1|ct|exact=on|convert=no}} ¥قالب:FXConvert/Formatnum
{{JPYConvert|10|ct|exact=on|convert=no}} ¥قالب:FXConvert/Formatnum
{{JPYConvert|1|ct|year=2002|convert=no}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|10|ct|year=2002|convert=no}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|ct|year=2002|mode=historical|convert=no}} ¥قالب:FXConvert/Wordify (2002)
{{JPYConvert|10|ct|year=2002|mode=historical|convert=no}} ¥قالب:FXConvert/Wordify (2002)
{{JPYConvert|1|ct|year=2002|lk=on|convert=no}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|10|ct|year=2002|lk=on|convert=no}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|ct|year=2002|exact=on|convert=no}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|10|ct|year=2002|exact=on|convert=no}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|k}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|m}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|b|lk=on}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|t|lk=on}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|k|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|m|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|b|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|t|exact=source}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Wordify)
{{JPYConvert|1|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|1|k|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|1|m|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|1|b|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|1|t|exact=on}} ¥قالب:FXConvert/Formatnum (US$قالب:FXConvert/Formatnum)
{{JPYConvert|1|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|k|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|m|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|b|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|t|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|k|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|m|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|b|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|1|t|year=2002|lk=on}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.60}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|360}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|3600}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|360000}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|3600000}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|3.6|m}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|3650000}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|3.65|m}} ¥قالب:FXConvert/Wordify (US$قالب:FXConvert/Wordify)
{{JPYConvert|3650000|year=1946}} ¥قالب:FXConvert/Wordify (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=1946}} ¥قالب:FXConvert/Wordify (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=1946|exact=source}} ¥قالب:FXConvert/Formatnum (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=1946|exact=source}} ¥قالب:FXConvert/Formatnum (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=1946|force=yes}} ¥قالب:FXConvert/Wordify (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=1946|force=yes}} ¥قالب:FXConvert/Wordify (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=1946|force=yes|exact=on}} ¥قالب:FXConvert/Formatnum (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=1946|force=yes|exact=on}} ¥قالب:FXConvert/Formatnum (1946) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=2002}} ¥قالب:FXConvert/Wordify (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=2002|exact=on}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=2002|exact=on}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=2002|exact=source}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=2002|exact=source}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3650000|year=2002|exact=on}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3.65|m|year=2002|exact=on}} ¥قالب:FXConvert/Formatnum (2002) قالب:FXConvert/Equivalent[1]
{{JPYConvert|3600000|year=1962|ref=<ref name="qv">something1</ref>}} ¥قالب:FXConvert/Wordify (1962)[2] قالب:FXConvert/Equivalent[1]
{{JPYConvert|3600000|year=1962|ref=<ref name="qv">something1</ref><ref>something2</ref>}} ¥قالب:FXConvert/Wordify (1962)[2][3] قالب:FXConvert/Equivalent[1]
{{JPYConvert|3600000|year=2011|to=EUR|ref=<ref name="qv">something1</ref>}} ¥قالب:FXConvert/Wordify (2011)[2] قالب:FXConvert/Equivalent[1]
{{JPYConvert|3600000|year=2011|to=EUR|showdate=no|ref=<ref name="qv">something1</ref>}} ¥قالب:FXConvert/Wordify[2] قالب:FXConvert/Equivalent[1]
  1. ^ أ ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن هـ و ي أأ أب أت أث أج أح أخ أد أذ أر أز أس أش أص 1868 to 1938: Williamson J., Nominal Wage, Cost of Living, Real Wage and Land Rent Data for Japan 1831-1938, 1939 to 1945: Bank of Japan Historical Statistics Afterwards, Japanese Historical Consumer Price Index numbers based on data available from the Japanese Statistics Bureau. Japan Historical Consumer Price Index (CPI) – 1970 to 2014 Retrieved 30 July 2014. For between 1946 and 1970, from "昭和戦後史". Retrieved 2015-01-24.
  2. ^ أ ب ت ث something1
  3. ^ something2

See also

  • {{FXConvert}}: Inflates and converts a given currency to US dollars or Euro. It is used by {{JPYConvert}}.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

JPYConvert

Template calculates a value of Japanese yen, which you can enter, to US dollars and then presents the results.

وسائط القالب

وسيطوصفنوعحالة
Value1

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

مثال
500000000
رقممطلوب
Currency units2

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

مثال
c, lc, b, m, k, cr, p, pa, po, ba
سطرمقترح
Linkinglk

Gives option to whether link currency names (paise, etc.) or number names (crores, lakhs, billions, trillions)

مثال
on, off, source, original, inflated, result, converted, source-converted
سطرمقترح
Yearyear

This parameter allows for inflation. Historic values will be inflated to the most current values available then converted.

مثال
2015
رقممقترح
Toto

This parameter allows for conversion to various different currencies. The USD (default) and the euro are currently supported.

غيابي
USD
مثال
EUR
غير معروفاختياري
Rounding digitsr

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.

مثال
0
رقماختياري
Forceforce

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

مثال
yes
سطراختياري
Exactexact

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.

مثال
source, on
سطراختياري
Show dateshowdate

This allows to disable displaying the original year.

مثال
no
سطراختياري
Referencesref

This allows displaying one or more references next to the original value. Each one must consist of a ref wikitext element.

مثال
<ref>some wikitext ref</ref>
محتوىمقترح
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.

غيابي
(blank)
مثال
historical
سطراختياري
Convertconvert

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.

غيابي
(blank)
مثال
no
سطراختياري