Template:WDL/doc
Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
Usage
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 | ||||
---|---|---|---|---|
P | W | D | L | Win % |
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 % |
Record | |||||||
---|---|---|---|---|---|---|---|
P | W | D | L | GF | GA | +/- | Win % |
For a total column at the bottom use {{WDLtot}} in the same way.
Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryLua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryLua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryRecord | ||||
---|---|---|---|---|
P | W | D | L | Win % |
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
Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryLua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryLua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryRecord | ||||
---|---|---|---|---|
P | W | D | L | Win % |
If any win, draw, or loss parameter is empty, the value is assumed to be zero when computing the percentage
Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryLua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryLua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directoryRecord | ||||
---|---|---|---|---|
P | W | D | L | Win % |
Record | ||||
---|---|---|---|---|
P | W | D | L | Win % |
Record | ||||
---|---|---|---|---|
P | W | D | L | Win % |
See also
- {{win-loss record}}
- Category:WDL error - errors with the template appear in this category