사용자: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.
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.
|
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) |
- ↑ 가 나 다 Federal Reserve Bank of Minneapolis Community Development Project. “Consumer Price Index (estimate) 1800–”. Federal Reserve Bank of Minneapolis. 2018년 4월 3일에 확인함.
- ↑ 가 나 다 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
편집- {{인플레이션}}: 다른 년도에 동일 국가의 통화를 기준으로 주어진 국가의 값을 계산합니다. 이 틀은 {{외국환 변화}}에서도 사용됩니다.
- {{To USD}}: 마지막으로 갱신된 환율을 기준으로 미국 달러를 주어진 통화로 변환합니다. 이 틀은 {{외국환 변환}}에서도 사용됩니다.
- {{To EUR}}: Converts a given currency to Euro using exchange rates last updated (as of February 2021) in 2021. It is used by {{FXConvert}}.
- {{AUD 변환}}: wraps {{FXConvert}}.
- {{BRL 변환}}: wraps {{FXConvert}}.
- {{CAD 변환}}: wraps {{FXConvert}}.
- {{GBP 변환}}: wraps {{FXConvert}}.
- {{HKD 변환}}: wraps {{FXConvert}}.
- {{JPY 변환}}: wraps {{FXConvert}}.
- {{KRW 변환}}: wraps {{FXConvert}}.
- {{SGD 변환}}: wraps {{FXConvert}}.
- {{ZAR 변환}}: wraps {{FXConvert}}.
- {{ItemCost}}: calls {{FXConvert}}.
TemplateData
편집Template calculates a value of a currency, which you can enter, to another currency and then presents the results.
변수 | 설명 | 형식 | 상태 | |
---|---|---|---|---|
country code | 1 country | ISO 3166-1 alpha-3 country code of the currency to be converted, e.g. DEU (Germany, Euro since the year 2000).
| 짧은 문구 | 필수 |
Value | 2 | The value, in the source, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
| 숫자 | 필수 |
Currency units | 3 | Use this to represent larger numbers such as crores, billions et al.
| 짧은 문구 | 권장 |
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.
| 짧은 문구 | 선택 사항 |
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.
| 내용 | 권장 |
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.
| 내용 | 선택 사항 |
Linking | lk | Gives option to whether link currency names (paise, etc.) or number names (crores, lakhs, billions, trillions)
| 짧은 문구 | 권장 |
Year | year | This parameter allows for inflation. Historic values will be inflated to the most current values available then converted.
| 숫자 | 권장 |
Index | index | This parameter allows for inflation. Historic values will be inflated to the latest year available in Inflation then converted.
| 짧은 문구 | 선택 사항 |
To | to | This parameter allows for conversion to various different currencies. The USD (default) and the euro are currently supported.
| 알 수 없음 | 선택 사항 |
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.
| 숫자 | 선택 사항 |
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".
| 짧은 문구 | 선택 사항 |
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.
| 짧은 문구 | 선택 사항 |
Show date | showdate | This allows to disable displaying the original year.
| 짧은 문구 | 선택 사항 |
References | ref | This allows displaying one or more references next to the original value. Each one must consist of a ref wikitext element.
| 내용 | 권장 |
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.
| 짧은 문구 | 선택 사항 |
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.
| 짧은 문구 | 선택 사항 |