Bước tới nội dung

Bản mẫu:US$

Bách khoa toàn thư mở Wikipedia
Tài liệu bản mẫu

This template adds the currency mark "US$" linked to the United States dollar article.

Cách sử dụng

{{US$|value}} (value must be specified)

Example:

  • {{US$|123.45}} produces 123,45 đô la Mỹ

Inflation calculation

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$|value|year}}

Examples:

  • {{US$|10|1799}}10 đô la Mỹ
  • {{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
🔥 Top keywords: Đài Truyền hình Kỹ thuật số VTCTrang ChínhGiỗ Tổ Hùng VươngTrương Mỹ LanĐặc biệt:Tìm kiếmHùng VươngVương Đình HuệUEFA Champions LeagueKuwaitChiến dịch Điện Biên PhủFacebookĐài Truyền hình Việt NamTrần Cẩm TúĐội tuyển bóng đá quốc gia KuwaitGoogle DịchViệt NamCúp bóng đá U-23 châu ÁCúp bóng đá U-23 châu Á 2024Real Madrid CFBảng xếp hạng bóng đá nam FIFACleopatra VIITô LâmTim CookNguyễn Phú TrọngHồ Chí MinhHai Bà TrưngManchester City F.C.VnExpressChủ tịch nước Cộng hòa xã hội chủ nghĩa Việt NamNguyễn Ngọc ThắngĐền HùngCúp bóng đá trong nhà châu Á 2024Võ Văn ThưởngOne PieceLịch sử Việt NamCuộc đua xe đạp toàn quốc tranh Cúp truyền hình Thành phố Hồ Chí Minh 2024Phạm Minh ChínhTikTokĐinh Tiên Hoàng