Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:KRWConvert

From Wikipedia, the free encyclopedia


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


Purpose

[edit]

The purpose of this template is to automatically convert and formatKorean won applying adjustment for inflation where appropriate. Rates of exchange and inflation must bemanually 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

[edit]

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

Parameters

[edit]

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

Field nameUsageExampleDescription
valuemandatory10000.01The value, in the country_code currency, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
currency_unitsoptionalmUsed 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.

lkoptionallk=onThis 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
yearoptionalyear=2002This 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}} ifindex is also provided then converted by{{ToUSD}}. If no index name is present, the conversion will be attempted for the year indicated (but seeforce). Ifyear is not provided, just a conversion will be performed at the most current rate available.
tooptionalto=EURThis parameter allows for conversion to various different currencies. Currently, the USD (default) and the euro are supported.
roptionalr=3Sets the digits to which the results must be rounded. A negative value indicates rounding to an upper significant digit, and a positive value indicates afractional digit includingtrailing zeros. Defaults to2.
forceoptionalforce=yesThis parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value isyes.
exactoptionalexact=sourceThis 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}}.
showdateoptionalshowdate=noThis allows to disable displaying the original year.
refoptionalref=<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.
modeoptionalmode=historicalThis parameter controls the output mode. Setting it to blank or omitting it results in the default mode. Setting it tohistorical allows conversion using historical exchange rates.
convertoptionalconvert=noThis parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it tono disables it.

Examples

