Template:GBP/doc
![]() | This is a documentation subpage for Template:GBP. It contains usage information, categories and other content that is not part of the original template page. |
![]() | この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:GBP/docを素材として二次利用しています。 Lua error in Module:Itemnumber at line 91: attempt to concatenate local 'qid' (a nil value). |
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
![]() | Do not assume that using this template will mean that a calculated value is "current", "as of 2025", "as of 2024" or even necessarily "recent". Do not use {{CURRENTYEAR}} to refer to calculated value, instead {{Inflation/year|UK}} may be used. See also MOS:REALTIME. | ![]() |
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/startyear ≤ year
< 2021), the equivalent value represented in 2021 pound will be calculated in parentheses. However, this function should only be used in appropriate situations.
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
- Wikipedia:Manual of Style (dates and numbers)
- Template:Currency
- Wikipedia:Wikiproject United Kingdom
- Template:Pounds, shillings, and pence
- Template:AUD
- Template:BDT
- Template:CAD
- Template:CNY
- Template:INR
- Template:JPY
- Template:Philippine peso
- Template:PKR
- Template:US$