Template:Change2/doc

This template takes compares two numbers, calculates the percent change, and formats the three numbers for inclusion in three columns of a table.

Use
This template has the following syntax:

where:
 *   is the base number. If the base number is not known, use NA or &#&#8203;32;.
 *   is the target number. If the target number is not known, use NA or &#&#8203;32;.
 *   is an optional number of decimal places in the formatted numbers. (default=0)
 *   is an optional number of decimal places in the formatted percent change. (default=2)
 *   is an optional color for a percent increase. (default=green)
 *   is an optional color for a percent decrease. (default=red)

Example
The following syntax:

produces the following Wiki markup:

which can be used in a table: