Jump to content

Template:US$/doc

Frae Wikipedia, the free beuk o knawledge

This template adds the siller mark "US$" linked tae the Unitit States dollar airticle.

Uisage

[eedit soorce]
{{US$|value}}
  • value must be specified.

{{US$|123.45}} produces US$123.45.

Inflation calculation

[eedit soorce]

The template nou supports calculation o inflation. A seicont parameter can be uised tae specify a year atween 1913 an 2009 an will calculate the relative value in 2024.

{{US$|value|year}}

A third parameter about will cause the template tae calculate tae the nearest dollar instead o the nearest cent. This can be activatit bi teepin about=yes.

Examples:

  • {{US$|10|1935}}US$10 (equivalent to $186.48 in 2019)
  • {{US$|10|1935|round=0}}US$10 (equivalent to $186 in 2019)
  • {{US$|1000|1935|round=2}}US$1,000 (equivalent to $18,648.06 in 2019)
  • {{US$|1000|1935|round=-2}}US$1,000 (equivalent to $18,600 in 2019)

The link parameter mey be uised tae link US$ tae the airticle Unitit States dollar. This is turned aff bi default, but mey be appropriate for the first occurrence o the term in an airticle.

Example:

  • {{US$|10|1935|link=yes}}US$10 (equivalent to $186.48 in 2019)

See also

[eedit soorce]