Difference between revisions of "Template:Infobox legislative election/doc"
imported>Trialpears m (Removing unnecessary Template:Intricate template per Template talk:Intricate template#Change to editnotice? (via WP:JWB)) |
imported>Funandtrvl (sync w/template, add missing parameters, remove obsolete parameters) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| − | |||
This infobox is used for a parliamentary election with multiple parties winning seats. | This infobox is used for a parliamentary election with multiple parties winning seats. | ||
| Line 9: | Line 8: | ||
| election_name = {{{election_name}}} | | election_name = {{{election_name}}} | ||
| country = {{{country}}} | | country = {{{country}}} | ||
| + | | flag_year = {{{flag_year}}} | ||
| previous_election = {{{previous_election}}} | | previous_election = {{{previous_election}}} | ||
| next_election = {{{next_election}}} | | next_election = {{{next_election}}} | ||
| Line 14: | Line 14: | ||
| seats_for_election = {{{seats_for_election}}} | | seats_for_election = {{{seats_for_election}}} | ||
| majority_seats = {{{majority_seats}}} | | majority_seats = {{{majority_seats}}} | ||
| − | | | + | | turnout = {{{turnout}}} |
| − | |||
| ongoing = | | ongoing = | ||
| − | |||
| − | |||
| party1 = {{{party1}}} | | party1 = {{{party1}}} | ||
| Line 33: | Line 30: | ||
| seats2 = 10 | | seats2 = 10 | ||
| last_election2 = 5 | | last_election2 = 5 | ||
| + | <!-- | results_sec = --> | ||
| map = {{{map}}} | | map = {{{map}}} | ||
| Line 40: | Line 38: | ||
| title = {{{title}}} | | title = {{{title}}} | ||
| + | | posttitle = {{{posttitle}}} | ||
| before_election = {{{before_election}}} | | before_election = {{{before_election}}} | ||
| before_party = {{{before_party}}} | | before_party = {{{before_party}}} | ||
| Line 45: | Line 44: | ||
| after_party = {{{after_party}}} | | after_party = {{{after_party}}} | ||
}} | }} | ||
| − | <pre style="overflow: auto;"> | + | |
| + | <pre style="overflow:auto;"> | ||
{{Infobox legislative election | {{Infobox legislative election | ||
| election_name = | | election_name = | ||
| country = | | country = | ||
| + | | flag_year = <!-- if a variant is needed --> | ||
| previous_election = | | previous_election = | ||
| next_election = | | next_election = | ||
| Line 54: | Line 55: | ||
| seats_for_election = <!-- description-- > | | seats_for_election = <!-- description-- > | ||
| majority_seats = <!-- number --> | | majority_seats = <!-- number --> | ||
| − | | | + | | turnout = |
| − | | | + | | reporting = |
| − | + | | last_update = | |
| + | | time_zone = | ||
| ongoing = <!-- or future --> | | ongoing = <!-- or future --> | ||
| − | | | + | | first_election = <!-- yes/no (blank is no) --> |
| − | | | + | | heading1 = |
| − | |||
| party1 = | | party1 = | ||
| + | | leader1 = | ||
| colour1 = | | colour1 = | ||
| − | |||
| percentage1 = <!-- incl. percentage sign --> | | percentage1 = <!-- incl. percentage sign --> | ||
| seats1 = | | seats1 = | ||
| last_election1 = <!-- Write 'new' if new party --> | | last_election1 = <!-- Write 'new' if new party --> | ||
| − | + | | heading2 = | |
| party2 = | | party2 = | ||
| + | | leader2 = | ||
| colour2 = | | colour2 = | ||
| − | |||
| percentage2 = <!-- incl. percentage sign --> | | percentage2 = <!-- incl. percentage sign --> | ||
| seats2 = | | seats2 = | ||
| last_election2 = <!-- Write 'new' if new party --> | | last_election2 = <!-- Write 'new' if new party --> | ||
| − | + | | heading3 = <!-- up to | heading35 = --> | |
| + | | party3 = <!-- up to | party35 = --> | ||
| + | | leader3 = <!-- up to | leader35 = --> | ||
| + | | colour3 = <!-- up to | colour35 = --> | ||
| + | | percentage3 = <!-- up to | percentage35 = --> | ||
| + | | seats3 = <!-- up to | seats35 = --> | ||
| + | | last_election3 = <!-- up to | last_election35 = --> | ||
| + | | results_sec = | ||
| map = | | map = | ||
| map_upright = | | map_upright = | ||
| map_alt = | | map_alt = | ||
| map_caption = | | map_caption = | ||
| − | |||
| title = <!-- Prime Minister or similar --> | | title = <!-- Prime Minister or similar --> | ||
| + | | posttitle = | ||
| before_election = | | before_election = | ||
| + | | before_image = | ||
| + | | before_image_size = <!-- default size is x65px --> | ||
| before_party = | | before_party = | ||
| after_election = | | after_election = | ||
| + | | after_image = | ||
| + | | after_image_size = <!-- default size is x65px --> | ||
| after_party = | | after_party = | ||
}} | }} | ||
| Line 95: | Line 107: | ||
; <code>previous_election</code> | ; <code>previous_election</code> | ||
: Link to the previous elections (e.g. <nowiki>[[United Kingdom general election, 2010|2010]]</nowiki>) | : Link to the previous elections (e.g. <nowiki>[[United Kingdom general election, 2010|2010]]</nowiki>) | ||
| − | ; <code> | + | ; <code>next_election</code> |
: Link to the following elections (e.g. <nowiki>[[United Kingdom general election, 2015|2015]]</nowiki>) | : Link to the following elections (e.g. <nowiki>[[United Kingdom general election, 2015|2015]]</nowiki>) | ||
; <code>election_date</code> | ; <code>election_date</code> | ||
| Line 111: | Line 123: | ||
; <code>turnout</code> | ; <code>turnout</code> | ||
: % [[voter turnout]] | : % [[voter turnout]] | ||
| − | ; <code>party1.. | + | ; <code>party1..35</code> |
: Name of the party (e.g. United Party) | : Name of the party (e.g. United Party) | ||
| − | ; <code>leader1.. | + | ; <code>leader1..35</code> |
: Leader of the party | : Leader of the party | ||
| − | ; <code>colour1.. | + | ; <code>colour1..35</code> |
: Custom party colour | : Custom party colour | ||
| − | ; <code>percentage1.. | + | ; <code>percentage1..35</code> |
: The party's popular vote share | : The party's popular vote share | ||
| − | ; <code>seats1.. | + | ; <code>seats1..35</code> |
: Number of seats won by the party | : Number of seats won by the party | ||
| − | ; <code>last_election1.. | + | ; <code>last_election1..35</code> |
: Number of seats won at the previous elections (template coding uses it to work out seat change) | : Number of seats won at the previous elections (template coding uses it to work out seat change) | ||
| − | ; <code>heading1.. | + | ; <code>heading1..35</code> |
: Adds a heading above a particular results row | : Adds a heading above a particular results row | ||
; <code>map</code> | ; <code>map</code> | ||
| Line 135: | Line 147: | ||
; <code>title</code> | ; <code>title</code> | ||
: Title of the head of government (e.g. <nowiki>[[Prime Minister of the United Kingdom|Prime Minister]]</nowiki>) | : Title of the head of government (e.g. <nowiki>[[Prime Minister of the United Kingdom|Prime Minister]]</nowiki>) | ||
| + | ; <code>posttitle</code> | ||
| + | : Title after the election | ||
; <code>before_election</code> | ; <code>before_election</code> | ||
: Head of government before the elections | : Head of government before the elections | ||
| Line 140: | Line 154: | ||
: Party of the head of government prior to the elections | : Party of the head of government prior to the elections | ||
; <code>before_image</code> | ; <code>before_image</code> | ||
| − | : Image of the outgoing head of government | + | : Image of the outgoing head of government, default size is x65px |
; <code>after_election</code> | ; <code>after_election</code> | ||
: Head of government after the elections | : Head of government after the elections | ||
| Line 146: | Line 160: | ||
: Party of the head of government after the elections | : Party of the head of government after the elections | ||
; <code>after_image</code> | ; <code>after_image</code> | ||
| − | : Image of the elected head of government | + | : Image of the elected head of government, default size is x65px |
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | [[Category:Politics and government infobox templates]] | + | [[Category:Election and referendum infobox templates|Legislative Election]] |
| + | [[Category:Politics and government infobox templates|Legislative Election]] | ||
[[Category:Embeddable templates]] | [[Category:Embeddable templates]] | ||
| − | |||
}}</includeonly> | }}</includeonly> | ||
Revision as of 05:25, 2 October 2020
| This is a documentation subpage for Template:Infobox legislative election. It contains usage information, categories and other content that is not part of the original template page. |
This infobox is used for a parliamentary election with multiple parties winning seats.
Usage
{{Template:PAGENAMETDOC | election_name = {{{election_name}}} | country = {{{country}}} | flag_year = {{{flag_year}}} | previous_election = {{{previous_election}}} | next_election = {{{next_election}}} | 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
| 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}}} }}
{{Infobox legislative election
| election_name =
| country =
| flag_year = <!-- if a variant is needed -->
| previous_election =
| next_election =
| election_date =
| seats_for_election = <!-- description-- >
| majority_seats = <!-- number -->
| turnout =
| reporting =
| last_update =
| time_zone =
| ongoing = <!-- or future -->
| first_election = <!-- yes/no (blank is no) -->
| heading1 =
| party1 =
| leader1 =
| colour1 =
| percentage1 = <!-- incl. percentage sign -->
| seats1 =
| last_election1 = <!-- Write 'new' if new party -->
| heading2 =
| party2 =
| leader2 =
| colour2 =
| percentage2 = <!-- incl. percentage sign -->
| seats2 =
| last_election2 = <!-- Write 'new' if new party -->
| heading3 = <!-- up to | heading35 = -->
| party3 = <!-- up to | party35 = -->
| leader3 = <!-- up to | leader35 = -->
| colour3 = <!-- up to | colour35 = -->
| percentage3 = <!-- up to | percentage35 = -->
| seats3 = <!-- up to | seats35 = -->
| last_election3 = <!-- up to | last_election35 = -->
| results_sec =
| map =
| map_upright =
| map_alt =
| map_caption =
| title = <!-- Prime Minister or similar -->
| posttitle =
| before_election =
| before_image =
| before_image_size = <!-- default size is x65px -->
| before_party =
| after_election =
| after_image =
| after_image_size = <!-- default size is x65px -->
| after_party =
}}
Parameters
election_name- Name of the elections.
country- Name of the country or territory the elections are taking place in
previous_election- Link to the previous elections (e.g. [[United Kingdom general election, 2010|2010]])
next_election- Link to the following elections (e.g. [[United Kingdom general election, 2015|2015]])
election_date- Date of the elections
seats_for_election- Description of which seats this election is about, incl. chamber and how many
majority_seats- The number of seats needed for a majority
first_election- Change to "yes" if this the first election of its kind
ongoing- Change to "yes" if the election results haven't been released
results_sec- Name of section in the article where the results of the election are listed.
turnout- % voter turnout
party1..35- Name of the party (e.g. United Party)
leader1..35- Leader of the party
colour1..35- Custom party colour
percentage1..35- The party's popular vote share
seats1..35- Number of seats won by the party
last_election1..35- Number of seats won at the previous elections (template coding uses it to work out seat change)
heading1..35- Adds a heading above a particular results row
map- Image file of a map
map_upright- Map size scaling factor; default is
1.3 map_alt- WP:ALT
map_caption- Caption text, perhaps including a {{Legend}}
title- Title of the head of government (e.g. [[Prime Minister of the United Kingdom|Prime Minister]])
posttitle- Title after the election
before_election- Head of government before the elections
before_party- Party of the head of government prior to the elections
before_image- Image of the outgoing head of government, default size is x65px
after_election- Head of government after the elections
after_party- Party of the head of government after the elections
after_image- Image of the elected head of government, default size is x65px