Template:Infobox election/doc

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

Usage
Remove fields for different types of elections


 * leader_since2    = 1975
 * leaders_seat2    = 341
 * last_election2   = 302
 * seats_before2    = 311
 * seats_needed2    = 290
 * seats2           = 164
 * seats_after2     = 141
 * seat_change2     = 132


 * popular_vote2    = 45345334
 * percentage2      = 52.9%
 * swing2           =


 * poll1_date       =
 * poll1_source     =
 * poll1_nominee1   =
 * poll1_party1     =
 * poll1_nominee2   =
 * poll1_party2     =
 * poll2_date       =
 * poll2_source     =
 * poll2_nominee1   =
 * poll2_party1     =
 * poll2_nominee2   =
 * poll2_party2     =


 * 1blank           =
 * 1data1           =
 * 1data2           =
 * 2blank           =
 * 2data1           =
 * 2data2           =


 * map_image        =
 * map_size         =
 * map_alt          =
 * map              =
 * map_caption      =

}}
 * title            =
 * before_election  =
 * before_party     =
 * posttitle        =
 * after_election   =
 * after_party      =


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

{| class="wikitable" cellpadding=2 ! Field !! Type !! Description (Can either be a page title or a wiki link.) (Can either be a page title or a wiki link.) }	},	"format": "block" }
 * election_name
 * Name given to the election. If this field is left empty the page name is displayed
 * country
 * Country where the election took place.
 * flag_year
 * 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
 * For non-country elections, specify the full name of the flag, coat-of-arms, or seal image to display.
 * type
 * 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
 * The type of votes recorded at popular_voten. Defaults to "Popular".
 * ongoing
 * Must be either yes or no, whether the election is yet to take place, or completed. Fields marked with a &dagger; are only displayed if the election is yet to take place. Fields marked with a &Dagger; are only displayed if the election has finished. (Default no.)
 * party_colour
 * Also spelled party_color. To turn off the party colours enter 'no'.
 * party_name
 * To turn off linking to the parties enter 'no'.
 * alliance_name
 * To turn off linking to the alliances enter 'no'.
 * previous_election
 * The page name of the last election of this type.
 * previous_year
 * The year the last election of this type took place.
 * previous_mps (DEPRECATED)
 * legislative parliamentary
 * Also spelled previous_MPs or previous_members, page name for the members elected in the last election.
 * outgoing_members
 * legislative parliamentary
 * The page name of the legislative term (typically including a list of members) serving between the previous election and this election.
 * Also spelled party_color. To turn off the party colours enter 'no'.
 * party_name
 * To turn off linking to the parties enter 'no'.
 * alliance_name
 * To turn off linking to the alliances enter 'no'.
 * previous_election
 * The page name of the last election of this type.
 * previous_year
 * The year the last election of this type took place.
 * previous_mps (DEPRECATED)
 * legislative parliamentary
 * Also spelled previous_MPs or previous_members, page name for the members elected in the last election.
 * outgoing_members
 * legislative parliamentary
 * The page name of the legislative term (typically including a list of members) serving between the previous election and this election.
 * previous_year
 * The year the last election of this type took place.
 * previous_mps (DEPRECATED)
 * legislative parliamentary
 * Also spelled previous_MPs or previous_members, page name for the members elected in the last election.
 * outgoing_members
 * legislative parliamentary
 * The page name of the legislative term (typically including a list of members) serving between the previous election and this election.
 * outgoing_members
 * legislative parliamentary
 * The page name of the legislative term (typically including a list of members) serving between the previous election and this election.
 * election_date
 * Date of election - use Start date
 * elected_mps (DEPRECATED)
 * legislative parliamentary
 * Wikilink to the MPs elected in this election.
 * elected_members
 * legislative parliamentary
 * The page name of the legislative term (typically including a list of members) serving between this election and the next election.
 * elected_members
 * legislative parliamentary
 * The page name of the legislative term (typically including a list of members) serving between this election and the next election.
 * The page name of the legislative term (typically including a list of members) serving between this election and the next election.
 * next_election
 * The page name of the next election of this type.  If red link (it doesn't exist), then it will appear unlinked.
 * next_year
 * The year the next election of this type took place.
 * next_year
 * The year the next election of this type took place.
 * The year the next election of this type took place.
 * The year the next election of this type took place.