Template:SEO primary election box

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

This is a usage page for the {{SEO primary election box}}.

The election box template is to be used for primary elections only. For the general election box, see {{SEO 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:

{{SEO primary election box, YEAR
|winner1 =
|Inc1 = 
|candidate2 = 
|votes1 = 
|votes2 = 
|ref =

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

  1. candidate1
  2. votes1

For each subsequent candidate, it would change to:

  1. candidate2
  2. votes2


  1. candidate3
  2. votes3


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

Other important notes

  • Add a reference link using "ref = [link]"
  • 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.

{{SEO primary election box
|year = The year of the election
|Office= The title of the election, such as "Mississippi Insurance Commissioner"
|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"
|ref = [The reference link]

Here is an example implemented:

{{SEO primary election box
|year = 2012
|Office=Governor of the Moon Democratic Primary
|winner1 = E Person 1
|votes1 = 800
|Inc1 = Y
|candidate2 = E Person 2
|votes2 = 600
|ref = [http://www.ballotpedia.org Ballotpedia]
Governor of the Moon Democratic Primary, 2012
Candidate Vote % Votes
Green check mark transparent.pngE Person 1 Incumbent 57.1% 800
E Person 2 42.9% 600
Total Votes 1,400
Election Results via Ballotpedia.

Here is the code for a box with four candidates.

{{SEO primary election box 
|year = 2006
|Office=A Republican Primary 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
|ref = [http://www.ballotpedia.org Ballotpedia]
A Republican Primary Election, 2006
Candidate Vote % Votes
Green check mark transparent.pngC Person 1 34.5% 1,500
Green check mark transparent.pngC Person 2 26.4% 1,150
C Person 3 Incumbent 20.7% 900
C Person 4 18.4% 800
Total Votes 4,350
Election Results via Ballotpedia.