வார்ப்புரு:Infobox legislative election/doc
{{Documentation subpage}}
 &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
 {{Uses TemplateStyles|Template:Infobox legislative election/styles.css}}
 This infobox is used for a parliamentary election with multiple parties winning seats.
 
 ==Usage==
 {{{{PAGENAMETDOC}}
 | election_name      = {{{election_name}}}
 | country            = {{{country}}}
 | flag_year          = {{{flag_year}}}
 | previous_election  = {{{previous_election}}}
 | outgoing_members   = {{{outgoing_members}}}
 | next_election      = {{{next_election}}}
 | elected_members    = {{{elected_members}}}
 | election_date      = {{{election_date}}}
 | seats_for_election = {{{seats_for_election}}}
 | majority_seats     = {{{majority_seats}}}
 | turnout            = {{{turnout}}}
 | ongoing            = 
 
 | party1             = {{{party1}}}
 | colour1            = 
 | leader1            = {{{leader1}}}
 | percentage1        = {{{percentage1}}}
 | seats1             = 20
 | last_election1     = 0
 
 | party2             = {{{party2}}}
 | colour2            = 
 | leader2            = {{{leader2}}}
 | percentage2        = {{{percentage2}}}
 | seats2             = 10
 | last_election2     = 5
 &lt;!-- | results_sec        = --&gt;
 
 | map                = {{{map}}}
 | map_upright        = 
 | map_alt            = {{{map_alt}}}
 | map_caption        = {{{map_caption}}}
 
 | title              = {{{title}}}
 | posttitle          = {{{posttitle}}}
 | before_election    = {{{before_election}}}
 | before_party       = {{{before_party}}}
 | after_election     = {{{after_election}}}
 | after_party        = {{{after_party}}}
 }}
 
 &lt;syntaxhighlight lang=&quot;wikitext&quot; style=&quot;overflow:auto;&quot;&gt;
 {{Infobox legislative election
 | election_name      = 
 | country            = 
 | flag_year          = &lt;!-- if a variant is needed --&gt;
 | previous_election  = 
 | outgoing_members   = 
 | next_election      = 
 | elected_members    = 
 | election_date      = 
 | seats_for_election = &lt;!-- description --&gt;
 | majority_seats     = &lt;!-- number --&gt;
 | turnout            = 
 | reporting          =
 | last_update        =
 | time_zone          =
 | ongoing            = &lt;!-- or future --&gt;
 | first_election     = &lt;!-- yes/no (blank is no) --&gt;
 | noleader           = &lt;!-- yes (blank is no) --&gt;
 | nopercentage       = &lt;!-- yes (blank is no) --&gt;
 | heading1           =
 | party1             = &lt;!-- Rank parties by percentage of vote received, with independents listed last. Do not include parties that did not win seats --&gt;
 | leader1            = 
 | colour1            = 
 | percentage1        = &lt;!-- Do not include percentage sign --&gt;
 | seats1             = 
 | last_election1     = &lt;!-- Write 'new' if new party --&gt;
 | heading2           =
 | party2             = 
 | leader2            = 
 | colour2            = 
 | percentage2        = &lt;!-- Do not include percentage sign --&gt;
 | seats2             = 
 | last_election2     = &lt;!-- Write 'new' if new party --&gt;
 | heading3           = &lt;!-- up to | heading35 = --&gt;
 | party3             = &lt;!-- up to | party35 = --&gt;
 | leader3            = &lt;!-- up to | leader35 = --&gt;
 | colour3            = &lt;!-- up to | colour35 = --&gt;
 | percentage3        = &lt;!-- up to | percentage35 = --&gt;
 | seats3             = &lt;!-- up to | seats35 = --&gt;
 | last_election3     = &lt;!-- up to | last_election35 = --&gt;
 | results_sec        =
 | map                = 
 | map_upright        = 
 | map_alt            = 
 | map_caption        = 
 | title              = &lt;!-- Prime Minister or similar --&gt;
 | posttitle          =
 | before_election    = 
 | before_image       =
 | before_image_size  = &lt;!-- default size is x65px --&gt;
 | before_party       = 
 | after_election     = 
 | after_image        =
 | after_image_size   = &lt;!-- default size is x65px --&gt;
 | after_party        = 
 }}
 &lt;/syntaxhighlight&gt;
 
 == Parameters ==
 ; &lt;code&gt;election_name&lt;/code&gt;
 : Name of the elections.
 ; &lt;code&gt;country&lt;/code&gt;
 : Name of the country or territory the elections are taking place in
 ; &lt;code&gt;previous_election&lt;/code&gt;
 : Link to the previous elections (e.g. &lt;nowiki&gt;[[2010 United Kingdom general election|2010]]&lt;/nowiki&gt;)
 ; &lt;code&gt;outgoing_members&lt;/code&gt;
 : Link to the list of outgoing members 
 ; &lt;code&gt;next_election&lt;/code&gt;
 : Link to the following elections (e.g. &lt;nowiki&gt;[[2015 United Kingdom general election|2015]]&lt;/nowiki&gt;)
 ; &lt;code&gt;elected_members&lt;/code&gt;
 : Link to the list of elected members 
 ; &lt;code&gt;election_date&lt;/code&gt;
 : Date of the elections
 ; &lt;code&gt;seats_for_election&lt;/code&gt;
 : Description of which seats this election is about, incl. chamber and how many
 ; &lt;code&gt;majority_seats&lt;/code&gt;
 : The number of seats needed for a majority
 ; &lt;code&gt;first_election&lt;/code&gt;
 : Change to &quot;yes&quot; if this the first election of its kind
 ; &lt;code&gt;nopercentage&lt;/code&gt;
 : Set to &quot;yes&quot; to hide the percentage column
 ; &lt;code&gt;noleader&lt;/code&gt;
 : Set to &quot;yes&quot; to hide the leader column
 ; &lt;code&gt;ongoing&lt;/code&gt;
 : Change to &quot;yes&quot; if the election results haven't been released
 ; &lt;code&gt;results_sec&lt;/code&gt;
 : Name of section in the article where the results of the election are listed.
 ; &lt;code&gt;turnout&lt;/code&gt;
 : % [[voter turnout]]
 ; &lt;code&gt;party1..35&lt;/code&gt;
 : Name of the party (e.g. United Party)
 ; &lt;code&gt;leader1..35&lt;/code&gt;
 : Leader of the party
 ; &lt;code&gt;colour1..35&lt;/code&gt;
 : Custom party colour
 ; &lt;code&gt;percentage1..35&lt;/code&gt;
 : The party's popular vote share
 ; &lt;code&gt;seats1..35&lt;/code&gt;
 : Number of seats won by the party
 ; &lt;code&gt;last_election1..35&lt;/code&gt;
 :*Before an election takes place, use this to display the current number seats held by a party in the legislature
 :*After the election takes place, use this for the number of seats won at the previous elections as  the template coding uses it to work out seat change
 ; &lt;code&gt;heading1..35&lt;/code&gt;
 : Adds a heading above a particular results row
 ; &lt;code&gt;map&lt;/code&gt;
 : Image file of a map
 ; &lt;code&gt;map_upright&lt;/code&gt;
 : Map size scaling factor; default is &lt;code&gt;1.3&lt;/code&gt;
 ; &lt;code&gt;map_alt&lt;/code&gt;
 : [[WP:ALT]]
 ; &lt;code&gt;map_caption&lt;/code&gt;
 : Caption text, perhaps including a {{tl|Legend}}
 ; &lt;code&gt;title&lt;/code&gt;
 : Title of the head of government (e.g. &lt;nowiki&gt;[[Prime Minister of the United Kingdom|Prime Minister]]&lt;/nowiki&gt;)
 ; &lt;code&gt;posttitle&lt;/code&gt;
 : Title after the election
 ; &lt;code&gt;before_election&lt;/code&gt;
 : Head of government before the elections
 ; &lt;code&gt;before_party&lt;/code&gt;
 : Party of the head of government prior to the elections
 ; &lt;code&gt;before_image&lt;/code&gt;
 : Image of the outgoing head of government, default size is x65px
 ; &lt;code&gt;after_election&lt;/code&gt;
 : Head of government after the elections
 ; &lt;code&gt;after_party&lt;/code&gt;
 : Party of the head of government after the elections
 ; &lt;code&gt;after_image&lt;/code&gt;
 : Image of the elected head of government, default size is x65px
 
 &lt;includeonly&gt;{{Sandbox other||
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:Election and referendum infobox templates‎|Legislative Election]]
 [[Category:Politics and government infobox templates|Legislative Election]]
 [[Category:Embeddable templates]]