Template:Average change/doc
Appearance
This is a documentation subpage for Template:Average change. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template will calculate the average change (increase or decrease) of up to 6 given numerical values, either as actual or in percentage format.
Usage
[edit]{{Average change|Value 1|Value 2|Values 3-6 (optional)|class|omitop (optional)}}
Parameters
[edit]|class=actual OR percent
, specifies whether the output should work out an actual average change or the equivalent percentage change. Default is actual if unspecified|omitop=yes
, optional, defines whether the operator (minus sign) should be omitted (for example, -2.50 would show an output of 2.5)
Examples
[edit]{{Average change|10|20|30|40|50}}
→ 10.00{{Average change|10.4|20.1|35|26}}
→ 5.20{{Average change|10.4|20.1|35|26|class=percent}}
→ 47.23{{Average change|50|46|47|42|40}}
→ -2.50{{Average change|50|46|47|42|40|omitop=yes}}
→ 2.50