Difference between revisions 631599 and 631600 on mediawikiwiki

{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

=== Usage ===
<pre>
{{

:<code><nowiki>{{</nowiki>Infobox political party/seats|''seats_won|''|''total_seats|red|green|blue}}
{{Infobox political party/seats|seats_won|total_seats|hex=#rrggbb}}
</pre>

Where red, green and blue are numbers between 0 and 1.

Alternatively, use the [[hex triplet]] from most {{tl|Conservative Party (UK)/meta/color}} and similar templates:

Do not pad values with spaces.

=== See also ===''|color=''color''<nowiki>}}</nowiki></code>

* ''seats_won'' is the number of seats held by the political party
* ''total_seats'' is the total number of seats 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 {{tld|political party/meta/color}} templates.

== Examples ==

{| 
|-
! Code !! Result
|-
| <code><nowiki>{{Infobox political party/seats|50|100|color=red}}</nowiki></code>
| {{Infobox political party/seats|50|100|color=red}}
|-
| <code><nowiki>{{Infobox political party/seats|50|100|color=#00FF00}}</nowiki></code>
| {{Infobox political party/seats|50|100|color=#00FF00}}
|-
| <code><nowiki>{{Infobox political party/seats|50|100|color={{Conservative Party (UK)/meta/color}}}}</nowiki></code>
| {{Infobox political party/seats|50|100|color={{Conservative Party (UK)/meta/color}}}}
|-
| <code><nowiki>{{Infobox political party/seats|50|100|color=rgb(255,255,16)}}</nowiki></code>
| {{Infobox political party/seats|50|100|color=rgb(255,255,16)}}
|-
|}

== See also ==
* {{tl|Infobox political party}}
* {{tl|Bar graph}}

<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[cs:Šablona:Infobox politická strana/mandáty]]
[[sv:Mall:Partifakta/platser]]
</includeonly>