Template:Bar percent 2: Difference between revisions
Template page
More actions
Created page with "<includeonly><tr style="line-height:100%"> <td rowspan="2" style="padding:0 0.4em">{{{1}}}</td> <td style="padding:0 0.4em;vertical-align:bottom" align="right"><small>{{{2}}}</small></td> <td style="width:100px;border-left:solid 1px silver;border-right:solid 1px silver;vertical-align:bottom"> <div style="height:8px;width:{{{4|0}}}%;padding:0;margin:0;background:{{{3|gray}}};color:{{{3|gray}}};overflow:hidden;font-size:4px;"> </div> </td> <td style="padding:0 0..." |
(No difference)
|
Latest revision as of 02:11, 19 February 2025
For use with {{Bar box}}.
Usage
Examples
{{Bar box
|title=Election results
|titlebar=#AAF
|left1=party
|left2=year
|right1=votes
|right2=change
|width=300px
|bars=
{{bar percent 2|Left|1898|silver|33|1902|red|42|+9%}}
{{bar percent 2|Right|1898|silver|40|1902|black|35|-5%}}
{{bar percent 2|Middle|1898|silver|17|1902|blue|10|-7%}}
{{bar percent 2|Other|1898|silver|10|1902|gray|13|+3%}}
|caption=1902 and 1898 election results in Freedonia compared.
}}