Template:Infobox election/doc

This infobox describes a presidential, legislative or parliamentary election.

Usage
Remove fields for different types of election.


 * *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


Legislative or parliamentary


Ongoing legislative or parliamentary


By-election


Templatedata
{	"description": "", "params": { "election_name ": { "label": "election name ", "type": "string", "required": true, "description": "Name given to the election. If this field is left empty the page name is displayed" },		"country": { "label": "country", "type": "string", "required": false, "description": "Country where the election took place." },		"flag_year ": { "label": "flag_year ", "type": "string", "required": false, "description": "For historical elections when an older flag design was in effect, enter the year the flag came into effect (not the election year). Default is to use the current flag." },		"flag_image ": { "label": "flag_image ", "type": "string", "required": false, "description": "For non-country elections, specify the full name of the flag, coat-of-arms, or seal image to display." },		"type ": { "label": "type ", "type": "string", "required": true, "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." },		"vote_type ": { "label": "vote_type ", "type": "string", "required": false, "description": "The type of votes recorded at popular_voten. Defaults to \"Popular\"." },		"ongoing ": { "label": "ongoing ", "type": "string", "required": true, "description": "Must be either yes or no, whether the election is yet to take place, or completed. Fields marked with a † are only displayed if the election is yet to take place. Fields marked with a ‡ are only displayed if the election has finished. (Default no.)" },		"party_colour ": { "label": "party_colour ", "type": "string", "required": false, "description": "Also spelled party_color. To turn off the party colours enter 'no'." },		"party_name": { "label": "party_name", "type": "string", "required": false, "description": "To turn off linking to the parties enter 'no'." },		"previous_election": { "label": "previous_election", "type": "string", "required": false, "description": "The page name of the last election of this type." },		"previous_year": { "label": "previous_year", "type": "string", "required": false, "description": "The year the last election of this type took place." },		"previous_mps": { "label": "previous_mps", "type": "string", "required": false, "description": "Also spelled previous_MPs or previous_members, page name for the members elected in the last election." },		"election_date ": { "label": "election_date ", "type": "string", "required": false, "description": "Date of election" },		"elected_mps ": { "label": "elected_mps ", "type": "string", "required": false, "description": " the MPs elected in this election.vvvv" },		"next_election ": { "label": "next_election ", "type": "string", "required": false, "description": "The page name of the next election of this type. If red link (it doesn't exist), then it will appear unlinked." },		" next_year ": { "label": " next_year ", "type": "string", "required": false, "description": "The year the next election of this type took place." },		"next_mps ": { "label": "next_mps ", "type": "string", "required": false, "description": "Also spelled next_MPs or next_members, page name for the members elected in the next election." },		"votes_for_election": { "label": "votes_for_election", "type": "string", "required": false, "description": "The number of votes for election and the system of voting (eg. Electoral College)." },		" needed_votes ": { "label": " needed_votes ", "type": "string", "required": false, "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." },		"seats_for_election": { "label": "seats_for_election", "type": "string", "required": false, "description": "The number of seats for election and the house or chamber the seats are for." },		"majority_seats": { "label": "majority_seats", "type": "string", "required": false, "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." },		"opinion_polls ": { "label": "opinion_polls ", "type": "string", "required": false, "description": "Pagename or section anchor of opinion polls." },		"turnout ": { "label": "turnout ", "type": "string", "required": false, "description": "\tVoter turnout for this election." },		"image1": { "label": "image1", "type": "string", "required": false, "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." },		"image2": { "label": "image2", "type": "string", "required": false, "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." },		"colour1 ": { "label": "colour1 ", "type": "string", "required": false, "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." },		"colour2": { "label": "colour2", "type": "string", "required": false, "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." },		"nominee1 ": { "label": "nominee1 ", "type": "string", "required": false, "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." },		"nominee2": { "label": "nominee2", "type": "string", "required": false, "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." },		"candidate1 ": { "label": "candidate1 ", "type": "string", "required": false, "description": "Name of Candidate. The number can be changed up to nine to display different Candidates at the same time." },		"candidate2": { "label": "candidate2", "type": "string", "required": false, "description": "Name of Candidate. The number can be changed up to nine to display different Candidates at the same time." },		"leader1": { "label": "leader1", "type": "string", "required": false, "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." },		"leader2": { "label": "leader2", "type": "string", "required": false, "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." },		"party1 ": { "label": "party1 ", "type": "string", "required": false, "description": "\tPolitical Party using Political party shortname templates. The number can be changed up to nine to display different Parties at the same time." },		"party2": { "label": "party2", "type": "string", "required": false, "description": "\tPolitical Party using Political party shortname templates. The number can be changed up to nine to display different Parties at the same time." },		"alliance1 ": { "label": "alliance1 ", "type": "string", "required": false, "description": "Political alliance in elections where coalition politics is common." },		"alliance2": { "label": "alliance2", "type": "string", "required": false, "description": "Political alliance in elections where coalition politics is common." },		"home_state1 ": { "label": "home_state1 ", "type": "string", "required": false, "description": "The state the Nominee or Candidate represents. The number can be changed up to nine to display different Nominees at the same time." },		"home_state2": { "label": "home_state2", "type": "string", "required": false, "description": "The state the Nominee or Candidate represents. The number can be changed up to nine to display different Nominees at the same time." },		"running_mate1 ": { "label": "running_mate1 ", "type": "string", "required": false, "description": "The Nominee's Running mate. The number can be changed up to nine to display different Nominees at the same time." },		"running_mate2 ": { "label": "running_mate2 ", "type": "string", "required": false, "description": "The Nominee's Running mate. The number can be changed up to nine to display different Nominees at the same time." },		"electoral_vote1": { "label": "electoral_vote1", "type": "string", "required": false, "description": "The electoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time." },		"electoral_vote2": { "label": "electoral_vote2", "type": "string", "required": false, "description": "The electoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time." },		"delegate_count1 ": { "label": "delegate_count1 ", "type": "string", "required": false, "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." },		"delegate_count2": { "label": "delegate_count2", "type": "string", "required": false, "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." },		"states_carried1 ": { "label": "states_carried1 ", "type": "string", "required": false, "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." },		"states_carried2": { "label": "states_carried2", "type": "string", "required": false, "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." },		"leader_since1": { "label": "leader_since1", "type": "string", "required": false, "description": "The date the Leader took office. The number can be changed up to nine to display different Parties at the same time." },		"leader_since2": { "label": "leader_since2", "type": "string", "required": false, "description": "The date the Leader took office. The number can be changed up to nine to display different Parties at the same time." },		"leaders_seat1": { "label": "leaders_seat1", "type": "string", "required": false, "description": "The seat the Leader represents. The number can be changed up to nine to display different Parties at the same time." },		"leaders_seat2": { "label": "leaders_seat2", "type": "string", "required": false, "description": "The seat the Leader represents. The number can be changed up to nine to display different Parties at the same time." },		"last_election1": { "label": "last_election1", "type": "string", "required": false, "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." },		"last_election2": { "label": "last_election2", "type": "string", "required": false, "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." },		"seats_before1": { "label": "seats_before1", "type": "string", "required": false, "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." },		"seats_before2": { "label": "seats_before2", "type": "string", "required": false, "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." },		"seats_needed1": { "label": "seats_needed1", "type": "string", "required": false, "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." },		"seats_needed2": { "label": "seats_needed2", "type": "string", "required": false, "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." },		"seats1 ": { "label": "seats1 ", "type": "string", "required": false, "description": "The seats won at the election. The number can be changed up to nine to display different Parties at the same time." },		"seats2": { "label": "seats2", "type": "string", "required": false, "description": "The seats won at the election. The number can be changed up to nine to display different Parties at the same time." },		"seats_after1 ": { "label": "seats_after1 ", "type": "string", "required": false, "description": "The seat count after the election. The number can be changed up to nine to display different Parties at the same time." },		"seats_after2": { "label": "seats_after2", "type": "string", "required": false, "description": "The seat count after the election. The number can be changed up to nine to display different Parties at the same time." },		"seat_change1": { "label": "seat_change1", "type": "string", "required": false, "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." },		"seat_change2": { "label": "seat_change2", "type": "string", "required": false, "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." },		"popular_vote1": { "label": "popular_vote1", "type": "string", "required": false, "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." },		"popular_vote2": { "label": "popular_vote2", "type": "string", "required": false, "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." },		"percentage1 ": { "label": "percentage1 ", "type": "string", "required": false, "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." },		"percentage2": { "label": "percentage2", "type": "string", "required": false, "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." },		"swing1": { "label": "swing1", "type": "string", "required": false, "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." },		"swing2": { "label": "swing2", "type": "string", "required": false, "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." },		"poll1_date ": { "label": "poll1_date ", "type": "string", "required": false, "description": "The date of an opinion poll. The number can be changed up to five to display different polls at the same time." },		"poll1_source": { "label": "poll1_source", "type": "string", "required": false, "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." },		"poll1_nominee1": { "label": "poll1_nominee1", "type": "string", "required": false, "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." },		"poll1_party1": { "label": "poll1_party1", "type": "string", "required": false, "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." },		"poll1_nominee2 ": { "label": "poll1_nominee2 ", "type": "string", "required": false, "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." },		"poll1_party2 ": { "label": "poll1_party2 ", "type": "string", "required": false, "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." },		"poll2_date": { "label": "poll2_date", "type": "string", "required": false, "description": "The date of an opinion poll. The number can be changed up to five to display different polls at the same time." },		"poll2_source ": { "label": "poll2_source ", "type": "string", "required": false, "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." },		"poll2_nominee1": { "label": "poll2_nominee1", "type": "string", "required": false, "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." },		"poll2_party1 ": { "label": "poll2_party1 ", "type": "string", "required": false, "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." },		"poll2_nominee2 ": { "label": "poll2_nominee2 ", "type": "string", "required": false, "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." },		"poll2_party2 ": { "label": "poll2_party2 ", "type": "string", "required": false, "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." },		"1blank": { "label": "1blank", "type": "string", "required": false, "description": "Title of an auxiliary row. The number can be changed up to six to display six extra rows." },		"1data1": { "label": "1data1", "type": "string", "required": false, "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." },		"1data2 ": { "label": "1data2 ", "type": "string", "required": false, "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." },		"2blank ": { "label": "2blank ", "type": "string", "required": false, "description": "Title of an auxiliary row. The number can be changed up to six to display six extra rows." },		"2data1  ": { "label": "2data1  ", "type": "string", "required": false, "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." },		"2data2 ": { "label": "2data2 ", "type": "string", "required": false, "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." },		"map_image ": { "label": "map_image ", "type": "string", "required": false, "description": "Page name for the election map file." },		"map_size ": { "label": "map_size ", "type": "string", "required": false, "description": "Size of image of the election map to be displayed. (Default 300px)." },		"map_alt ": { "label": "map_alt ", "type": "string", "required": false, "description": "Alt text for the election map." },		" map ": { "label": " map ", "type": "string", "required": false, "description": "\tA freeform replacement for the above, which can be used to insert extension:ImageMaps or templates instead of images." },		" map_caption ": { "label": " map_caption ", "type": "string", "required": false, "description": "Caption on image of the election map to be displayed." },		"title ": { "label": "title ", "type": "string", "required": false, "description": "Title of the leader before the election. (President, Speaker, Government, Prime Minister...)" },		"before_election ": { "label": "before_election ", "type": "string", "required": false, "description": "The leader in power before the election, labeled incumbent if the election is yet to take place." },		"before_party ": { "label": "before_party ", "type": "string", "required": false, "description": "The party in power before the election. This can be set to \"Acting (law)\" (which will display as \"Acting\") if necessary." },		"posttitle ": { "label": "posttitle ", "type": "string", "required": false, "description": "Title of the victor of the election (President-elect, Prime Minister-designate...), only if different than before." },		"after_election": { "label": "after_election", "type": "string", "required": false, "description": "The leader in power as a result of the election." },		"after_party ": { "label": "after_party ", "type": "string", "required": false, "description": "The party in power as a result of the election." }	} }

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