Template:Change/doc

Use
This template calculates the percent change between two real number values and displays the result in a selectable format.

The syntax for this template is: where:
 * var1 = real number representing the base value
 * var2 = real number representing the object value
 * dec= integer number of decimal places to display in percent change (default=2)
 * color=yes — display percent change in the following colors: (default)
 * gain in green
 * no change in default color
 * loss in red
 * color=no — display percent change in default color
 * sort=yes — add a hidden sort key prefix (default)
 * sort=no — don't add a hidden sort key prefix

The following sortable table illustrates the use of this template.