Template:Infobox election/doc

This infobox describes a presidential, primary, legislative or parliamentary elections.

Usage
Remove fields for different types of elections.




 * *Non-optional fields.
 * &dagger; only displayed if the election is yet to take place.
 * &Dagger; only displayed if the election has finished.

Presidential


Ongoing presidential


Presidential primary


Legislative or parliamentary


Ongoing legislative or parliamentary


By-election


Microformat
Note: If no date is entered, then the microformat is not emitted.

Template Data
{	"description": "An infobox for elections.", "params": { "election_name": { "label": "Name", "description": "Name given to the election.", "type": "string", "default": "PAGENAME", "required": true },		"country": { "label": "Country", "description": "Country where the election took place.", "type": "string", "required": false },		"flag_year": { "label": "Flag year", "description": "For historical elections when an older flag design was in effect, enter the year the flag came into effect (not the election year).", "type": "string", "default": "current flag", "required": false },		"flag_image": { "label": "Flag image", "description": "For non-country elections, specify the full name of the flag, coat-of-arms, or seal image to display.", "type": "string", "required": false },		"type": { "label": "Type", "description": "The type of election. Must be one of four: presidential, legislative, parliamentary or by-election. Legislative after the election will display majority and minority party, rather than first and second party.", "type": "string", "required": true },		"vote_type": { "label": "Vote type", "description": "The type of votes recorded at popular_voten", "type": "string", "default": "Popular", "required": false },		"ongoing": { "label": "Ongoing", "description": "Must be either yes or no, whether the election is yet to take place, or completed. ", "type": "string", "default": "No", "required": true },		"party_colour": { "label": "Party colour", "description": "Also spelled party_color. To turn off the party colours enter 'no'.", "type": "string", "required": false },		"party_name": { "label": "Party name", "description": "To turn off linking to the parties enter 'no'.", "type": "string", "required": false },		"alliance_name": { "label": "Alliance name", "description": "To turn off linking to the alliances enter 'no'.", "type": "string", "required": false },		"previous_election": { "label": "Previous election", "description": "The page name of the last election of this type.", "type": "string", "required": false },		"previous_year": { "label": "Previous year", "description": "The year the last election of this type took place.", "type": "string", "required": false },		"outgoing_members": { "label": "Outgoing members", "description": "The page name of the legislative term (typically including a list of members) serving between the previous election and this election. Can either be a page title or a wiki link.", "type": "string", "required": false },		"election_date": { "label": "Election date", "description": "Date of election - use .", "type": "string", "required": false },		"elected_members": { "label": "Elected members", "description": "The page name of the legislative term (typically including a list of members) serving between this election and the next election. Can either be a page title or a wiki link.", "type": "string", "required": false },		"next_election": { "label": "Next election", "description": "The page name of the next election of this type. If red link (it doesn't exist), then it will appear unlinked.", "type": "string", "required": false },		"next_year": { "label": "Next year", "description": "The year the next election of this type took place.", "type": "string", "required": false },		"votes_for_election": { "label": "Votes for election", "description": "The number of votes for election and the system of voting (eg. Electoral College).", "type": "number", "required": false },		"needed_votes": { "label": "Needed votes", "description": "The number of votes required to win. If there is an even number of votes, use the number that is said by the media.", "type": "string", "required": false },		"seats_for_election": { "label": "Seats for election", "description": "The number of seats for election and the house or chamber the seats are for.", "type": "number", "required": false },		"majority_seats": { "label": "Majority seats", "description": "The number of seats required for a majority government. If there is an even number of seats in the house or chamber, use the number that is said by the media.", "type": "number", "required": false },		"opinion_polls": { "label": "Opinion polls", "description": "Pagename or section anchor of opinion polls.", "type": "string", "required": false },		"turnout": { "label": "Turnout", "description": "Voter turnout for this election.", "type": "string", "required": false },		"image_upright": { "label": "Image upright", "description": "Upright for imagen. See WP:UPRIGHT. Can be overridden by imagen_upright", "type": "string", "required": false },		"image1": { "label": "Image 1", "description": "Image of Nominee, head of Party list or Party Leader. The number can be changed up to nine to display different Nominees, heads of Party list or Leaders at the same time. In order to work, colour1 or party1 must be entered.", "type": "wiki-page-name", "required": false },		"image1_upright": { "label": "Image 1 upright", "description": "Upright for image1. See WP:UPRIGHT. Overrides image_upright", "type": "string", "required": false },		"colour1": { "label": "Colour 1", "description": "Also spelt color1. Enter a hex colour code (without the #) to override the border colour of image1. The number can be changed up to nine to display different Nominees, heads of Party list or Leaders at the same time.", "type": "string", "required": false },		"nominee1": { "label": "Nominee 1", "description": "Name of Nominee. When appropriate, candidate1 can be used instead. The number can be changed up to nine to display different Nominees or Candidates at the same time.", "type": "string", "required": false },		"candidate1": { "label": "Candidate 1", "description": "Name of Candidate. The number can be changed up to nine to display different Candidates at the same time.", "type": "string", "required": false },		"leader1": { "label": "Leader 1", "description": "Name of head of Party list or Party Leader. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"party1": { "label": "Party 1", "description": "Political Party using Political party shortname templates. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"alliance1": { "label": "Alliance 1", "description": "Political alliance in elections where coalition politics is common.", "type": "string", "required": false },		"home_state1": { "label": "Home state 1", "description": "The state the Nominee or Candidate represents. The number can be changed up to nine to display different Nominees at the same time.", "type": "string", "required": false },		"running_mate1": { "label": "Running mate 1", "description": "The Nominee's Running mate. The number can be changed up to nine to display different Nominees at the same time.", "type": "string", "required": false },		"electoral_vote1": { "label": "Electoral vote 1", "description": "The electoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time.", "type": "string", "required": false },		"projected_vote1": { "label": "Projected electoral vote 1", "description": "The electoral votes projected for the Nominee.", "type": "string", "required": false },		"delegate_count1": { "label": "Delegate count 1", "description": "The aggregate number of delegates obtained by the candidate. The number can be changed up to nine to display different candidates at the same time. Intended for use in pre-election processes such as selection of delegates to United States presidential nominating conventions. Intended to be used instead of electoral_vote1 for these cases.", "type": "string", "required": false },		"states_carried1": { "label": "States carried 1", "description": "The states carried or won by the Nominee. The number can be changed up to nine to display different Nominees at the same time.", "type": "string", "required": false },		"districts_won1": { "label": "Districts won 1", "description": "The number of districts won by the Nominee. The number can be changed up to nine to display different Nominees at the same time.", "type": "string", "required": false },		"leader_since1": { "label": "Leader since 1", "description": "The date the Leader took office. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"leaders_seat1": { "label": "Leaders seat 1", "description": "The seat the Leader represents. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"last_election1": { "label": "Last election 1", "description": "The seat count and percentage of the vote received at the previous election. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"seats_before1": { "label": "Seats before 1", "description": "The seat count before the election, labeled 'current seats' if the election is yet to take place. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"seats_needed1": { "label": "Seats needed 1", "description": "The seats required to gain an overall majority. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"seats1": { "label": "Seats 1", "description": "The seats won at the election. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"seats_after1": { "label": "Seats after 1", "description": "The seat count after the election. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"seat_change1": { "label": "Seat change 1", "description": "The change in the number of seats won at the election compared to the previous election. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"popular_vote1": { "label": "Popular vote 1", "description": "The number of votes obtained by the Nominee or Party. The number can be changed up to nine to display different Nominees or Parties at the same time.", "type": "string", "required": false },		"percentage1": { "label": "Percentage 1", "description": "The percentage of the popular vote obtained by the Nominee or Party. The number can be changed up to nine to display different Nominees or Parties at the same time.", "type": "string", "required": false },		"swing1": { "label": "Swing 1", "description": "The swing or change in popular vote at the election compared to the previous election. The number can be changed up to nine to display different Parties at the same time.", "type": "string", "required": false },		"poll1_date": { "label": "Poll 1 date", "description": "The date of an opinion poll. The number can be changed up to five to display different polls at the same time.", "type": "string", "required": false },		"poll1_source": { "label": "Poll 1 source", "description": "The source or URL of the opinion poll. The number can be changed up to five to display different polls at the same time.", "type": "string", "required": false },		"poll1_nominee1": { "label": "Poll 1 nominee1", "description": "The percentage poll 1 gave to nominee 1. When appropriate, poll1_candidate1 can be used instead. The poll number can be changed up to five to display different polls at the same time. The nominee or candidate number can be changed up to nine to display different Nominees or Candidates at the same time.", "type": "string", "required": false },		"poll1_party1": { "label": "Poll 1 party 1", "description": "The percentage poll 1 gave to party 1. The poll number can be changed up to five to display different polls at the same time. The party number can be changed up to nine to display different Nominees at the same time.", "type": "string", "required": false },		"1blank": { "label": "1 blank", "description": "Title of an auxiliary row. The number can be changed up to six to display six extra rows.", "type": "string", "required": false },		"1data1": { "label": "1 data 1", "description": "Data 1 for nominee or party 1. The first number can be changed up to six to display six extra rows. The second number can be changed up to nine to display different Nominees or Parties at the same time.", "type": "string", "required": false },		"map_image": { "label": "Map image", "description": "Page name for the election map file.", "type": "wiki-page-name", "required": false },		"map_size": { "label": "Map size", "description": "Size of image of the election map to be displayed.", "type": "number", "default": "300px", "required": false },		"map_alt": { "label": "Map alt", "description": "Alt text for the election map.", "type": "string", "required": false },		"map": { "label": "Map", "description": "A freeform replacement for the above, which can be used to insert extension:ImageMaps or templates instead of images.", "type": "line", "required": false },		"map_caption": { "label": "Map caption", "description": "Caption on image of the election map to be displayed.", "type": "string", "required": false },		"title": { "label": "Title", "description": "Title of the leader before the election. (President, Speaker, Government, Prime Minister).", "type": "string", "required": false },		"before_election": { "label": "Before election", "description": "The leader in power before the election, labeled incumbent if the election is yet to take place.", "type": "string", "required": false },		"before_party": { "label": "Before party", "description": "The party in power before the election. This can be set to 'Acting (law)' (which will display as 'Acting') if necessary.", "type": "string", "required": false },		"posttitle": { "label": "Post-title", "description": "Title of the victor of the election (President-elect, Prime Minister-designate), only if different than before.", "type": "string", "required": false },		"after_election": { "label": "After election", "description": "The leader in power as a result of the election.", "type": "string", "required": false },		"after_party": { "label": "After party", "description": "The party in power as a result of the election.", "type": "string", "required": false },		"map2_image": {}, "map2": {}, "map3_image": {}, "map3": {}, "map4_image": {}, "map4": {}, "map2_size": {}, "map3_size": {}, "map4_size": {}, "previous_mps": { "type": "string", "deprecated": true },		"elected_mps": { "type": "string", "deprecated": true },		"registered": {}, "votes_counted": {}, "last_update": {}, "time_zone": {}, "reporting": {}, "declared": {}, "color3": {}, "colour3": {}, "image3": {}, "nominee3": {}, "candidate3": {}, "leader3": {}, "party3": {}, "alliance3": {}, "home_state3": {}, "running_mate3": {}, "electoral_vote3": {}, "delegate_count3": {}, "states_carried3": {}, "leader_since3": {}, "leaders_seat3": {}, "last_election3": {}, "seats_before3": {}, "seats_needed3": {}, "seats3": {}, "seats_after3": {}, "seat_change3": {}, "popular_vote3": {}, "percentage3": {}, "swing3": {}, "poll1_nominee3": {}, "poll1_candidate3": {}, "poll2_nominee3": {}, "poll2_candidate3": {}, "poll3_nominee3": {}, "poll3_candidate3": {}, "poll4_nominee3": {}, "poll4_candidate3": {}, "poll5_nominee3": {}, "poll5_candidate3": {}, "poll1_party3": {}, "poll2_party3": {}, "poll3_party3": {}, "poll4_party3": {}, "poll5_party3": {}, "1data3": {}, "2data3": {}, "3data3": {}, "4data3": {}, "5data3": {}, "6data3": {}, "party_color": {}, "color1": {}, "color2": {}, "colour2": {}, "image_size": {}, "image1_size": {}, "image2": {}, "image2_size": {}, "image2_upright": {}, "image3_size": {}, "image3_upright": {}, "nominee2": {}, "candidate2": {}, "leader2": {}, "party2": {}, "alliance2": {}, "home_state2": {}, "running_mate2": {}, "college_voted": {}, "electoral_vote2": {}, "delegate_count2": {}, "states_carried2": {}, "leader_since2": {}, "leaders_seat2": {}, "last_election2": {}, "seats_before2": {}, "seats_needed2": {}, "seats2": {}, "seats_after2": {}, "seat_change2": {}, "popular_vote2": {}, "percentage2": {}, "counties_won1": {}, "counties_won2": {}, "counties_won3": {}, "counties_threshold1": {}, "counties_threshold2": {}, "counties_threshold3": {}, "swing2": {}, "poll1_date1": {}, "poll1_source1": {}, "poll1_candidate1": {}, "poll1_nominee2": {}, "poll1_candidate2": {}, "poll2_date1": {}, "poll2_date": {}, "poll2_source1": {}, "poll2_source": {}, "poll2_nominee1": {}, "poll2_candidate1": {}, "poll2_nominee2": {}, "poll2_candidate2": {}, "poll3_date1": {}, "poll3_date": {}, "poll3_source1": {}, "poll3_source": {}, "poll3_nominee1": {}, "poll3_candidate1": {}, "poll3_nominee2": {}, "poll3_candidate2": {}, "poll4_date1": {}, "poll4_date": {}, "poll4_source1": {}, "poll4_source": {}, "poll4_nominee1": {}, "poll4_candidate1": {}, "poll4_nominee2": {}, "poll4_candidate2": {}, "poll5_date1": {}, "poll5_date": {}, "poll5_source1": {}, "poll5_source": {}, "poll5_nominee1": {}, "poll5_candidate1": {}, "poll5_nominee2": {}, "poll5_candidate2": {}, "poll1_party2": {}, "poll2_party1": {}, "poll2_party2": {}, "poll3_party1": {}, "poll3_party2": {}, "poll4_party1": {}, "poll4_party2": {}, "poll5_party1": {}, "poll5_party2": {}, "1data2": {}, "2blank": {}, "2data1": {}, "2data2": {}, "3blank": {}, "3data1": {}, "3data2": {}, "4blank": {}, "4data1": {}, "4data2": {}, "5blank": {}, "5data1": {}, "5data2": {}, "6blank": {}, "6data1": {}, "6data2": {}, "color6": {}, "colour6": {}, "image6": {}, "nominee6": {}, "candidate6": {}, "leader6": {}, "party6": {}, "alliance6": {}, "home_state6": {}, "running_mate6": {}, "electoral_vote6": {}, "delegate_count6": {}, "states_carried6": {}, "leader_since6": {}, "leaders_seat6": {}, "last_election6": {}, "seats_before6": {}, "seats_needed6": {}, "seats6": {}, "seats_after6": {}, "seat_change6": {}, "popular_vote6": {}, "percentage6": {}, "swing6": {}, "poll1_nominee6": {}, "poll1_candidate6": {}, "poll2_nominee6": {}, "poll2_candidate6": {}, "poll3_nominee6": {}, "poll3_candidate6": {}, "poll4_nominee6": {}, "poll4_candidate6": {}, "poll5_nominee6": {}, "poll5_candidate6": {}, "poll1_party6": {}, "poll2_party6": {}, "poll3_party6": {}, "poll4_party6": {}, "poll5_party6": {}, "1data6": {}, "2data6": {}, "3data6": {}, "4data6": {}, "5data6": {}, "6data6": {}, "color4": {}, "colour4": {}, "color5": {}, "colour5": {}, "image4": {}, "image4_size": {}, "image4_upright": {}, "image5": {}, "image5_size": {}, "image5_upright": {}, "image6_size": {}, "image6_upright": {}, "nominee4": {}, "nominee5": {}, "candidate4": {}, "candidate5": {}, "leader4": {}, "leader5": {}, "party4": {}, "party5": {}, "alliance4": {}, "alliance5": {}, "home_state4": {}, "home_state5": {}, "running_mate4": {}, "running_mate5": {}, "electoral_vote4": {}, "electoral_vote5": {}, "delegate_count4": {}, "delegate_count5": {}, "states_carried4": {}, "states_carried5": {}, "leader_since4": {}, "leader_since5": {}, "leaders_seat4": {}, "leaders_seat5": {}, "last_election4": {}, "last_election5": {}, "seats_before4": {}, "seats_before5": {}, "seats_needed4": {}, "seats_needed5": {}, "seats4": {}, "seats5": {}, "seats_after4": {}, "seats_after5": {}, "seat_change4": {}, "seat_change5": {}, "popular_vote4": {}, "popular_vote5": {}, "percentage4": {}, "percentage5": {}, "swing4": {}, "swing5": {}, "poll1_date2": {}, "poll1_source2": {}, "poll1_nominee4": {}, "poll1_candidate4": {}, "poll1_nominee5": {}, "poll1_candidate5": {}, "poll2_date2": {}, "poll2_source2": {}, "poll2_nominee4": {}, "poll2_candidate4": {}, "poll2_nominee5": {}, "poll2_candidate5": {}, "poll3_date2": {}, "poll3_source2": {}, "poll3_nominee4": {}, "poll3_candidate4": {}, "poll3_nominee5": {}, "poll3_candidate5": {}, "poll4_date2": {}, "poll4_source2": {}, "poll4_nominee4": {}, "poll4_candidate4": {}, "poll4_nominee5": {}, "poll4_candidate5": {}, "poll5_date2": {}, "poll5_source2": {}, "poll5_nominee4": {}, "poll5_candidate4": {}, "poll5_nominee5": {}, "poll5_candidate5": {}, "poll1_party4": {}, "poll1_party5": {}, "poll2_party4": {}, "poll2_party5": {}, "poll3_party4": {}, "poll3_party5": {}, "poll4_party4": {}, "poll4_party5": {}, "poll5_party4": {}, "poll5_party5": {}, "1data4": {}, "1data5": {}, "2data4": {}, "2data5": {}, "3data4": {}, "3data5": {}, "4data4": {}, "4data5": {}, "5data4": {}, "5data5": {}, "6data4": {}, "6data5": {}, "color9": {}, "colour9": {}, "image9": {}, "nominee9": {}, "candidate9": {}, "leader9": {}, "party9": {}, "alliance9": {}, "home_state9": {}, "running_mate9": {}, "electoral_vote9": {}, "delegate_count9": {}, "states_carried9": {}, "leader_since9": {}, "leaders_seat9": {}, "last_election9": {}, "seats_before9": {}, "seats_needed9": {}, "seats9": {}, "seats_after9": {}, "seat_change9": {}, "popular_vote9": {}, "percentage9": {}, "counties_won9": {}, "counties_threshold9": {}, "swing9": {}, "poll1_nominee9": {}, "poll1_candidate9": {}, "poll2_nominee9": {}, "poll2_candidate9": {}, "poll3_nominee9": {}, "poll3_candidate9": {}, "poll4_nominee9": {}, "poll4_candidate9": {}, "poll5_nominee9": {}, "poll5_candidate9": {}, "poll1_party9": {}, "poll2_party9": {}, "poll3_party9": {}, "poll4_party9": {}, "poll5_party9": {}, "1data9": {}, "2data9": {}, "3data9": {}, "4data9": {}, "5data9": {}, "6data9": {}, "color7": {}, "colour7": {}, "color8": {}, "colour8": {}, "image7": {}, "image7_size": {}, "image7_upright": {}, "image8": {}, "image8_size": {}, "image8_upright": {}, "image9_size": {}, "image9_upright": {}, "nominee7": {}, "nominee8": {}, "candidate7": {}, "candidate8": {}, "leader7": {}, "leader8": {}, "party7": {}, "party8": {}, "alliance7": {}, "alliance8": {}, "home_state7": {}, "home_state8": {}, "running_mate7": {}, "running_mate8": {}, "electoral_vote7": {}, "electoral_vote8": {}, "delegate_count7": {}, "delegate_count8": {}, "states_carried7": {}, "states_carried8": {}, "leader_since7": {}, "leader_since8": {}, "leaders_seat7": {}, "leaders_seat8": {}, "last_election7": {}, "last_election8": {}, "seats_before7": {}, "seats_before8": {}, "seats_needed7": {}, "seats_needed8": {}, "seats7": {}, "seats8": {}, "seats_after7": {}, "seats_after8": {}, "seat_change7": {}, "seat_change8": {}, "popular_vote7": {}, "popular_vote8": {}, "percentage7": {}, "percentage8": {}, "swing7": {}, "swing8": {}, "poll1_date3": {}, "poll1_source3": {}, "poll1_nominee7": {}, "poll1_candidate7": {}, "poll1_nominee8": {}, "poll1_candidate8": {}, "poll2_date3": {}, "poll2_source3": {}, "poll2_nominee7": {}, "poll2_candidate7": {}, "poll2_nominee8": {}, "poll2_candidate8": {}, "poll3_date3": {}, "poll3_source3": {}, "poll3_nominee7": {}, "poll3_candidate7": {}, "poll3_nominee8": {}, "poll3_candidate8": {}, "poll4_date3": {}, "poll4_source3": {}, "poll4_nominee7": {}, "poll4_candidate7": {}, "poll4_nominee8": {}, "poll4_candidate8": {}, "poll5_date3": {}, "poll5_source3": {}, "poll5_nominee7": {}, "poll5_candidate7": {}, "poll5_nominee8": {}, "poll5_candidate8": {}, "poll1_party7": {}, "poll1_party8": {}, "poll2_party7": {}, "poll2_party8": {}, "poll3_party7": {}, "poll3_party8": {}, "poll4_party7": {}, "poll4_party8": {}, "poll5_party7": {}, "poll5_party8": {}, "1data7": {}, "1data8": {}, "2data7": {}, "2data8": {}, "3data7": {}, "3data8": {}, "4data7": {}, "4data8": {}, "5data7": {}, "5data8": {}, "6data7": {}, "6data8": {}, "map2_alt": {}, "map2_caption": {}, "map3_alt": {}, "map3_caption": {}, "map4_alt": {}, "map4_caption": {}, "!": {},		"template_name": {} },	"format": "block" }