The template supports calculation of inflation. A second parameter can be used to specify a year from 1800 onwards and the relative value in 2024 will be calculated.
{{US$|10|1800}} → 10 đô la Mỹ (17.243 đô la Mỹ vào năm 2022)
{{US$|10|2013}} → 10 đô la Mỹ (1.256 đô 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ỹ (21.345 đô la Mỹ vào năm 2022)
{{US$|10|1935|about=yes}} → 10 đô la Mỹ (khoảng 213 đô la Mỹ vào năm 2022)
{{US$|10|1935|round=0}} → 10 đô la Mỹ (213 đô la Mỹ vào năm 2022)
{{US$|1000|1935|round=2}} → 1.000 đô la Mỹ (2.134.466 đô la Mỹ vào năm 2022)
{{US$|1000|1935|round=-2}} → 1.000 đô la Mỹ (21.300 đô la Mỹ vào năm 2022)
{{US$|1000|1935|round=-2|about=yes}} → 1.000 đô la Mỹ (khoảng 21.300 đô la Mỹ vào năm 2022)
Link
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ỹ (21.345 đô la Mỹ vào năm 2022)
See also
Wikipedia:Manual of Style (dates and numbers)#Currencies