Исходный код вики SUM Macro
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | |||
| 2 | This macro allows to sum numeric data vertically in a wiki table | ||
| 3 | |||
| 4 | == Macro Parameters == | ||
| 5 | |||
| 6 | |=Parameter|=Description|=Possible values|=Default value | ||
| 7 | |type|Vertical or Horizontal sum. Currently only vertical is supported|col|none | ||
| 8 | |format|Display format of the resulting sum. This uses DecimalFormat from java|0.00 Euros|0.00 | ||
| 9 | |||
| 10 | == Section 1 == | ||
| 11 | |||
| 12 | |=Description|=Number of days | ||
| 13 | |Project Manager|2.5 | ||
| 14 | |Designer|1 | ||
| 15 | |=Total|={{sum type="col" format="0.0 days" /}} | ||
| 16 | |||
| 17 | == Section 2 == | ||
| 18 | |||
| 19 | The macro will only sum data from the lines before the sum line | ||
| 20 | |||
| 21 | |=Description|=Number of days | ||
| 22 | |Project Manager|2 | ||
| 23 | |Designer|1.5 | ||
| 24 | |=Total|={{sum type="col" format="0.0 days" /}} | ||
| 25 | |XXX|3 |