Template:Wins-losses-pct in table/doc

Description
This template produces three or four wikitable columns that represent wins, losses, optionally ties, and a winning percentage as follows:

or

where  comes from parameter 1 to this template,   comes from parameter 2,   comes from parameter 3 if present, and   is automatically computed based on parameters 1 and 2 and 3 if present.

Winning percentage is calculated as a three-decimal place value between .000 and 1.000. The value is  / (  +  ) for 2 parameters, or (  + (  / 2))  / (  +   +  ) for 3 parameters. If the total of the parameters is zero, the percentage is displayed as "–".

Examples

 * produces 3
 * produces 6
 * produces 0
 * produces #dfdfdf
 * produces 5

produces:

and

produces: