सामग्रीमा जानुहोस्

ढाँचा:GBP/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

ढाँचा:Relevant discussion

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}}£१२३.४५

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}}£१२३.४५

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£१२३.४५

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 1264 ≤ year < 2023), the equivalent value represented in 2023 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|1263}}£१००
  • {{GBP|100|1264}}£१०० (equivalent to £Error when using &#१२३;&#१२३;Inflation&#१२५;&#१२५;: NaN, check parameters for non-numeric data: &#१२४;r&#६१;अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।. in 2023)
  • {{GBP|100|1966}}£१०० (equivalent to £Error when using &#१२३;&#१२३;Inflation&#१२५;&#१२५;: NaN, check parameters for non-numeric data: &#१२४;r&#६१;अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।. in 2023)
  • {{GBP|100|1966|link=yes}}£१०० (equivalent to £Error when using &#१२३;&#१२३;Inflation&#१२५;&#१२५;: NaN, check parameters for non-numeric data: &#१२४;r&#६१;अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।. in 2023)
  • {{GBP|100|2022}}£१०० (equivalent to £Error when using &#१२३;&#१२३;Inflation&#१२५;&#१२५;: NaN, check parameters for non-numeric data: &#१२४;r&#६१;अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।. in 2023)
  • {{GBP|100|2023}}£१००
  • {{GBP|100|२०२५}}£१००अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "२"।
  • {{GBP|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}}£१० (equivalent to £Error when using &#१२३;&#१२३;Inflation&#१२५;&#१२५;: NaN, check parameters for non-numeric data: &#१२४;r&#६१;अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।. in 2023)
  • {{GBP|10|1990|round=0}}£१० (equivalent to £अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "२"। in 2023)
  • {{GBP|10|1990|about=yes}}£१० (equivalent to about £अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "२"। in 2023)
  • {{GBP|1000|1990|round=2}}£१,००० (equivalent to £अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "२"। in 2023)
  • {{GBP|1000|1990|round=-2}}£१,००० (equivalent to £अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "२"। in 2023)
  • {{GBP|1000|1990|round=-2|about=yes}}£१,००० (equivalent to about £अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "२"। in 2023)
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:GBP in articles based on its 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.

उदाहरण
10000.00
सङ्ख्यावैकल्पिक
Year2 year

The year which the monetary value was recorded

उदाहरण
2010
सङ्ख्यावैकल्पिक
Display currency articlelink

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

उदाहरण
on
Stringवैकल्पिक
Display "GB" before the "£" sign?long

कुनैपनि विवरण छैन

प्रस्तावित मानहरू
yes no
उदाहरण
no
Stringवैकल्पिक
Calculate to nearest poundabout

Calculate to nearest pound

उदाहरण
yes
Stringवैकल्पिक
Roundinground

Number of integers to round the value to.

उदाहरण
2
सङ्ख्यावैकल्पिक