3,060
edits
(→Examples: show another example) |
Metriximor (talk | contribs) m (60 revisions imported from wikipedia:Template:Composition_bar/doc) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!--
{{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, flexible width version of this template is available at [[Template:Composition bar compact]]. A textless, single line, flexible width version of this template is available at [[Template:Composition bar textless]].
== Usage ==
Line 13:
: 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 colors|web color]], which can be specified by name, as a [[hex triplet]] (#rrbbgg), or rgb triplet (rgb(0–255,0–255,0–255)).<br />In the case of political parties, most will have their logo color available in {{
Additional display options:
Line 130:
<includeonly>{{When on basepage
| <!-- Categories
[[Category:Chart, diagram and graph templates]]
[[Category:Wikipedia progress templates]]
|