[edit]
KRWConvert syntaxResults
{{KRWConvert|1|ct|lk=on}}0.01 (US$0)
{{KRWConvert|10|ct}}0.1 (US$0)
{{KRWConvert|1|ct|exact=source}}0.01 (US$0)
{{KRWConvert|10|ct|exact=source}}0.1 (US$0)
{{KRWConvert|1|ct|exact=on}}0.01 (US$0)
{{KRWConvert|10|ct|exact=on}}0.1 (US$0)
{{KRWConvert|1|ct|year=2002}}0.01 (2002) (equivalent to ₩0.01 or US$0 in 2017)[1]
{{KRWConvert|10|ct|year=2002}}0.1 (2002) (equivalent to ₩0.14 or US$0 in 2017)[1]
{{KRWConvert|1|ct|year=2002|mode=historical}}0.01 (2002) (US$0)
{{KRWConvert|10|ct|year=2002|mode=historical}}0.1 (2002) (US$0)
{{KRWConvert|1|ct|year=2002|lk=on}}0.01 (2002) (equivalent to ₩0.01 or US$0 in 2017)[1]
{{KRWConvert|10|ct|year=2002|lk=on}}0.1 (2002) (equivalent to ₩0.14 or US$0 in 2017)[1]
{{KRWConvert|1|ct|year=2002|exact=on}}0.01 (2002) (equivalent to ₩0.01 or US$0 in 2017)[1]
{{KRWConvert|10|ct|year=2002|exact=on}}0.1 (2002) (equivalent to ₩0.14 or US$0 in 2017)[1]
{{KRWConvert|1|ct|lk=on|convert=no}}0.01
{{KRWConvert|10|ct|convert=no}}0.1
{{KRWConvert|1|ct|exact=source|convert=no}}0.01
{{KRWConvert|10|ct|exact=source|convert=no}}0.1
{{KRWConvert|1|ct|exact=on|convert=no}}0.01
{{KRWConvert|10|ct|exact=on|convert=no}}0.1
{{KRWConvert|1|ct|year=2002|convert=no}}0.01 (2002) (equivalent to ₩0.01 in 2017)[1]
{{KRWConvert|10|ct|year=2002|convert=no}}0.1 (2002) (equivalent to ₩0.14 in 2017)[1]
{{KRWConvert|1|ct|year=2002|mode=historical|convert=no}}0.01 (2002)
{{KRWConvert|10|ct|year=2002|mode=historical|convert=no}}0.1 (2002)
{{KRWConvert|1|ct|year=2002|lk=on|convert=no}}0.01 (2002) (equivalent to ₩0.01 in 2017)[1]
{{KRWConvert|10|ct|year=2002|lk=on|convert=no}}0.1 (2002) (equivalent to ₩0.14 in 2017)[1]
{{KRWConvert|1|ct|year=2002|exact=on|convert=no}}0.01 (2002) (equivalent to ₩0.01 in 2017)[1]
{{KRWConvert|10|ct|year=2002|exact=on|convert=no}}0.1 (2002) (equivalent to ₩0.14 in 2017)[1]
{{KRWConvert|1}}1 (US$0)
{{KRWConvert|1|k}}1,000 (US$0.87)
{{KRWConvert|1|m}}1 million (US$874.16)
{{KRWConvert|1|b|lk=on}}1billion (US$874,164.08)
{{KRWConvert|1|t|lk=on}}1trillion (US$874.16 million)
{{KRWConvert|1|exact=source}}1 (US$0)
{{KRWConvert|1|k|exact=source}}1,000 (US$0.87)
{{KRWConvert|1|m|exact=source}}1,000,000 (US$874.16)
{{KRWConvert|1|b|exact=source}}1,000,000,000 (US$874,164.08)
{{KRWConvert|1|t|exact=source}}1,000,000,000,000 (US$874.16 million)
{{KRWConvert|1|exact=on}}1 (US$0)
{{KRWConvert|1|k|exact=on}}1,000 (US$0.87)
{{KRWConvert|1|m|exact=on}}1,000,000 (US$874.16)
{{KRWConvert|1|b|exact=on}}1,000,000,000 (US$874,164.08)
{{KRWConvert|1|t|exact=on}}1,000,000,000,000 (US$874,164,080.6)
{{KRWConvert|1|year=2002}}1 (2002) (equivalent to ₩1.45 or US$0 in 2017)[1]
{{KRWConvert|1|k|year=2002}}1,000 (2002) (equivalent to ₩1,445.65 or US$1.28 in 2017)[1]
{{KRWConvert|1|m|year=2002}}1 million (2002) (equivalent to ₩1.45 million or US$1,278.85 in 2017)[1]
{{KRWConvert|1|b|year=2002}}1 billion (2002) (equivalent to ₩1.45 billion or US$1.28 million in 2017)[1]
{{KRWConvert|1|t|year=2002}}1 trillion (2002) (equivalent to ₩1.45 trillion or US$1.28 billion in 2017)[1]
{{KRWConvert|1|year=2002|lk=on}}1 (2002) (equivalent to ₩1.45 or US$0 in 2017)[1]
{{KRWConvert|1|k|year=2002|lk=on}}1,000 (2002) (equivalent to ₩1,445.65 or US$1.28 in 2017)[1]
{{KRWConvert|1|m|year=2002|lk=on}}1 million (2002) (equivalent to ₩1.45 million or US$1,278.85 in 2017)[1]
{{KRWConvert|1|b|year=2002|lk=on}}1billion (2002) (equivalent to ₩1.45billion or US$1.28 million in 2017)[1]
{{KRWConvert|1|t|year=2002|lk=on}}1trillion (2002) (equivalent to ₩1.45trillion or US$1.28billion in 2017)[1]
{{KRWConvert|3.60}}3.6 (US$0)
{{KRWConvert|360}}360 (US$0.31)
{{KRWConvert|3600}}3,600 (US$3.15)
{{KRWConvert|360000}}360,000 (US$314.7)
{{KRWConvert|3600000}}3.6 million (US$3,146.99)
{{KRWConvert|3.6|m}}3.6 million (US$3,146.99)
{{KRWConvert|3650000}}3.65 million (US$3,190.7)
{{KRWConvert|3.65|m}}3.65 million (US$3,190.7)
{{KRWConvert|3650000|year=1951}}3.65 million (1951) (equivalent to ₩3.76 billion or US$3.32 million in 2017)[1]
{{KRWConvert|3.65|m|year=1951}}3.65 million (1951) (equivalent to ₩3.76 billion or US$3.32 million in 2017)[1]
{{KRWConvert|3650000|year=1951|exact=source}}3,650,000 (1951) (equivalent to ₩3.76 billion or US$3.32 million in 2017)[1]
{{KRWConvert|3.65|m|year=1951|exact=source}}3,650,000 (1951) (equivalent to ₩3.76 billion or US$3.32 million in 2017)[1]
{{KRWConvert|3650000|year=1951|force=yes}}3.65 million (1951) (equivalent to ₩3.76 billion or US$3.32 million in 2017)[1]
{{KRWConvert|3.65|m|year=1951|force=yes}}3.65 million (1951) (equivalent to ₩3.76 billion or US$3.32 million in 2017)[1]
{{KRWConvert|3650000|year=1951|force=yes|exact=on}}3,650,000 (1951) (equivalent to ₩3,756,945,000 or US$3,323,481.28 in 2017)[1]
{{KRWConvert|3.65|m|year=1951|force=yes|exact=on}}3,650,000 (1951) (equivalent to ₩3,756,945,000 or US$3,323,481.28 in 2017)[1]
{{KRWConvert|3650000|year=2002}}3.65 million (2002) (equivalent to ₩5.28 million or US$4,667.81 in 2017)[1]
{{KRWConvert|3.65|m|year=2002}}3.65 million (2002) (equivalent to ₩5.28 million or US$4,667.81 in 2017)[1]
{{KRWConvert|3650000|year=2002|exact=on}}3,650,000 (2002) (equivalent to ₩5,276,608.15 or US$4,667.81 in 2017)[1]
{{KRWConvert|3.65|m|year=2002|exact=on}}3,650,000 (2002) (equivalent to ₩5,276,608.15 or US$4,667.81 in 2017)[1]
{{KRWConvert|3650000|year=2002|exact=source}}3,650,000 (2002) (equivalent to ₩5.28 million or US$4,667.81 in 2017)[1]
{{KRWConvert|3.65|m|year=2002|exact=source}}3,650,000 (2002) (equivalent to ₩5.28 million or US$4,667.81 in 2017)[1]
{{KRWConvert|3650000|year=2002|exact=on}}3,650,000 (2002) (equivalent to ₩5,276,608.15 or US$4,667.81 in 2017)[1]
{{KRWConvert|3.65|m|year=2002|exact=on}}3,650,000 (2002) (equivalent to ₩5,276,608.15 or US$4,667.81 in 2017)[1]
{{KRWConvert|3600000|year=1962|ref=<ref name="qv">something1</ref>}}3.6 million (1962)[2] (equivalent to ₩217.97 million or US$192,820.83 in 2017)[1]
{{KRWConvert|3600000|year=1962|ref=<ref name="qv">something1</ref><ref>something2</ref>}}3.6 million (1962)[2][3] (equivalent to ₩217.97 million or US$192,820.83 in 2017)[1]
{{KRWConvert|3600000|year=2011|to=EUR|ref=<ref name="qv">something1</ref>}}3.6 million (2011)[2] (equivalent to ₩3.91 million or 3,064.73 in 2017)[1]
{{KRWConvert|3600000|year=2011|to=EUR|showdate=no|ref=<ref name="qv">something1</ref>}}3.6 million[2] (equivalent to ₩3.91 million or 3,064.73 in 2017)[1]
  1. ^abcdefghijklmnopqrstuvwxyzaaabacadaeafagahaiajakalamanaoap1906 to 1911:Williamson J. (1999),Nominal Wage, Cost of Living, Real Wage and Land Rent Data for Korea 1906-19391912 to 1939: Mizoguchi, T. (1972). "Consumer Prices and Real Wages in Taiwan and Korea Under Japanese Rule".Hitotsubashi Journal of Economics, 13(1), 40-56. Retrieved May 21, 2021. Afterwards, consumer price index fromStatistics Korea.Consumer Price Index by year. Retrieved 3 April 2018
  2. ^abcdsomething1
  3. ^something2

See also

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

TemplateData

[edit]
This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:KRWConvert in articles based on its TemplateData.

TemplateData for KRWConvert

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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Value1

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

Example
500000000
Numberrequired
Currency units2

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

Example
c, lc, b, m, k, cr, p, pa, po, ba
Linesuggested
Linkinglk

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

Example
on, off, source, original, inflated, result, converted, source-converted
Linesuggested
Yearyear

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

Example
2015
Numbersuggested
Toto

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

Default
USD
Example
EUR
Unknownoptional
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.

Example
0
Numberoptional
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".

Example
yes
Lineoptional
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.

Example
source, on
Lineoptional
Show dateshowdate

This allows to disable displaying the original year.

Example
no
Lineoptional
Referencesref

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

Example
<ref>some wikitext ref</ref>
Contentsuggested
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.

Default
(blank)
Example
historical
Lineoptional
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.

Default
(blank)
Example
no
Lineoptional
The abovedocumentation istranscluded fromTemplate:KRWConvert/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:KRWConvert&oldid=1002669886"
Category:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp