Note: Ballotpedia will be read-only from 9pm CST on February 25-March 9 while Judgepedia is merged into Ballotpedia.
For status updates, visit
Ballotpedia's coverage of elections held on March 3, 2015, was limited. Select races were covered live, and all results will be added once the merger is complete.

Template:Election box

From Ballotpedia
Jump to: navigation, search
{{{Chamber}}}, {{{year}}}
Party Candidate Vote % Votes
Total Votes 0
[edit] Template-info.png Template documentation

This is a usage page for the {{Election box}}.

The election box template is to be used for general elections only. For the primary election box, see {{Primary election box/doc}}

There are two main items that compute automatically:

  • Total votes
  • Vote %

If the parameters are appropriately filled in, then those pieces of information will be entered automatically by the template.


Here is the basic code to copy and fill in:

{{Election box YEAR
|winner1 =
|Inc1 = 
|candidate2 = 
|votes1 = 
|votes2 = 

There are as many as 30 candidates that can be added to an election box. Quite simply, there are three parameters needed per candidate:

  1. party1
  2. candidate1
  3. votes1

For each subsequent candidate, it would change to:

  1. party2
  2. candidate2
  3. votes2


  1. party3
  2. candidate3
  3. votes3


If the candidate is the winner, then substitute: winner3 for candidate3

Other important notes

  • The winner should always go first, with subsequent candidates in order based on number of votes.
  • If a candidate is an incumbent, simply type "Inc3=Y" and alter the "3" based on which candidate it is.
So if candidate5 is the incumbent, then "Inc5=Y"
  • If when you build the table you want to make it collapsed from the start, enter "Collapse=Yes"

Here is the code with explanations.

{{Election box YEAR
Chamber= The title of the election, such as "U.S. Senate General Election, Massachusetts"
party1=The political party, such as "Democratic" or "Republican"
winner1 = Name of the winner
Inc1 = If the candidate is an incumbent, put "Y"
candidate2 = Name of a candidate
votes1 = Number of votes for candidate/winner 1. should be entered without commas, like "230424"
votes2 = Number of votes for candidate/winner 2. should be entered without commas, like "230424"

Here is an example implemented:

{{Election box 2008
|Chamber=Republic of the Moon General Election, Massachusetts
|winner1 = E Person 1
|votes1 = 800
|Inc1 = Y
|candidate2 = E Person 2
|votes2 = 600
Republic of the Moon General Election, Massachusetts, 2008
Party Candidate Vote % Votes
     Democratic Green check mark transparent.pngE Person 1 Incumbent 57.1% 800
     Republican E Person 2 42.9% 600
Total Votes 1,400

Here is the code for a box with four candidates.

{{Election box 2008
|Chamber=A Test Election
|winner1 = C Person 1
|Inc3 = Y
|winner2= C Person 2
|candidate3 = C Person 3
|candidate4 = C Person 4
|votes1 = 1500
|votes2 = 1150
|votes3 = 900
|votes4 = 800
A Test Election, 2008
Party Candidate Vote % Votes
     Democratic Green check mark transparent.pngC Person 1 34.5% 1,500
     Republican Green check mark transparent.pngC Person 2 26.4% 1,150
     Libertarian C Person 3 Incumbent 20.7% 900
     Democratic C Person 4 18.4% 800
Total Votes 4,350