ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:GBP/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ

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

{{GBP|value}}

Example:

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

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}}£123.45

Display "GB"

[ਸੋਧੋ]

By specifying |long=yes, display of "GB" before the "£" sign may be enabled when additional context is required to demonstrate Pound Sterling is meant, rather than other currencies that use £ the symbol.

Example:

  • {{GBP|123.45|long=yes}}GB£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 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
  • {{GBP|100|1209}}£100 (equivalent to £1,49,895 in 2021)
  • {{GBP|100|1966}}£100 (equivalent to £1,982 in 2021)
  • {{GBP|100|1966|link=yes}}£100 (equivalent to £1,982 in 2021)
  • {{GBP|100|2020}}£100 (equivalent to £104.06 in 2021)
  • {{GBP|100|2021}}£100
  • {{GBP|100|2024}}£100
  • {{GBP|100|2025}}£100

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 (equivalent to £24.18 in 2021)
  • {{GBP|10|1990|round=0}}£10 (equivalent to £24 in 2021)
  • {{GBP|10|1990|about=yes}}£10 (equivalent to about £24 in 2021)
  • {{GBP|1000|1990|round=2}}£1,000 (equivalent to £2,418 in 2021)
  • {{GBP|1000|1990|round=-2}}£1,000 (equivalent to £2,400 in 2021)
  • {{GBP|1000|1990|round=-2|about=yes}}£1,000 (equivalent to about £2,400 in 2021)

Redirects here

[ਸੋਧੋ]

TemplateData

[ਸੋਧੋ]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for GBP

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.

ਫਰਮੇ ਦੇ ਮਾਪਦੰਡ

ਮਾਪਦੰਡਵੇਰਵਾਕਿਸਮਦਰਜਾ
Amount1

The monetary value. Preferably in numeric value.

Example
10000.00
Numberoptional
Year2 year

The year which the monetary value was recorded

Example
2010
Numberoptional
Display currency articlelink

To display ''Pound sterling'' article. 'on' will display the link.

Example
on
Stringoptional
Display "GB" before the "£" sign?long

no description

Suggested values
yes no
Example
no
Stringoptional
Calculate to nearest poundabout

Calculate to nearest pound

Example
yes
Stringoptional
Roundinground

Number of integers to round the value to.

Example
2
Numberoptional

See also

[ਸੋਧੋ]