Yiɣi chaŋ yɛligu maŋamaŋa puuni

Tɛmplet:WDL/doc

Diyila Dagbani Wikipedia

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 and third case)

Record
PWDLWin %
3010128033.33
10010189010.00
10010000100.00

To align the numbers to the right, use |align=right {{WDL|30|10|12|8|align=right}} within a table will display this. It will display trailing zeroes (e.g. the second and third case)

Record
PWDLWin %
3010128033.33
10010189010.00
10010000100.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 %
1001018911288010.00
Record
PWDLGFGA+/-Win %
1001018911288+24010.00

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

Tɛmplet:WDLtot

Record
PWDLWin %
30 10 12 8 033.33
100 10 1 89 010.00
100 100 0 0 100.00

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

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

Tɛmplet:WDLtot

Record
PWDLWin %
30 10 12 8 033.33
100 10 1 89 010.00

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

Tɛmplet:WDLtot

Record
PWDLWin %
18 10 8 055.56
99 10 89 010.10

Tɛmplet:WDLtot

Record
PWDLWin %
18 10 8 055.56
99 10 89 010.10

Tɛmplet:WDLtot

Record
PWDLWin %
20 12 8 000.00
90 1 89 000.00