Template:PKRConvert/doc
| This is a documentation subpage for Template:PKRConvert. It may contain usage information, categories and other content that is not part of the original template page. |
Purpose
The purpose of this template is to automatically convert and format currency from Pakistani rupees to other currencies (United States dollars by default) applying adjustment for inflation where appropriate. Rates of exchange and inflation must be manually copied by editors therefore the template's output does not necessarily reflect the present exchange rates or price indices but, rather, reflects the rates and indices at the time of the last update.
Usage
{{PKRConvert|rupee_value|currency_formatting|rounding digits|nolink=(yes/no)|to=|year=}}
Parameters
A description of the template's parameters are listed below.
| Field name | Usage | Description |
rupee_value |
mandatory | The value, in Pakistani rupees, that needs to be converted. The template will not accept pre-formatted values (e.g. 1,234) |
currency_formatting |
optional | Used to represent larger numbers. Available options include :
|
rounding_digits |
optional | Used to round significant digits. Negative values (-2, -3) can be used to round values to the nearest hundred or thousand, etc. A value of "0" will drop paise or cent values from the converted number. By default the conversion will be rounded to two significant figures. Refer to the Examples section below for more examples. |
nolink |
optional | This parameter gives you the option of not internally linking currency names (Rupees and paise) and number names (lakh and crore). By default, the parameter is set to "no" (i.e. it is set to link). Currency and number names will be displayed with no links when the parameter is set to "yes". Per WP:OVERLINK the currencies converted to are not linked. |
year |
optional | This parameter allows for inflation. Historic rupee values will be inflated to current values then converted. |
to |
optional | This parameter allows for conversion to various different currencies (and some combinations). The US, Canadian, NZ and Australian dollars, the euro, the UK pound and the Bangladeshi taka are supported. |
Examples
| PKRConvert syntax | Results |
|---|---|
{{PKRConvert|1}} |
Rs. 1 (0.36¢ US) |
{{PKRConvert|500}} |
Rs. 500 (US$1.80) |
{{PKRConvert|0.05}} |
5 paise (0.018¢ US) |
{{PKRConvert|0.01}} |
1 paisa (US$0) |
{{PKRConvert|0.86}} |
86 paise (0.31¢ US) |
{{PKRConvert|30|m}} |
Rs. 30 million (US$110,000) |
{{PKRConvert|0.72|m}} |
Rs. 0.72 million (US$2,600) |
{{PKRConvert|36|b}} |
Rs. 36 billion (US$130 million) |
{{PKRConvert|36|b|-2}} |
Rs. 36 billion (US$100 million) |
{{PKRConvert|0.80|B}} |
Rs. 0.80 billion (US$2.9 million) |
{{PKRConvert|32|t}} |
Rs. 32 trillion (US$110 billion) |
{{PKRConvert|400|c}} |
Rs. 400 crore (US$14 million) |
{{PKRConvert|400|c|0}} |
Rs. 400 crore (US$14 million) |
{{PKRConvert|19|k}} |
Rs. 19,000 (US$68) |
{{PKRConvert|53|m|0|nolink=yes}} |
Rs. 53 million (US$189,580) |
{{PKRConvert|123|k|year=1990}} |
Rs. 123,000 (equivalent to Rs. 630,000 or US$2,200 in 2021) |
{{PKRConvert|319|to=GBP}} |
Rs. 319 (84p) |
{{PKRConvert|100|to=INR|link=yes|year=2000}} |
Rs. 100 (equivalent to Rs. 510 or ₹160 in 2021) |
{{PKRConvert|753|m|year=2000|to=USD EUR}} |
Rs. 753 million (equivalent to Rs. 3.8 billion, US$14 million or €12 million in 2021) |
Updating
It is important to keep the figures used in these conversions up to date. Data for the exchange rates is kept at {{PKRConvert/CurrentRate}}. Data for the inflation rate is at {{Inflation/PK/dataset}}. Feel free to update these if you are able.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.