Difference between revisions of "Template:StatbarSmall"

From Rigged Wiki
Jump to navigation Jump to search
m (Quick test)
m
Line 1: Line 1:
{| align=center width="175px"
{| align=center width="250px"
| height=5px style="width: {{#expr: ( ( {{{l|50}}} / ( {{{l|50}}} + {{{r|50}}} ) ) * 100 ) round 2 }}%; background-color: #{{{l-c|0000FF}}}; padding: 0"|
| height=5px style="width: {{#expr: ( ( {{{l|50}}} / ( {{{l|50}}} + {{{r|50}}} ) ) * 100 ) round 2 }}%; background-color: #{{{l-c|0000FF}}}; padding: 0"|
| height=5px style="width: {{#expr: ( ( {{{r|50}}} / ( {{{l|50}}} + {{{r|50}}} ) ) * 100 ) round 2 }}%; background-color: #{{{r-c|FF0000}}}; padding: 0"|
| height=5px style="width: {{#expr: ( ( {{{r|50}}} / ( {{{l|50}}} + {{{r|50}}} ) ) * 100 ) round 2 }}%; background-color: #{{{r-c|FF0000}}}; padding: 0"|

Revision as of 21:16, 30 September 2018

Usage

{{statbar|l= |r= |l-c= |r-c= }}

Parameters

  • l:The stat belonging to the home team.
  • r:The stat belonging to the away team.
  • l-c:The home team's main colour. Hex code only, no #.
  • r-c:The away team's main colour. Hex code only, no #.


Main Article: Template:Statbar