Template:Parliament diagram/doc

From Infarupedia
< Template:Parliament diagram
Revision as of 19:55, 4 July 2024 by wikipedia>DB1729 (Category:Politics and government templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Arguments

<syntaxhighlight lang="wikitext">

3

</syntaxhighlight>

Width
Width in pixels of the created image; the corresponding height is calculated automatically. Predefined values: 1–28 seats, 280px; 29–100 seats, 300px; over 101 seats, 350px.
Height
Height in pixels of the created image, the width is calculated automatically. The parameter is ignored if width is defined.
Show
If value of 1, the summary data of seats is shown (colored box & number); if value of 2 a list with colored box, party name, and number is shown; dafault value is 0.
Background
Defines the background color using a hex color.
n1, n2, ...
Number of seats of each group or party
c1, c2, ...
Color of the seats for each group or party, indicated as a hex color (3- or 6-digits). Predefined value: #CCC.
p1, p2, ...
Name of the party to use the Module:Political party template (automatic loading of the color)
b1, b2, ...
Eventual color of the circle borders

Use examples

<syntaxhighlight lang="wikitext">

522
152
20

</syntaxhighlight>

232
386
12

<syntaxhighlight lang="wikitext">

60
620
620

</syntaxhighlight>

60
620
620

<syntaxhighlight lang="wikitext">

60
620
620

</syntaxhighlight>

60
620
620

<syntaxhighlight lang="wikitext">

60
620
620

</syntaxhighlight>

60
620
620