Difference between revisions of "Template:Seats"

From eRepublik Official Wiki
Jump to: navigation, search
m
(No difference)

Revision as of 16:14, 20 December 2011


edit

Complex.png Complex template

The code of this template is really complex, please use your sandbox before editing this template


If you are a editor and would like a breakdown of this template's complex code, please see Template talk:Seats

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

{{Seats|
  key=1|

  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. Set "seats" to the number of total seats decided in the election to display it in the key. Set "width" to a custom value (numbers only, no % or px since the template automatically uses px) to set the graph to a custom width.

{{Seats|
  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.

Example

30%

40%

12%

10%

8%

Key:

Progressive Party

Moderate Party

Conservative Party

Communist Party

Fascist Party


30%

40%

12%

10%

8%


30%

40%

12%

10%

8%

Key:

Worker's Party

Green Party

Centrist Party

Pacifist Party

Corporate Party


Sandbox

Key:

Key: