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

From blackwiki
Jump to navigation Jump to search
imported>Hebsen
(→‎Parameters: Image parameter)
imported>Number 57
(rv undiscussed changes)
Line 8: Line 8:
 
==Usage==
 
==Usage==
 
{{{{PAGENAMETDOC}}
 
{{{{PAGENAMETDOC}}
 +
| ongoing            =
 
| election_name      = {{{election_name}}}
 
| election_name      = {{{election_name}}}
 
| country            = {{{country}}}
 
| country            = {{{country}}}
Line 13: Line 14:
 
| next_election      = {{{next_election}}}
 
| next_election      = {{{next_election}}}
 
| election_date      = {{{election_date}}}
 
| election_date      = {{{election_date}}}
| seats_for_election = {{{seats_for_election}}}
 
| majority_seats    = {{{majority_seats}}}
 
 
| ongoing            =
 
<!-- | results_sec        = -->
 
 
| turnout            = {{{turnout}}}
 
| turnout            = {{{turnout}}}
  
Line 23: Line 19:
 
| colour1            =  
 
| colour1            =  
 
| party_leader1      = {{{party_leader1}}}
 
| party_leader1      = {{{party_leader1}}}
| leader_image1      = Vladimir_Putin_(2018-05-14).jpg
 
 
| percentage1        = {{{percentage1}}}
 
| percentage1        = {{{percentage1}}}
 
| seats1            = 20
 
| seats1            = 20
| seats1_before      = 3
+
| seats1_before      = 0
  
 
| party2            = {{{party2}}}
 
| party2            = {{{party2}}}
 
| colour2            =  
 
| colour2            =  
 
| party_leader2      = {{{party_leader2}}}
 
| party_leader2      = {{{party_leader2}}}
| leader_image2      =
 
 
| percentage2        = {{{percentage2}}}
 
| percentage2        = {{{percentage2}}}
 
| seats2            = 10
 
| seats2            = 10
Line 49: Line 43:
 
<pre style="overflow: auto;">
 
<pre style="overflow: auto;">
 
{{Infobox legislative election
 
{{Infobox legislative election
 +
| ongoing            =
 +
| results_sec        =
 +
 
| election_name      =  
 
| election_name      =  
 
| country            =  
 
| country            =  
Line 54: Line 51:
 
| next_election      =  
 
| next_election      =  
 
| election_date      =  
 
| election_date      =  
| seats_for_election = <!-- description-- >
 
| majority_seats    = <!-- number -->
 
| first_election    = <!-- yes/no (blank is no)-->
 
 
| ongoing            = <!-- or future -->
 
| results_sec        =
 
 
| turnout            =  
 
| turnout            =  
  
Line 65: Line 56:
 
| colour1            =  
 
| colour1            =  
 
| party_leader1      =  
 
| party_leader1      =  
| leader_image1      = <!-- File name, not wikilink -->
+
| percentage1        =  
| percentage1        = <!-- Incl. percentage sign -->
 
 
| seats1            =  
 
| seats1            =  
| seats1_before      = <!-- Write 'new' if new party -->
+
| seats1_before      =  
  
 
| party2            =  
 
| party2            =  
 
| colour2            =  
 
| colour2            =  
 
| party_leader2      =  
 
| party_leader2      =  
| leader_image2      = <!-- File name, not wikilink -->
+
| percentage2        =  
| percentage2        = <!-- Incl. percentage sign -->
 
 
| seats2            =  
 
| seats2            =  
| seats2_before      = <!-- Write 'new' if new party -->
+
| seats2_before      =  
  
 
| map                =  
 
| map                =  
Line 83: Line 72:
 
| map_caption        =  
 
| map_caption        =  
  
| title              = <!-- Prime Minister or similar -->
+
| title              =  
 
| before_election    =  
 
| before_election    =  
 
| before_party      =  
 
| before_party      =  
Line 92: Line 81:
  
 
== Parameters ==
 
== Parameters ==
 +
; <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>first_election</code>
 +
: Change to "yes" if this the first election of its kind
 
; <code>election_name</code>
 
; <code>election_name</code>
 
: Name of the elections. It will default to the page title if left blank
 
: Name of the elections. It will default to the page title if left blank
Line 98: Line 93:
 
; <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>following_election</code>
+
; <code>previous_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>
 
: Date of the elections
 
: 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>
 
; <code>turnout</code>
 
: % [[voter turnout]]
 
: % [[voter turnout]]
Line 118: Line 103:
 
; <code>party_leader1..15</code>
 
; <code>party_leader1..15</code>
 
: Leader of the party
 
: Leader of the party
; <code>leader_image1..15</code>
 
: File name of an image of the party leader
 
 
; <code>colour1..15</code>
 
; <code>colour1..15</code>
 
: Custom party colour
 
: Custom party colour

Revision as of 09:52, 19 February 2019

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

Usage

{{Template:PAGENAMETDOC | ongoing = | election_name = {{{election_name}}} | country = {{{country}}} | previous_election = {{{previous_election}}} | next_election = {{{next_election}}} | election_date = {{{election_date}}} | turnout = {{{turnout}}}

| party1 = {{{party1}}} | colour1 = | party_leader1 = {{{party_leader1}}} | percentage1 = {{{percentage1}}} | seats1 = 20 | seats1_before = 0

| party2 = {{{party2}}} | colour2 = | party_leader2 = {{{party_leader2}}} | percentage2 = {{{percentage2}}} | seats2 = 10 | seats2_before = 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
| ongoing            = 
| results_sec        =

| election_name      = 
| country            = 
| previous_election  = 
| next_election      = 
| election_date      = 
| turnout            = 

| party1             = 
| colour1            = 
| party_leader1      = 
| percentage1        = 
| seats1             = 
| seats1_before      = 

| party2             = 
| colour2            = 
| party_leader2      = 
| percentage2        = 
| seats2             = 
| seats2_before      = 

| map                = 
| map_upright        = 
| map_alt            = 
| map_caption        = 

| title              = 
| before_election    = 
| before_party       = 
| after_election     = 
| after_party        = 
}}

Parameters

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.
first_election
Change to "yes" if this the first election of its kind
election_name
Name of the elections. It will default to the page title if left blank
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]])
previous_election
Link to the following elections (e.g. [[United Kingdom general election, 2015|2015]])
election_date
Date of the elections
turnout
 % voter turnout
party1..15
Name of the party (e.g. United Party)
party_leader1..15
Leader of the party
colour1..15
Custom party colour
percentage1..15
The party's popular vote share
percentage1..15_before
The party's popular vote share at the last election
seats1..15
Number of seats won by the party
seats1..15_before
Number of seats won at the previous elections (template coding uses it to work out seat change)
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