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
P W D L Win %
୩୦ ୧୦ ୧୨ 0୩୩.୩୩0000
୧୦୦ ୧୦ ୮୯ 0୧୦�00
୧୦୦ ୧୦୦ 0 0 ୧୦୦�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
P W D L Win %
୩୦ ୧୦ ୧୨ 0୩୩.୩୩0000
୧୦୦ ୧୦ ୮୯ 0୧୦�00
୧୦୦ ୧୦୦ 0 0 ୧୦୦�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
P W D L GF GA Win %
୧୦୦ ୧୦ ୮୯ ୧୧୨ ୮୮ 0୧୦�00
Record
P W D L GF GA +/- Win %
୧୦୦ ୧୦ ୮୯ ୧୧୨ ୮୮ +24 0୧୦�00

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

Record
P W D L Win %
୩୦ ୧୦ ୧୨ 0୩୩.୩୩0000
୧୦୦ ୧୦ ୮୯ 0୧୦�00
୧୦୦ ୧୦୦ 0 0 ୧୦୦�00
୨୩୦ ୧୨୦ ୧୩ ୯୭ 0୫୨.୧୭0000

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

Record
P W D L Win %
୩୦ ୧୦ ୧୨ 0୩୩.୩୩0000
୧୦୦ ୧୦ ୮୯ 0୧୦�00
୧୩୦ ୨୦ ୧୩ ୯୭ 0୧୫.୩୮0000

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

Record
P W D L Win %
୧୮ ୧୦ 0୫୫.୫୬0000
୯୯ ୧୦ ୮୯ 0୧୦.୧000
୧୧୭ ୨୦ ୯୭ 0୧୭.୦୯0000
Record
P W D L Win %
୧୮ ୧୦ 0୫୫.୫୬0000
୯୯ ୧୦ ୮୯ 0୧୦.୧000
୧୧୭ ୨୦ ୯୭ 0୧୭.୦୯0000
Record
P W D L Win %
୨୦ ୧୨ 00୦�00
୯୦ ୮୯ 00୦�00
୧୧୦ ୧୩ ୯୭ 00୦�00