Template:Changes/a
Jump to navigation
Jump to search
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
[edit source]This template has the following syntax:
{{Changes/a|number1|number2|number-dec|percent-dec|increase-color|decrease-color}}
where:
number1is the base number. If the base number is not known, use NA or  .number2is the target number. If the target number is not known, use NA or  .number-decis an optional number of decimal places in the formatted base number. (default=0)percent-decis an optional number of decimal places in the formatted percent change. (default=2)increase-coloris an optional color for a percent increase. (default=green)decrease-coloris an optional color for a percent decrease. (default=red)
Example
[edit source]The following syntax:
{{Changes/a|1237|1345}}
produces the following Wiki markup:
|align=right|1,237||align=right|+8.73%
See also
[edit source]- This template is identical to Template:Changes/d except that it calculates percent change in ascending order.
- This template invokes Template:Nts, Template:Ntsh, and Template:Round.
- This template is invoked recursively by Template:Changes.
- For help with this template, please post a comment on the template talk page with a
{{reply to}}one or more of the [https:http://70.231.62.181/index.php?title=Template:Changes/a&action=history previous editors].