사용자:Drhyme/작업실/틀:작업방 1/설명문서

위키백과, 우리 모두의 백과사전.


Purpose[편집]

이 틀은 물가상승 조정을 적용하여 자동으로 통화를 변환하고 형식을 지정합니다. 환율이나 물가상승에 대한 값은 편집자가 직접 수동으로 복사하기 때문에 최근에 대한 것이 아닌 마지막 편집일 기준일 수 있습니다.

기본 대상 통화(현재 USD)는 향후에 변경될 수 있습니다. 현재는 유로만 지원됩니다.

Usage[편집]

{{외국환 변환|국가 코드|값|통화 단위|통화=|통화기호=|상승기호=|년도=|index=|to=|r=|force=|링크=|exact=|날짜표시=|ref=|모드=|변환=}}

Parameters[편집]

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.

예시[편집]

입력 결과
{{외국환 변환|DNK|1|cursign=[[덴마크 크로네|DKK]] |infsign=DKK |mode=historical|convert=no}} DKK 1
{{외국환 변환|USA|1|링크=on}} 1
{{외국환 변환|USA|1|ct}} 0.01
{{외국환 변환|USA|1|ct|exact=source}} 0.01
{{외국환 변환|USA|1|ct|exact=on}} 0.01
{{외국환 변환|USA|1|ct|year=2002}} 0.01 (2002)
{{외국환 변환|USA|1|ct|year=2002|lk=on}} 0.01 (2002)
{{외국환 변환|USA|1.01|m|년도=2002|index=US}} 10 billion (2022년 기준으로 14.39 billion에 해당)[1]
{{외국환 변환|USA|1.01|m|year=2002|index=US-GDP}} 1.01 million (2002) (2019년 기준으로 1.44 million에 해당)[2]
{{외국환 변환|USA|1.01|m|year=2002|index=US|exact=on}} 1,010,000 (2002) (2022년 기준으로 1,453,241.44에 해당)[1]
{{외국환 변환|USA|1.01|m|year=2002|index=US-GDP|exact=on}} 1,010,000 (2002) (2019년 기준으로 1,435,676.23에 해당)[2]
{{외국환 변환|USA|1.01|m|year=2002|index=US|exact=source}} 1,010,000 (2002) (2022년 기준으로 1.45 million에 해당)[1]
{{외국환 변환|USA|1.01|m|year=2002|index=US-GDP|exact=source}} 1,010,000 (2002) (2019년 기준으로 1.44 million에 해당)[2]
{{외국환 변환|USA|1.01|m|year=2002|index=US-GDP|exact=source|mode=historical}} 1,010,000 (2002)
  1. Federal Reserve Bank of Minneapolis Community Development Project. “Consumer Price Index (estimate) 1800–”. Federal Reserve Bank of Minneapolis. 2018년 4월 3일에 확인함. 
  2. United States nominal Gross Domestic Product per capita figures follow the Measuring Worth series supplied in Johnston, Louis; Williamson, Samuel H. (2016). “What Was the U.S. GDP Then?”. 《MeasuringWorth》. 2016년 4월 10일에 확인함.  These figures follow the figures as of 2015.

See also[편집]

TemplateData[편집]

다음은 시각편집기 및 다른 도구를 위한 틀데이터입니다.

Drhyme/작업실/틀:작업방 1의 틀데이터

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

틀 변수

변수설명형식상태
country code1 country

ISO 3166-1 alpha-3 country code of the currency to be converted, e.g. DEU (Germany, Euro since the year 2000).

예시
GBR
짧은 문구필수
Value2

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

예시
500000000
숫자필수
Currency units3

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

예시
c, lc, b, m, k, cr, p, pa, po, ba
짧은 문구제안
Currency codecur

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.

예시
FRF, EUR
짧은 문구선택 사항
Currency signcursign

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.

예시
[[£]]
내용제안
Inflated signinfsign

This provides a currency sign for the inflated (without conversion) value. If the argument is not present, cursign will be looked for.

예시
£
내용선택 사항
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
숫자제안
Indexindex

This parameter allows for inflation. Historic values will be inflated to the latest year available in Inflation then converted.

예시
UK-GDP
짧은 문구선택 사항
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
짧은 문구선택 사항