Template:Composition bar/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(updating again, template reverted to 2015 version)
(width correction)
Line 3: Line 3:
{{high-use| 4913 }}
{{high-use| 4913 }}


This template displays the numeric composition of a thing in terms of its sub-units. For example, it is frequently used as part of {{tl|Infobox political party}} to show the number of seats a given political party holds in a legislature. A single line version of this template is available at [[Template:Composition bar compact]].
This template displays the numeric composition of a thing in terms of its sub-units. For example, it is frequently used as part of {{tl|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]].


== Usage ==
== Usage ==
Line 19: Line 19:
: (default is medium-dark grey) is the background color of the right part of the bar - a valid [[web colors|web color]].
: (default is medium-dark grey) is the background color of the right part of the bar - a valid [[web colors|web color]].
; width=...
; width=...
: (default is 100%) is the width of the bar
: (default is 100) is the width of the bar in px, only fixed widths in px are supported
; per=...
; per=...
: (default is false), when set to any value (true), adds a percentage to the bar as well
: (default is false), when set to any value (true), adds a percentage to the bar as well