Template:Composition bar/doc

This template displays the numeric composition of a thing in terms of its sub-units. For example, it is frequently used as part of Infobox political party to show the number of seats a given political party holds in a legislature.

Usage


In the case of political parties, most will have their logo color available in templates.
 * amount is the number of sub-units
 * total is the total number of sub-units possible
 * color is a valid web color, which can be specified either by name, as a hex triplet (#rrbbgg), or hex triplet.
 * width is the width of the bar in px.
 * per adds a percentage to the bar as well.