Template:Changes/doc

This template takes up to 20 numbers and calculates the percent change between each pair and formats them for inclusion in a table in either ascending or descending order.

Use[edit]

This template has the following syntax:

{{Changes|number01|...|number20|order=|nd=|pd=|ic=|dc=}}

where:

  • number01|...|number20 are up to 20 numbers. If a number is not known, use NA or &#​32;
  • order= is an optional change calculation order:
    • order=a calculate percent change in ascending order. (default)
    • order=d calculate percent change in descending order.
  • nd= is an optional number of decimal places in the formatted numbers. (default=0)
  • pd= is an optional number of decimal places in the formatted percent changes. (default=2)
  • ic= is an optional color for a percent increase. (default=green)
  • dc= is an optional color for a percent decrease. (default=red)

See also[edit]