Template:Pakistani Rupee/doc

From Simple English Wikipedia, the free encyclopedia


This is a multifunction template. At its simplest, it adds the currency mark "Rs.", as recommended by MOS:CURRENCY for many situations. The template can also link to the Pakistani rupee article and calculate inflation. See warnings below.

Usage[change source]

{{PKR|value}}

Example:

  • {{PKR}}Rs. 
  • {{PKR|123.45}}Rs. 123.45

Link[change source]

The parameter |link=yes may be used to link Rs to the article Pakistani rupee. This is turned off by default but may be appropriate for the first occurrence of the term in an article.

Example:

  • {{PKR|123.45|link=yes}}Rs. 123.45

Inflation calculation[change source]

The template supports inflation calculation using {{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 1960 ≤ year < 2019), the equivalent value represented in 2019 rupee will be calculated in parentheses. However, this function should only be used in appropriate situations.

  • {{PKR|value|year}}
  • {{PKR|value|year|round=round|about=yes}}

Examples:

  • {{PKR|100|1959}}Rs. 100
  • {{PKR|100|1960}}Rs. 100 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|100|1966}}Rs. 100 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|100|1966|link=yes}}Rs. 100 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|100|2018}}Rs. 100 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|100|2019}}Rs. 100
  • {{PKR|100|2024}}Rs. 100
  • {{PKR|100|2025}}Rs. 100

Additional parameter |about=yes will cause the template to calculate to the nearest rupee (instead of the nearest subunit), and prefix the calculated value with "about". The rounding can be fine-tuned further by using |round=integer. These parameters may be combined.

Examples:

  • {{PKR|10|1990}}Rs. 10 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|10|1990|round=0}}Rs. 10 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|10|1990|about=yes}}Rs. 10 (equivalent to about Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|1000|1990|round=2}}Rs. 1,000 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|1000|1990|round=-2}}Rs. 1,000 (equivalent to Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)
  • {{PKR|1000|1990|round=-2|about=yes}}Rs. 1,000 (equivalent to about Rs. Error when using {{Inflation}}: |index=PK (parameter 1) not a recognized index. in 2019)

Redirects here[change source]

See also[change source]