Template:Composition bar/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Update template) |
(Genericize. See also various similar templates.) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
<!-- 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 == |
== Usage == |
||
:<code><nowiki>{{</nowiki>Composition bar|'' |
:<code><nowiki>{{</nowiki>Composition bar|''amount''|''total''|''color''<nowiki>}}</nowiki></code> |
||
* '' |
* ''amount'' is the number of sub-units |
||
* '' |
* ''total'' is the total number of sub-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]] |
* ''color'' is a valid [[web colors|web color]], which can be specified either by name, as a [[hex triplet]] (#rrbbgg), or [[hex triplet]].<br />In the case of political parties, most will have their logo color avaiable in {{tld|political party/meta/color}} templates. |
||
== Examples == |
== Examples == |
||
Line 31: | Line 33: | ||
== See also == |
== See also == |
||
* {{tl|Infobox political party}} |
|||
* {{tl|Bar chart}} |
* {{tl|Bar chart}} |
||
* {{t1|Backlog progress bar}} |
|||
* {{tl|Percent-done}} |
|||
* {{tl|Progress}} |
|||
* {{tl|Progress bar}} |
|||
* {{tl|Progress box}} |
|||
* {{tl|Progression}} |
|||
* {{tl|Progress meter}} |
|||
<includeonly> |
<includeonly> |