Template:Bar
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
Usage
This template creates a bar that displays a portion of it filled to a certain amount.
Usage
To use this template, type: {{Bar| Value }}
- value — The amount to fill the bar up to. It can be a number with up to two decimal places. Under the default it ranges from 0 to 100. If nothing is entered it is set to 0. (Required )
There are additional options as well:
{{Bar |value = |total = |text = |height = |width = |border = |padding = |color1 = |color2 = }}
- total — Total amount for the whole bar. (Optional - 100)
- text — Text to display in the header. (Optional )
- height — Height of the bar. (Optional - 2px)
- width — Width of the bar. (Optional - 75%)
- border — Setting for the bar's border. (Optional - 1px solid black)
- padding — Amount of padding for the bar, (Optional - 1px)
- color1 — Color of the filled portion of the bar. (Optional - red (or #F00))
- color2 — Color of the unfilled portion of the bar. (Optional - white (or #FFF))