Template:Changes/a/doc

This template takes two numbers and formats the first number and the percent increase or decrease to the second number for use in two columns of a table in ascending order. This template is invoked recursively by Template:Changes.

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 base number. (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: