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


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

Template Data
{ "description": "An infobox for election.", "params": { "election_name": { "label": "Name", "description": "Name given to the election.", "type": "string", "default": "PAGENAME", "required": false }, "country": { "label": "Country", "description": "Country where the election took place.", "type": "string", "default": "", "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", "default": "", "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", "default": "", "required": false }, "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": false }, "party_colour": { "label": "Party colour", "description": "Also spelled party_color. To turn off the party colours enter 'no'.", "type": "string", "default": "", "required": false }, "party_name": { "label": "Party name", "description": "To turn off linking to the parties enter 'no'.", "type": "string", "default": "", "required": false }, "alliance_name": { "label": "Alliance name", "description": "To turn off linking to the alliances enter 'no'.", "type": "string", "default": "", "required": false }, "previous_election": { "label": "Previous election", "description": "The page name of the last election of this type.", "type": "string", "default": "", "required": false }, "previous_year": { "label": "Previous year", "description": "The year the last election of this type took place.", "type": "string", "default": "", "required": false }, "previous_mps": { "label": "Previous members", "description": "Also spelled previous_MPs or previous_members, page name for the members elected in the last election.", "type": "string", "default": "", "required": false }, "election_date": { "label": "Election date", "description": "Date of election - use .", "type": "string", "default": "", "required": false }, "elected_mps": { "label": "Elected MPs", "description": "Wikilink to the MPs elected in this election.", "type": "string", "default": "", "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", "default": "", "required": false }, "next_year": { "label": "Next year", "description": "The year the next election of this type took place.", "type": "string", "default": "", "required": false }, "next_mps": { "label": "Next MPs", "description": "Also spelled next_MPs or next_members, page name for the members elected in the next election.", "type": "string", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "required": false }, "opinion_polls": { "label": "Opinion polls", "description": "Pagename or section anchor of opinion polls.", "type": "string", "default": "", "required": false }, "turnout": { "label": "Turnout", "description": "Voter turnout for this election.", "type": "string", "default": "", "required": false }, "image1": { "label": "Image 1", "description": "mage 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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "required": false }, "alliance1": { "label": "Alliance 1", "description": "Political alliance in elections where coalition politics is common.", "type": "string", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "required": false }, "states_carried1": { "label": "States carried 1", "description": "he 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", "default": "", "required": false }, "districts_won1": { "label": "Districts won 1", "description": "The number of disticts won by the Nominee. The number can be changed up to nine to display different Nominees at the same time.", "type": "string", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "required": false }, "map_image": { "label": "Map image", "description": "Page name for the election map file.", "type": "wiki-page-name", "default": "", "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", "default": "", "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", "default": "", "required": false }, "map_caption": { "label": "Map caption", "description": "Caption on image of the election map to be displayed.", "type": "string", "default": "", "required": false }, "title": { "label": "Title", "description": "Title of the leader before the election. (President, Speaker, Government, Prime Minister).", "type": "string", "default": "", "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", "default": "", "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", "default": "", "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", "default": "", "required": false }, "after_election": { "label": "After election", "description": "The leader in power as a result of the election.", "type": "string", "default": "", "required": false }, "after_party": { "label": "After party", "description": "The party in power as a result of the election.", "type": "string", "default": "", "required": false } } }