Шаблон:WDL/doc
Usage
вироишThis template is for use within tables, and will automatically calculate a Win %
There is the option to align the numbers by adding align=
and then left/centre/right as required, and choose the number of decimal places by defining decimals=
For example putting
{{WDL|30|10|12|8}}
within a table will display this. It will display trailing zeroes (e.g. the second case)
Натиҷа | ||||
---|---|---|---|---|
Б | Ғ | М | Б | Ғал % |
30 | 10 | 12 | 8 | |
100 | 10 | 1 | 89 |
There is also the option of adding in two goals columns before the percentage by using for=
and against=
. For example {{WDL|100|10|1|89|for=112|against=88}}
or {{WDL|100|10|1|89|for=112|against=88|diff=yes}}
:
Натиҷа | ||||||
---|---|---|---|---|---|---|
Б | Ғ | М | Б | ГЗ | ГС | Ғал % |
100 | 10 | 1 | 89 | 112 | 88 |
Натиҷа | |||||||
---|---|---|---|---|---|---|---|
Б | Ғ | М | Б | ГЗ | ГС | +/- | Ғал % |
100 | 10 | 1 | 89 | 112 | 88 | +24 |
For a total column at the bottom use {{WDLtot}} in the same way.
Натиҷа | ||||
---|---|---|---|---|
Б | Ғ | М | Б | Ғал % |
30 | 10 | 12 | 8 | |
100 | 10 | 1 | 89 | |
130 | 20 | 13 | 97 | 15,38 |