This is a multifunction template. At its simplest, it adds the currency mark " bảng Anh", as recommended by MOS:CURRENCY for many situations. The template can also link to the Pound sterling article and can even calculate inflation. See warnings below.

Usage sửa

{{GBP|value}}

Example:

  • {{GBP}} bảng Anh
  • {{GBP|123.45}}123,45 bảng Anh

Link sửa

The parameter |link=yes may be used to link to the article Pound sterling. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.

Example:

Suppress "GB" sửa

By specifying |long=no, display of "GB" before the "£" sign may be suppressed when it is clear from context that the Pound Sterling is meant, rather than other currencies that use £ the symbol.

Example:

  • {{GBP|123.45|long=no}}123,45 bảng Anh

Tính toán lạm phát sửa

The template supports inflation calculation, by way of {{Inflation}}. If the second parameter is used, to specify a year, and this year is within a certain range of available inflation data (specifically, if 1209 ≤ year < 2021), the equivalent value represented in 2021 pound will be calculated in parentheses. However, this function should only be used in appropriate situations.

  • {{GBP|value|year}}
  • {{GBP|value|year|round=round|about=yes}}

Examples:

  • {{GBP|100|1208}}100 bảng Anh
  • {{GBP|100|1209}}100 bảng Anh
  • {{GBP|100|1966}}100 bảng Anh (1.982 bảng Anh vào năm 2021)
  • {{GBP|100|1966|link=yes}}100 bảng Anh (1.982 bảng Anh vào năm 2021)
  • {{GBP|100|2020}}100 bảng Anh (10.406 bảng Anh vào năm 2021)
  • {{GBP|100|2021}}100 bảng Anh (100 bảng Anh vào năm 2021)
  • {{GBP|100|2024}}100 bảng Anh
  • {{GBP|100|2025}}100 bảng Anh

Additional parameter |about=yes will cause the template to calculate to the nearest pound (instead of the nearest penny), and prefix the calculated value with "about". The rounding can be fine-tuned further by using |round=integer. These parameters may be combined.

Examples:

  • {{GBP|10|1990}}10 bảng Anh (2.418 bảng Anh vào năm 2021)
  • {{GBP|10|1990|round=0}}10 bảng Anh (24 bảng Anh vào năm 2021)
  • {{GBP|10|1990|about=yes}}10 bảng Anh (khoảng 24 bảng Anh vào năm 2021)
  • {{GBP|1000|1990|round=2}}1.000 bảng Anh (2.418 bảng Anh vào năm 2021)
  • {{GBP|1000|1990|round=-2}}1.000 bảng Anh (2.400 bảng Anh vào năm 2021)
  • {{GBP|1000|1990|round=-2|about=yes}}1.000 bảng Anh (khoảng 2.400 bảng Anh vào năm 2021)