Template:Composition bar/doc: Difference between revisions

Genericize. See also various similar templates.
(Update template)
(Genericize. See also various similar templates.)
Line 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
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.
 
== Usage ==
 
:<code><nowiki>{{</nowiki>Composition bar|''seats_wonamount''|''total_seatstotal''|''color''<nowiki>}}</nowiki></code>
 
* ''seats_wonamount'' is the number of seats held by the political partysub-units
* ''total_seatstotal'' is the total number of seatssub-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 from/>In the case of political parties, most will have their logo color avaiable in {{tld|political party/meta/color}} templates.
 
== Examples ==
Line 31 ⟶ 33:
 
== See also ==
* {{tl|Infobox political party}}
* {{tl|Bar chart}}
* {{t1|Backlog progress bar}}
* {{tl|Percent-done}}
* {{tl|Progress}}
* {{tl|Progress bar}}
* {{tl|Progress box}}
* {{tl|Progression}}
* {{tl|Progress meter}}
 
<includeonly>
Anonymous user