This is a documentation subpage for Template:Bar percent. It may contain usage information, categories and other content that is not part of the original template page. |
For use with {{Bar box}}.
Usage
{{Bar percent|row label|colour|value (width in percents)|optional value label}}
If value label is not provided, it is constructed from the percentage and "%". This bar type also has the {{Bar percent 2}}
and {{Bar percent 3}}
variations which display more bars for the same row label.
Examples
{{Bar box
|float=right
|caption=distribution of stuff
|barwidth=200px
|bars=
{{bar percent|foo|red|30}}
{{bar percent|bar|green|40}}
{{bar percent|baz|blue|20}}
{{bar gap|qux}}
{{bar percent|bla|orange|8}}
{{bar percent|bla1|teal|2|1/50}}
}}