Template: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  and then left/centre/right as required, and choose the number of decimal places by defining

For example, putting  within a table will display this. It will display trailing zeroes (e.g. the second and third case) To align the numbers to the right, use right  within a table will display this. It will display trailing zeroes (e.g. the second and third case)

There is also the option of adding in two goals columns before the percentage by using  and. For example,  or  :

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

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

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

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