Name:
|
|
Type:
|
|
Sub-Template:
|
|
Designer:
|
|
|
Creates a percentage bar comparing the given numbers of wins, draws and losses. Like this:
Wins, Draws and Losses:
W:7
|
D:1
|
L:2
|
|
|
|
|
Syntax
{{WDL-Bar
| caption=
| wins=
| draws=
| losses=
| captioncolor=
| wincolor=
| drawcolor=
| losscolor=
| size=
| style=
}}
Parameters
{{{caption}}}
Will be displayed above the bar. Optional.
{{{wins}}}, {{{draws}}} and {{{losses}}}
Changes the values to be computed. All default to 0
.
{{{captioncolor}}}
Changes the color or the caption if there is one. Defaults to #000
.
{{{wincolor}}}, {{{drawcolor}}} and {{{losscolor}}}
Changes the color will represent the wins, draws and losses, respectivelly. The defaults are #0f0
for wins, #00f
for draws and #f00
for losses.
{{{size}}}
Changes the width of the bar. Can be in pixels (px
) or percentage of space (%
). Defaults to 250px
.
{{{style}}}
If this is set to basic
, it will give the box a basic formating. Otherwise, it sets the attribute style="{{{style}}}"
, allowing for greater customization. Optional.
Examples
{{WDL-Bar}}
{{WDL-Bar
| wins=1
}}
{{WDL-Bar
| wins=9
| losses=2
}}
{{WDL-Bar
| wins=10
| draws=3
| losses=7
}}
{{WDL-Bar
| caption='''Wins, Draws and Losses:'''
| wins=10
| draws=3
| losses=7
}}
Wins, Draws and Losses:
W:10
|
D:3
|
L:7
|
|
|
|
|
{{WDL-Bar
| caption='''Wins, Draws and Losses:'''
| wins=10
| draws=3
| losses=7
| captioncolor=#005
| wincolor=#0ff
| drawcolor=#ff0
| losscolor=#f0f
}}
Wins, Draws and Losses:
W:10
|
D:3
|
L:7
|
|
|
|
|
{{WDL-Bar
| caption='''Wins, Draws and Losses:'''
| wins=10
| draws=3
| losses=7
| size=500px
}}
Wins, Draws and Losses:
W:10
|
D:3
|
L:7
|
|
|
|
|
{{WDL-Bar
| caption='''Wins, Draws and Losses:'''
| wins=10
| draws=3
| losses=7
| size=50%
}}
Wins, Draws and Losses:
W:10
|
D:3
|
L:7
|
|
|
|
|
{{WDL-Bar
| caption='''Wins, Draws and Losses:'''
| wins=10
| draws=3
| losses=7
| size=50%
| style=basic
}}
Wins, Draws and Losses:
W:10
|
D:3
|
L:7
|
|
|
|
|
{{WDL-Bar
| caption='''Wins, Draws and Losses:'''
| wins=10
| draws=3
| losses=7
| size=50%
| style=padding: 5px 5px 5px 5px; background:#ddf; border-style: solid; border-width: 5px; border-color:#004; margin: auto;
}}
Wins, Draws and Losses:
W:10
|
D:3
|
L:7
|
|
|
|
|