Jump to content

Fyrimynd:WDL/doc

Frá Wikipedia, hin frælsa alfrøðin

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)

Record
PWDLWin %
301012833,33
1001018910,00

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}}:

Record
PWDLGFGAWin %
100101891128810,00
Record
PWDLGFGA+/-Win %
1001018911288+2410,00

For a total column at the bottom use {{WDLtot}} in the same way.

Record
PWDLWin %
301012833,33
1001018910,00
13020139715,38

If the numbers of wins, losses and draws do not add up correctly, the page will appear in Category:WDL error.

Empty parameters

[rætta wikitekst]

If the first parameter is empty, the value for games played is computed from the sum of Wins Draws and Losses

Record
PWDLWin %
301012833,33
1001018910,00
13020139715,38

If any win, draw, or loss parameter is empty, the value is assumed to be zero when computing the percentage

Record
PWDLWin %
1810855,56
99108910,10
117209717,09
Record
PWDLWin %
1810855,56
99108910,10
117209717,09
Record
PWDLWin %
2012800,00
9018900,00
110139700,00

Sí eisini

[rætta wikitekst]