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. A single line, flexible width version of this template is available at Template:Composition bar compact.
The second parameter is the total number of sub-units possible.
bar-color
(default is light grey) The third parameter is the background color of the left part of the bar - a valid web color, which can be specified by name, as a hex triplet (#rrbbgg), or rgb triplet (rgb(0–255,0–255,0–255)). In the case of political parties, most will have their logo color available in #F8F9FA templates.
Additional display options:
background-color=...
(default is transparent) is the background color of the right part of the bar - a valid web color.
border=...
(default is medium grey) is the color of the border, or "none" for no border
width=...
(default is 100px) a width value for the bar, such as "100%" or "8em" (unitless numbers are interpreted as px)
per=...
(default is false), when set to any value (true), adds a percentage to the bar as well
ref=...
(default is blank), may be used to add a reference/citation for the numbers.
The background color of the left part of the bar - a valid web color, which can be specified by name, as a hex triplet (#rrbbgg), or rgb triplet (rgb(0–255,0–255,0–255)). In the case of political parties, most will have their logo color available in {{party color|political party}} templates.
ਮੂਲ ਰੂਪ
#CCCCCC
Line
optional
Background color
background-color
The background color of the right part of the bar - a valid web color.
ਮੂਲ ਰੂਪ
transparent
Line
optional
Border color
borderborder-color
The color of the border, or 'none' for no border
ਮੂਲ ਰੂਪ
#AAAAAA
Line
optional
Width
width
The width of the bar with units, such as 100% or 10em (unitless numbers are interpreted as px)
ਮੂਲ ਰੂਪ
100px
Line
optional
Show percent
per
When set to 1 (true), adds a percentage to the bar as well