Difference between revisions 631611 and 631612 on mediawikiwiki{{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_seats''|''color''<nowiki>}}</nowiki></code> * ''seats_wonamount'' is the number of seats held by the political partyub-units * ''total_seats'' is the total number of seaub-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]] from most.<br />In the case of political parties, most will have their logo color avaiable in {{tld|political party/meta/color}} templates. == Examples == {| |- ! Code !! Result |- | style="font-size: 95%"| <code><nowiki>{{Composition bar|50|100|red}}</nowiki></code> | {{Composition bar|50|100|red}} |- | style="font-size: 95%"| <code><nowiki>{{Composition bar|50|100|#9999FF}}</nowiki></code> | {{Composition bar|50|100|#9999FF}} |- | style="font-size: 95%"| <code><nowiki>{{Composition bar|50|100|{{Green Party (UK)/meta/color}}}}</nowiki></code> | {{Composition bar|50|100|{{Green Party (UK)/meta/color}}}} |- | style="font-size: 95%"| <code><nowiki>{{Composition bar|50|100|rgb(255,255,16)}}</nowiki></code> | {{Composition bar|50|100|rgb(255,255,16)}} |- |} == See also == * {{tl|Infobox political party}} * {{tl|Bar chartBar chart}} * {{t1|Backlog progress bar}} * {{tl|Percent-done}} * {{tl|Progress}} * {{tl|Progress bar}} * {{tl|Progress box}} * {{tl|Progression}} * {{tl|Progress meter}} <includeonly> <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> [[Category:Template implementation details]] [[Category:Graphic templates]] [[cs:Šablona:Infobox politická strana/mandáty]] [[de:Vorlage:Infobox Partei/Mandate]] [[es:Plantilla:Ficha de partido político/escaños]] [[fr:Modèle:Infobox parti politique/Sièges]] [[id:Templat:Infobox partai politik/kursi]] [[ja:Template:政党/議席数]] [[or:ଛାଞ୍ଚ:Infobox political party/seats]] [[sv:Mall:Partifakta/platser]] [[ur:سانچہ:خانہ معلومات سیاسی جماعت/نشستیں]] </includeonly> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://mediawiki.org/w/index.php?diff=prev&oldid=631612.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|