Difference between revisions of "Template:Infobox legislative election/doc"
imported>Number 57 (Not any more. This is to allow embedding within Infobox election for general elections) |
imported>Number 57 (Update with tweaked parameter names (which bring it in line with infobox election)) |
||
| Line 22: | Line 22: | ||
| party1 = {{{party1}}} | | party1 = {{{party1}}} | ||
| colour1 = | | colour1 = | ||
| − | | | + | | leader1 = {{{leader1}}} |
| percentage1 = {{{percentage1}}} | | percentage1 = {{{percentage1}}} | ||
| seats1 = 20 | | seats1 = 20 | ||
| − | | | + | | last_election1 = 0 |
| party2 = {{{party2}}} | | party2 = {{{party2}}} | ||
| colour2 = | | colour2 = | ||
| − | | | + | | leader2 = {{{leader2}}} |
| percentage2 = {{{percentage2}}} | | percentage2 = {{{percentage2}}} | ||
| seats2 = 10 | | seats2 = 10 | ||
| − | | | + | | last_election2 = 5 |
| map = {{{map}}} | | map = {{{map}}} | ||
| Line 62: | Line 62: | ||
| party1 = | | party1 = | ||
| colour1 = | | colour1 = | ||
| − | | | + | | leader1 = |
| percentage1 = <!-- incl. percentage sign --> | | percentage1 = <!-- incl. percentage sign --> | ||
| seats1 = | | seats1 = | ||
| − | | | + | | last_election1 = <!-- Write 'new' if new party --> |
| party2 = | | party2 = | ||
| colour2 = | | colour2 = | ||
| − | | | + | | leader2 = |
| percentage2 = <!-- incl. percentage sign --> | | percentage2 = <!-- incl. percentage sign --> | ||
| seats2 = | | seats2 = | ||
| − | | | + | | last_election2 = <!-- Write 'new' if new party --> |
| map = | | map = | ||
| Line 110: | Line 110: | ||
; <code>turnout</code> | ; <code>turnout</code> | ||
: % [[voter turnout]] | : % [[voter turnout]] | ||
| − | ; <code>party1.. | + | ; <code>party1..30</code> |
: Name of the party (e.g. United Party) | : Name of the party (e.g. United Party) | ||
| − | ; <code> | + | ; <code>leader1..30</code> |
: Leader of the party | : Leader of the party | ||
| − | ; <code>colour1.. | + | ; <code>colour1..30</code> |
: Custom party colour | : Custom party colour | ||
| − | ; <code>percentage1.. | + | ; <code>percentage1..30</code> |
: The party's popular vote share | : The party's popular vote share | ||
| − | + | ; <code>seats1..30</code> | |
| − | |||
| − | ; <code>seats1.. | ||
: Number of seats won by the party | : Number of seats won by the party | ||
| − | ; <code> | + | ; <code>last_election1..30</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..30</code> |
: Adds a heading above a particular results row | : Adds a heading above a particular results row | ||
; <code>map</code> | ; <code>map</code> | ||
Revision as of 20:19, 27 May 2019
| 40px | 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. |
| File:Ambox warning yellow.svg | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This infobox is used for a parliamentary election with multiple parties winning seats.
Usage
{{Template:PAGENAMETDOC | election_name = {{{election_name}}} | country = {{{country}}} | previous_election = {{{previous_election}}} | next_election = {{{next_election}}} | election_date = {{{election_date}}} | seats_for_election = {{{seats_for_election}}} | majority_seats = {{{majority_seats}}}
| ongoing = | turnout = {{{turnout}}}
| 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}}} | before_election = {{{before_election}}} | before_party = {{{before_party}}} | after_election = {{{after_election}}} | after_party = {{{after_party}}} }}
{{Infobox legislative election
| election_name =
| country =
| previous_election =
| next_election =
| election_date =
| seats_for_election = <!-- description-- >
| majority_seats = <!-- number -->
| first_election = <!-- yes/no (blank is no)-->
| ongoing = <!-- or future -->
| results_sec =
| turnout =
| party1 =
| colour1 =
| leader1 =
| percentage1 = <!-- incl. percentage sign -->
| seats1 =
| last_election1 = <!-- Write 'new' if new party -->
| party2 =
| colour2 =
| leader2 =
| percentage2 = <!-- incl. percentage sign -->
| seats2 =
| last_election2 = <!-- Write 'new' if new party -->
| map =
| map_upright =
| map_alt =
| map_caption =
| title = <!-- Prime Minister or similar -->
| before_election =
| before_party =
| after_election =
| 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]])
following_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..30- Name of the party (e.g. United Party)
leader1..30- Leader of the party
colour1..30- Custom party colour
percentage1..30- The party's popular vote share
seats1..30- Number of seats won by the party
last_election1..30- Number of seats won at the previous elections (template coding uses it to work out seat change)
heading1..30- 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]])
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
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