Use This template calculates the percent change between two real number values and displays the result in a sortable format.  The syntax for this template is as follows.  {{change|1st No.|2nd No.|dec=rounding|pre=prefix|suf=suffix|sort=on/off|italics=on/off|bold=on/off|invert=on/off|disp=row/out|rowspan=rowspan|align=alignment|bgcolour=background colour}}  parameterfunction11st No. is the first number displayed representing the base value.22nd No. is the second number displayed representing the object value.decThis is the number of decimal places to round the percentage change to.preThis adds a prefix to the first and second numbers.pre1This adds a prefix to the first number.pre2This adds a prefix to the second number.sufThis adds a suffix to the first and second numbers.suf1This adds a suffix to the first number.suf2This adds a suffix to the second number.sortThis adds or removes the -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).italicsThis can either have the value of on or off.  italics=on makes the output italic.  The default is italics=off.boldThis can either have the value of on or off.  bolds=on makes the output bold.  The default is bold=off.invertThis can either have the value of on or off.  invert=on switches the base and object values in the calculation of percentage change.  The default is invert=off.alignThis adjusts the alignment of text in cells.  align=center and align=left aligns the text to the centre and left respectively.  The default is align=right.rowspanThis adjust the row span of cells.  The default is  rowspan=1.bgcolourThis adjusts the background colour of cells.  The default is bgcolour=#F9F9F9 (light grey).dispThis controls what is output.  disp=out produces the percentage change only (and thus align, rowspan and bgcolour do not work with disp=out).  The default is disp=row which produces three cells in a table row.  The following sortable tables illustrate the use of this template. Wiki markupTables{|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}} |- |}Without extra code RegionfirstsecondchangeBig MeadowLittle MeadowMount AcmeAcmevale NorthAcmevale SouthHomeportLongwoodMeadowbrookJohnstownLakewoodFox HollowRivertonTimber CreekTerminatedUpstartWith disp=out RegionchangeBig MeadowLittle MeadowMount AcmeAcmevale NorthAcmevale SouthHomeportLongwoodMeadowbrookJohnstownLakewoodFox HollowRivertonTimber CreekTerminatedUpstartWith invert=on RegionfirstsecondchangeBig MeadowLittle MeadowMount AcmeAcmevale NorthAcmevale SouthHomeportLongwoodMeadowbrookJohnstownLakewoodFox HollowRivertonTimber CreekTerminatedUpstartWith invert=on and disp=out RegionchangeBig MeadowLittle MeadowMount AcmeAcmevale NorthAcmevale SouthHomeportLongwoodMeadowbrookJohnstownLakewoodFox HollowRivertonTimber CreekTerminatedUpstart  This template uses Module:Math and Template:ntsh, and produces a sort compatible with Template:nts and Template:ntsh.  Category:Mathematical formatting templates Category:Templates based on the Math Lua module Category:Sorting templates