User:VSkyzv/Template:Congress
From eRepublik Official Wiki
|
|
|
|
|
|
For optimal use, please arrange the parties in descending order by amount of votes, such that the party that gets 50% of the vote is Party 1, the party that gets 40% of the vote is Party 2, and so forth.
Sample Code
{{User:VSkyzv/Template:Congress|
key=1|
seats=40|
width=1024|
p1=Progressive Party|
p1percent=30|
p2=Moderate Party|
p2percent=40|
p3=Conservative Party|
p3percent=12|
p4=Communist Party|
p4percent=10|
p5=Fascist Party|
p5percent=8|
}}
Set "key" to 1 to display and 0 to hide.
{{User:VSkyzv/Template:Congress|
key=1|
p1=Worker's Party|
p1percent=30|
p1color=#5D8AA8|
p2=Green Party|
p2percent=40|
p2color=#F0F8FF|
p3=Centrist Party|
p3percent=12|
p3color=#E32636|
p4=Pacifist Party|
p4percent=10|
p4color=#EFDECD|
p5=Corporate Party|
p5percent=8|
p5color=#E52B50|
}}
If no color is specified, default colors are used. Color names, #000000, or rgb(255, 255, 255) may be used.
Key:
This is greater than 0
Example
30%
40%
12%
10%
8%
Key:
Progressive Party
Moderate Party
Conservative Party
Communist Party
Fascist Party
Total Seats: 40
30%
40%
12%
10%
8%
30%
40%
12%
10%
8%
Key:
Worker's Party
Green Party
Centrist Party
Pacifist Party
Corporate Party
30%
40%
12%
18%
Key:
Paper Party
Plastic Party
Recycle Party
Rubber Party
Steel Party
60%
40%
Key:
Paper Party
Plastic Party
Recycle Party
Rubber Party
Steel Party
100%
Key:
Paper Party
Plastic Party
Recycle Party
Rubber Party
Steel Party
Sandbox
Key: