模板:Changes/a
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:
{{Changes/a|number1|number2|number-dec|percent-dec|increase-color|decrease-color}}
where:
number1
is the base number. If the base number is not known, use NA or  .number2
is the target number. If the target number is not known, use NA or  .number-dec
is an optional number of decimal places in the formatted base number. (default=0)percent-dec
is an optional number of decimal places in the formatted percent change. (default=2)increase-color
is an optional color for a percent increase. (default=green)decrease-color
is an optional color for a percent decrease. (default=red)
Example
編輯The following syntax:
{{Changes/a|1237|1345}}
produces the following Wiki markup:
|align=right|1,237||align=right|+8.73%
See also
編輯- 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.
上述文件嵌入自Template:Changes/a/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |