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
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