سانچہ:Change
![]() | اس سانچے میں حسب ذیل لوا ماڈیول زیر استعمال ہے: |
Use
[ترمیم]This template calculates the percent change between two حقیقی عدد values and displays the result in a sortable format.
The syntax for this template is as follows.
Examples
[ترمیم]The following sortable tables illustrate the use of this template.
ویکی | Tables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{|class="wikitable sortable"
!Region
!first
!second
!change
|-
|Big Meadow
|{{change|1830000|1900679.75}}
|-
|Little Meadow
|{{change|400000|500000}}
|-
|Mount Acme
|{{change|2450000|2205678.37}}
|-
|Acmevale North
|{{change|1250000|1000000
|rowspan=2}}
|-
|Acmevale South
|-
|Homeport
|{{change|5120000|5589462.60
|dec=0}}
|-
|Longwood
|{{change|930000|930027.92
|dec=3}}
|-
|Meadowbrook
|{{change|2450000|2450000.00
|pre=$}}
|-
|Johnstown
|{{change|3400000|3902340.05
|suf= kg}}
|-
|Lakewood
|{{change|2250000|2236005.56
|align=center}}
|- style="background-color:lightblue"
| Fox Hollow
|{{change|1180000|1190345.32
|bgcolour=lightblue}}
|-
|Riverton
|{{change|10550000|11236005.55
|bold=on}}
|-
|Timber Creek
|{{change|1360000|1310948.30
|italics=on}}
|-
|Terminated
|{{change|1500|0.00|bold=on
|italics=on}}
|-
|Upstart
|{{change|0|26250.50
|align=left}}
|-
|}
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
This template uses Module:Math and Template:ntsh, and produces a sort compatible with Template:nts and Template:ntsh.
TemplateData
[ترمیم]معلومات سانچہ Change
کوئی وضاحت نہیں۔
پیرامیٹر | وضاحت | طرز | حالت | |
---|---|---|---|---|
1st_number | 1 | The first number displayed representing the base value | عدد | مطلوب |
2nd_number | 2 | The second number displayed representing the object value | عدد | اختیاری |
dec | dec | Number of decimal places to round the percentage change to | عدد | اختیاری |
pre | pre | Prefix to the first and second numbers | اِسٹرنگ | اختیاری |
pre1 | pre1 | Prefix to the first number | اِسٹرنگ | اختیاری |
pre2 | pre2 | Prefix to the second number | اِسٹرنگ | اختیاری |
suf | suf | Suffix to the first and second numbers | اِسٹرنگ | اختیاری |
suf1 | suf1 | Suffix to the first number | اِسٹرنگ | اختیاری |
suf2 | suf2 | Suffix to the second number | اِسٹرنگ | اختیاری |
sort | sort | Adds or removes the {{nts}}-compatible sort key from the first two cells. The default is only to add this if a prefix or suffix is used (i.e. only if needed).
| Unknown | اختیاری |
italics | italics | Makes the output italic
| Unknown | اختیاری |
bold | bold | Makes the output bold
| Unknown | اختیاری |
invert | invert | Switches the base and object values in the calculation of percentage change
| Unknown | اختیاری |
align | align | Adjusts the alignment of text in cells
| Unknown | اختیاری |
rowspan | rowspan | Adjusts the row span of cells
| عدد | اختیاری |
bgcolour | bgcolour | Adjusts the background colour of cells, or by default, inherits from the table
| Unknown | اختیاری |
disp | disp | This controls what is outputted. "|dist=out" produces the percentage change only (and thus the "|align=", "|rowspan=" and "|=bgcolour" parameters do not work with "|disp=out"). "|disp=row" produces three cells in a table row.
| Unknown | اختیاری |
Tracking
[ترمیم]Invalid input is tracked using WhatLinksHere for {{change/error}}.
اوپر دی گئی دستاویز صفحہ سانچہ:Change/دستاویز سے شامل کی گئی ہے۔ (ترمیم | تاریخچہ) صارفین سانچہ کے تختہ مشق (تخلیق | آئینہ) اور ثابتات (تخلیق) میں تجربات کرسکتے ہیں۔ براہ کرم /دستاویز کے ذیلی صفحہ پر زمرہ جات شامل فرمائیں۔ اس سانچہ کے ذیلی صفحات۔ |