You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:WDL-Bar
Jump to navigation
Jump to search
|
Creates a percentage bar comparing the given numbers of wins, draws and losses. Like this:
|
||||
|
Syntax
{{WDL-Bar | caption= | wins= | draws= | losses= | captioncolor= | wincolor= | drawcolor= | losscolor= | size= | style= }}
Parameters
Will be displayed above the bar. Optional.
{{{wins}}}, {{{draws}}} and {{{losses}}}
Changes the values to be computed. All default to 0
.
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 }}
|
||||
|
{{WDL-Bar | caption='''Wins, Draws and Losses:''' | wins=10 | draws=3 | losses=7 | captioncolor=#005 | wincolor=#0ff | drawcolor=#ff0 | losscolor=#f0f }}
|
||||
|
{{WDL-Bar | caption='''Wins, Draws and Losses:''' | wins=10 | draws=3 | losses=7 | size=500px }}
|
||||
|
{{WDL-Bar | caption='''Wins, Draws and Losses:''' | wins=10 | draws=3 | losses=7 | size=50% }}
|
||||
|
{{WDL-Bar | caption='''Wins, Draws and Losses:''' | wins=10 | draws=3 | losses=7 | size=50% | style=basic }}
|
||||
|
{{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; }}
|
||||
|