Template:GBP/doc

From Azupedia
Revision as of 19:14, 2 November 2022 by imported>Fire
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{GBP|value}}

Example:

  • {{GBP}}GB£
  • {{GBP|123.45}}GB£123.45

Link

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:

  • {{GBP|123.45|link=yes}}GB£123.45

Suppress "GB"

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

Inflation calculation

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 Template:Inflation/UK/startyearyear < 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|Expression error: Unrecognized punctuation character "[".}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|Template:Inflation/UK/startyear}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|1966}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|1966|link=yes}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|2020}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|2021}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|2025}}GB£100Expression error: Unrecognized punctuation character "[".
  • {{GBP|100|2026}}GB£100Expression error: Unrecognized punctuation character "[".

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}}GB£10Expression error: Unrecognized punctuation character "[".
  • {{GBP|10|1990|round=0}}GB£10Expression error: Unrecognized punctuation character "[".
  • {{GBP|10|1990|about=yes}}GB£10Expression error: Unrecognized punctuation character "[".
  • {{GBP|1000|1990|round=2}}GB£1,000Expression error: Unrecognized punctuation character "[".
  • {{GBP|1000|1990|round=-2}}GB£1,000Expression error: Unrecognized punctuation character "[".
  • {{GBP|1000|1990|round=-2|about=yes}}GB£1,000Expression error: Unrecognized punctuation character "[".

Redirects here

See also