ഫലകം:PKRConvert
This ഫലകം employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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 (ie. 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" (ie. 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}} | ₨1 (0.94¢ US) |
{{PKRConvert|500}} | ₨500 (US$4.70) |
{{PKRConvert|0.05}} | 5 paise (0.047¢ US) |
{{PKRConvert|0.01}} | 1 paisa (US$0) |
{{PKRConvert|0.86}} | 86 paise (0.80¢ US) |
{{PKRConvert|30|m}} | ₨30 million (US$2,80,000) |
{{PKRConvert|0.72|m}} | ₨0.72 million (US$6,700) |
{{PKRConvert|36|b}} | ₨36 billion (US$340 million) |
{{PKRConvert|36|b|-2}} | ₨36 billion (US$300 million) |
{{PKRConvert|0.80|B}} | ₨0.80 billion (US$7.5 million) |
{{PKRConvert|32|t}} | ₨32 trillion (US$300 billion) |
{{PKRConvert|400|c}} | ₨400 crore (US$37 million) |
{{PKRConvert|400|c|0}} | ₨400 crore (US$37 million) |
{{PKRConvert|19|k}} | ₨19,000 (US$180) |
{{PKRConvert|53|m|0|nolink=yes}} | ₨53 million (US$4,96,080) |
{{PKRConvert|123|k|year=1990}} | ₨1,23,000 (equivalent to ₨3,80,000 or US$3,500 in 2024) |
{{PKRConvert|319|to=GBP}} | ₨319 (£1.90) |
{{PKRConvert|753|m|year=2000|to=USD EUR}} | ₨753 million (equivalent to ₨2.3 billion, US$22 million or €16 million in 2024) |
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.
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:PKRConvert/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |