Template:Composition bar/doc: Difference between revisions

Document new parameters
m (→‎Usage: Cleanup/Typo fixing, typos fixed: avaiable → available using AWB)
(Document new parameters)
Line 11:
* ''total'' is the total number of sub-units possible
* ''color'' is a valid [[web colors|web color]], which can be specified either by name, as a [[hex triplet]] (#rrbbgg), or [[hex triplet]].<br />In the case of political parties, most will have their logo color available in {{tld|political party/meta/color}} templates.
* ''width'' is the width of the bar in px.
* ''per'' adds a percentage to the bar as well.
 
== Examples ==
Line 30 ⟶ 32:
| {{Composition bar|50|100|rgb(255,255,16)}}
|-
| style="font-size: 95%"| <code><nowiki>{{Composition bar|75|100|#FF0|width=250}}</nowiki></code>
| {{Composition bar|75|100|#FF0|width=250}}
|-
| style="font-size: 95%"| <code><nowiki>{{Composition bar|90|100|#F00|width=500|per=1}}</nowiki></code>
| {{Composition bar|90|100|#F00|width=500|per=1}}
|}