Template:GBP/doc

This is a multifunction template. At its simplest, it adds the currency mark "GB£", 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
Example:
 * → GB£
 * → GB£123.45

Link
The parameter 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:
 * → GB£123.45

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



Examples:
 * → GB£100
 * → GB£100
 * → GB£100 1966
 * → GB£100 1966
 * → GB£100
 * → GB£100
 * → GB£100 2024
 * → GB£100

Additional parameter 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 integer. These parameters may be combined.

Examples:
 * → GB£10 1990
 * → GB£10 1990
 * → GB£10 1990
 * → GB£1000 1990
 * → GB£1000 1990
 * → GB£1000 1990

Redirects here

 * Template:GB£
 * Template:£
 * Template:STG
 * Template:£ stg
 * Template:Sterling

TemplateData
{	"params": { "1": {			"label": "Amount", "description": "The monetary value. Preferably in numeric value.", "example": "10000.00", "type": "number" },		"2": {			"aliases": [ "year" ],			"label": "Year", "description": "The year which the monetary value was recorded", "example": "2010", "type": "number" },		"link": { "label": "Display currency article", "description": "To display Pound sterling article. 'on' will display the link.", "example": "on", "type": "string" },		"long": { "label": "Display \"GB\" before the \"£\" sign?", "example": "no", "type": "string", "suggestedvalues": [ "yes","no" ]		},		"about": { "label": "Calculate to nearest pound", "description": "Calculate to nearest pound", "example": "yes", "type": "string" },		"round": { "label": "Rounding", "description": "Number of integers to round the value to.", "example": "2", "type": "number" }	},	"description": "This template renders the standard British Pound sterling currency abbreviation (£) and an optional value. The abbreviation provides an informative link to the currency article and can even calculate inflation." }