Difference between revisions of "Template:Infobox legislative election/doc"

From blackwiki
Jump to navigation Jump to search
imported>Number 57
m (Reverted edits by 176.229.155.44 (talk) to last version by Funandtrvl)
Line 6: Line 6:
 
==Usage==
 
==Usage==
 
{{{{PAGENAMETDOC}}
 
{{{{PAGENAMETDOC}}
| election_name      = {{{election_name}}}
+
| election_name      = {{{2023 Saskatchewan Federal Election}}}
| country            = {{{country}}}
+
| country            = {{{Saskatchewan}}}
 
| flag_year          = {{{flag_year}}}
 
| flag_year          = {{{flag_year}}}
| previous_election  = {{{previous_election}}}
+
| previous_election  = {{{N/A}}}
| next_election      = {{{next_election}}}
+
| next_election      = {{{October 12th, 2027}}}
| election_date      = {{{election_date}}}
+
| election_date      = {{{September 25, 2023}}}
| seats_for_election = {{{seats_for_election}}}
+
| seats_for_election = {{{61 seats in Parliament}}}
| majority_seats    = {{{majority_seats}}}
+
| majority_seats    = {{{31 needed for majority}}}
| turnout            = {{{turnout}}}
+
| turnout            = {{{82.03% voter turnout}}}
 
| ongoing            =  
 
| ongoing            =  
  
| party1            = {{{party1}}}
+
| party1            = {{{Saskatchewan}}}
| colour1            =  
+
| colour1            = green
| leader1            = {{{leader1}}}
+
| leader1            = {{{Scott Moe}}}
| percentage1        = {{{percentage1}}}
+
| percentage1        = {{{38.5%}}}
| seats1            = 20
+
| seats1            = 24
| last_election1    = 0
+
| last_election1    = 46
  
| party2            = {{{party2}}}
+
| party2            = {{{Buffalo}}}
| colour2            =  
+
| colour2            = yellow
| leader2            = {{{leader2}}}
+
| leader2            = {{{Wade Sira}}}
| percentage2        = {{{percentage2}}}
+
| percentage2        = {{{61.5%}}}
| seats2            = 10
+
| seats2            = 37
| last_election2    = 5
+
| last_election2    = 0
 
<!-- | results_sec        = -->
 
<!-- | results_sec        = -->
 
| 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}}}
 
}}
 
 
<pre style="overflow:auto;">
 
{{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        =
 
}}
 
</pre>
 
 
== Parameters ==
 
; <code>election_name</code>
 
: Name of the elections.
 
; <code>country</code>
 
: Name of the country or territory the elections are taking place in
 
; <code>previous_election</code>
 
: Link to the previous elections (e.g. <nowiki>[[United Kingdom general election, 2010|2010]]</nowiki>)
 
; <code>next_election</code>
 
: Link to the following elections (e.g. <nowiki>[[United Kingdom general election, 2015|2015]]</nowiki>)
 
; <code>election_date</code>
 
: Date of the elections
 
; <code>seats_for_election</code>
 
: Description of which seats this election is about, incl. chamber and how many
 
; <code>majority_seats</code>
 
: The number of seats needed for a majority
 
; <code>first_election</code>
 
: Change to "yes" if this the first election of its kind
 
; <code>ongoing</code>
 
: Change to "yes" if the election results haven't been released
 
; <code>results_sec</code>
 
: Name of section in the article where the results of the election are listed.
 
; <code>turnout</code>
 
: % [[voter turnout]]
 
; <code>party1..35</code>
 
: Name of the party (e.g. United Party)
 
; <code>leader1..35</code>
 
: Leader of the party
 
; <code>colour1..35</code>
 
: Custom party colour
 
; <code>percentage1..35</code>
 
: The party's popular vote share
 
; <code>seats1..35</code>
 
: Number of seats won by the party
 
; <code>last_election1..35</code>
 
: Number of seats won at the previous elections (template coding uses it to work out seat change)
 
; <code>heading1..35</code>
 
: Adds a heading above a particular results row
 
; <code>map</code>
 
: Image file of a map
 
; <code>map_upright</code>
 
: Map size scaling factor; default is <code>1.3</code>
 
; <code>map_alt</code>
 
: [[WP:ALT]]
 
; <code>map_caption</code>
 
: Caption text, perhaps including a {{tl|Legend}}
 
; <code>title</code>
 
: 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>
 
: Head of government before the elections
 
; <code>before_party</code>
 
: Party of the head of government prior to the elections
 
; <code>before_image</code>
 
: Image of the outgoing head of government, default size is x65px
 
; <code>after_election</code>
 
: Head of government after the elections
 
; <code>after_party</code>
 
: Party of the head of government after the elections
 
; <code>after_image</code>
 
: Image of the elected head of government, default size is x65px
 
 
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Election and referendum infobox templates‎|Legislative Election]]
 
[[Category:Politics and government infobox templates|Legislative Election]]
 
[[Category:Embeddable templates]]
 
}}</includeonly>
 

Revision as of 16:53, 12 February 2021

This infobox is used for a parliamentary election with multiple parties winning seats.

Usage

{{Template:PAGENAMETDOC | election_name = {{{2023 Saskatchewan Federal Election}}} | country = {{{Saskatchewan}}} | flag_year = {{{flag_year}}} | previous_election = {{{N/A}}} | next_election = {{{October 12th, 2027}}} | election_date = {{{September 25, 2023}}} | seats_for_election = {{{61 seats in Parliament}}} | majority_seats = {{{31 needed for majority}}} | turnout = {{{82.03% voter turnout}}} | ongoing =

| party1 = {{{Saskatchewan}}} | colour1 = green | leader1 = {{{Scott Moe}}} | percentage1 = {{{38.5%}}} | seats1 = 24 | last_election1 = 46

| party2 = {{{Buffalo}}} | colour2 = yellow | leader2 = {{{Wade Sira}}} | percentage2 = {{{61.5%}}} | seats2 = 37 | last_election2 = 0