Template:SEO election history box

From Ballotpedia
Jump to: navigation, search


{{{Office}}}, {{{year}}}
Party Candidate Vote % Votes
Total Votes 0
Election Results Via:
[edit] Template-info.png Template documentation
This is a usage page for the {{SEO election history box}}.

The election box template is to be used for general elections only.

There are two main items and a summary sentence that compute automatically:

  • Total votes
  • Vote %
  • On {{{date}}}, {{{winner1}}} won the election to office of {{{Office}}}. {{{Pronoun}}} defeated {{{losers}}} in the general election.

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

Usage

Here is the basic code to copy and fill in:

{{SEO election history box
|date = 
|pronoun = 
|new =
|year = 
|Office= 
|party1= 
|winner1 = 
|winners=
|losers = 
|votes1 = 
|Inc1 = 
|party2=
|candidate2 = 
|votes2 = 
|ref = 
}}<br>
}}

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

and...

  1. party3
  2. candidate3
  3. votes3

etc...

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.

{{SEO election history box
|date = Date election was held, such as "August 1, 2013"
|pronoun = "He", "She" or "They" 
|new = "Yes" or "No"
|year = Year election was held
|Office= Office election is for, such as "Governor of Alabama"
|party1= The political party, such as "Democratic" or "Republican"
|winner1 = Name of the winner
|winners= Names of the winners, in case of joint ticket
|losers = Names of all the losers
|votes1 = Number of votes for candidate/winner 1. should be entered without commas, like "230424"
|Inc1 = If the candidate is an incumbent, put "Y"
|party2= The political party, such as "Democratic" or "Republican"
|candidate2 = Name of a candidate
|votes2 = Number of votes for candidate/winner 2. should be entered without commas, like "230424"
|ref = [URL Name of website used]
}}<br>

Here is an example implemented:

{{SEO election history box
|date = August 1, 2012
|pronoun = He
|new = No
|year = 2012
|Office= Governor of the Moon
|party1= Democratic
|winner1 = David Grohl
|losers = Jack Black
|votes1 = 800
|Inc1 = Y
|party2= Republican
|candidate2 = Jack Black 
|votes2 = 600
|ref = [http://www.ballotpedia.org Ballotpedia]
}}
}}

On August 1, 2012, David Grohl won re-election to the office of Governor of the Moon. He defeated Jack Black in the general election.

Governor of the Moon, 2012
Party Candidate Vote % Votes
     Democratic Green check mark transparent.pngDavid Grohl Incumbent 57.1% 800
     Republican Jack Black 42.9% 600
Total Votes 1,400
Election Results Via: Ballotpedia

Here is the code for a box with three candidates.

{{SEO election history box
|date = August 1, 2012
|pronoun = He
|new = No
|year = 2012
|Office= Governor of the Moon
|party1= Democratic
|winner1 = Kurt 
|losers = Krist and David
|votes1 = 800
|Inc1 = Y
|party2= Independent
|candidate2 = Krist
|votes2 = 600
|party3= Republican
|candidate3 = David
|votes3 = 500
|ref = [https://www.ballotpedia.org Ballotpedia]
}}

Joint tickets

See also: Template:SEO dual ticket box/doc

Here is the basic code to copy and fill in:

{{SEO dual ticket box
|date = 
|pronoun = 
|new =
|year = 
|Office= 
|party1= 
|winners1 = 
|winners=
|losers = 
|votes1 = 
|Inc1 = 
|party2=
|candidate2 = 
|votes2 = 
|ref = 
}}

{{SEO dual ticket box
|date = August 1, 2012
|pronoun = They
|year = 2012
|new = No
|Office= Governor and Lt. Governor of the Moon
|party1= Democratic
|winners=Kurt and Friend
|losers = Krist/Friend and David/Friend
|votes1 = 800
|Inc1 = Y
|party2= Independent
|winners1=Kurt & Friend
|candidate2 = Krist & Friend
|votes2 = 600
|party3= Republican
|candidate3 = David & Friend
|votes3 = 500
|ref = [https://www.ballotpedia.org Ballotpedia]
}}<br>

Here is an example implemented:

On August 1, 2012, Kurt and Friend won re-election as Governor and Lt. Governor of the Moon. They defeated the Krist/Friend and David/Friend ticket(s) in the general election.

Governor and Lt. Governor of the Moon, 2012
Party Candidate Vote % Votes
     Democratic Green check mark transparent.pngKurt & Friend Incumbent 42.1% 800
     Independent Krist & Friend 31.6% 600
     Republican David & Friend 26.3% 500
Total Votes 1,900
Election Results Via: Ballotpedia