Bản mẫu:US$
This template adds the currency mark "US$" linked to the United States dollar article.
Cách sử dụng
[sửa mã nguồn]{{US$|value}} (value must be specified)
Example:
{{US$|123.45}}produces 123,45 đô la Mỹ
Inflation calculation
[sửa mã nguồn]| This template is only capable of inflating Consumer Price Index values: staples, workers rent, small service bills (doctor's costs, train tickets). This template is incapable of inflating Capital expenses, government expenses, or the personal wealth and expenditure of the rich. Incorrect use of this template would constitute original research. If you yourself do not possess it, please consult someone with economic training before making use of this. |
The template supports calculation of inflation. A second parameter can be used to specify a year from 1800 onwards and the relative value in 2026 will be calculated.
{{US$|value|year}}
Examples:
{{US$|10|1799}}→ 10 đô la Mỹ{{US$|10|1800}}→ 10 đô la Mỹ (185,27 đô la Mỹ vào năm 2022){{US$|10|2013}}→ 10 đô la Mỹ (13,5 đô la Mỹ vào năm 2022)
A third parameter |about=yes will cause the template to calculate to the nearest dollar (instead of the nearest cent), and prefix the calculated value with "about". The rounding can be fine-tuned further by using |round=integer. These parameters may be combined.
Examples:
{{US$|10|1935}}→ 10 đô la Mỹ (229,34 đô la Mỹ vào năm 2022){{US$|10|1935|about=yes}}→ 10 đô la Mỹ (khoảng 229 đô la Mỹ vào năm 2022){{US$|10|1935|round=0}}→ 10 đô la Mỹ (229 đô la Mỹ vào năm 2022){{US$|1000|1935|round=2}}→ 1.000 đô la Mỹ (22.934,47 đô la Mỹ vào năm 2022){{US$|1000|1935|round=-2}}→ 1.000 đô la Mỹ (22.900 đô la Mỹ vào năm 2022){{US$|1000|1935|round=-2|about=yes}}→ 1.000 đô la Mỹ (khoảng 22.900 đô la Mỹ vào năm 2022)
Link
[sửa mã nguồn]The parameter |link=yes may be used to link US$ to the article United States dollar. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.
Example:
{{US$|10|1935|link=yes}}→ 10 đô la Mỹ (229,34 đô la Mỹ vào năm 2022)