Template:Bar percent 2/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} For use with {{tl|Bar box}}. == Usage == == Examples == <syntaxhighlight lang="wikitext"> {{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=..." |
(No difference)
|
Latest revision as of 02:11, 19 February 2025
| This is a documentation subpage for Template:Bar percent 2. It may contain usage information, categories and other content that is not part of the original template page. |
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.
}}