Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Percentage bar/doc

Template page
Revision as of 14:59, 20 March 2012 by imported>Crusha K. Rool (And this is how it looks like…)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Description
Creates a percentage bar, given a number from 0 to 100.
Syntax
{{Percentage bar|x}}
Optional parameters
  • width – The width of the bar (default: 270px).
  • height – The height of the bar (default: 10px).
  • color1 – The color of the left side of the bar (default: white).
  • color2 – The color of the right side of the bar (default: black).
  • border – The border style (default: solid 2px grey).
  • style – Any additional CSS, which can override width and border.


Example
{{Percentage bar|20}}
Result