Difference between revisions of "Template:AMS election box begin/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>PinkPanda272
m (Fmt)
blackwiki>PinkPanda272
(List winner)
Line 9: Line 9:
 
2. Use an {{tl|AMS election box with party link}} template for each party or independent candidate that is contesting either the constituency, list, or both. There are variations on this depending on the situation:
 
2. Use an {{tl|AMS election box with party link}} template for each party or independent candidate that is contesting either the constituency, list, or both. There are variations on this depending on the situation:
  
*{{tl|AMS election box with party link}}: for parties contesting '''both''' the constituency '''and''' the list.
+
*{{tl|AMS election box with party link}} for parties contesting '''both''' the constituency '''and''' the list.
*{{tl|AMS election box with constituency party link}}: for parties '''only''' contesting the constituency.
+
*{{tl|AMS election box with constituency party link}} for parties '''only''' contesting the constituency.
*{{tl|AMS election box with list party link}}: for parties '''only''' contesting the list.
+
*{{tl|AMS election box with list party link}} for parties '''only''' contesting the list.
*{{tl|AMS election box independent}}: for independent candidates '''only''' contesting the list.
+
*{{tl|AMS election box independent}} for independent candidates '''only''' contesting the list.
*{{tl|AMS election box minor party}}: for small parties without a Wikipedia article, and who are '''only''' contesting the constituency.
+
*{{tl|AMS election box minor party}} for small parties without a Wikipedia article, and who are '''only''' contesting the constituency.
  
 
3. Below this you can put additional information about the election:
 
3. Below this you can put additional information about the election:
  
*{{tl|AMS election box majority}}: to show the constituency majority.
+
*{{tl|AMS election box majority}} to show the constituency majority.
*{{tl|AMS election box valid votes}}: to show the number of '''valid''' constituency and list votes.
+
*{{tl|AMS election box valid votes}} to show the number of '''valid''' constituency and list votes.
*{{tl|AMS election box invalid votes}}: to show the number of '''invalid''' constituency and list votes.
+
*{{tl|AMS election box invalid votes}} to show the number of '''invalid''' constituency and list votes.
*{{tl|AMS election box turnout}}: to show the overall turnout (the total number of ballots cast, whether valid or not).
+
*{{tl|AMS election box turnout}} to show the overall turnout (the total number of ballots cast, whether valid or not).
  
 
4. Then you can add a row describing the result of the constituency vote
 
4. Then you can add a row describing the result of the constituency vote
  
*{{tl|AMS election box hold}}: to show that the incumbent party held the seat.
+
*{{tl|AMS election box hold}} to show that the incumbent party held the seat.
*{{tl|AMS election box gain}}: to show that the incumbent party lost the seat to another party.
+
*{{tl|AMS election box gain}} to show that the incumbent party lost the seat to another party.
*{{tl|AMS election box win}}: to show the result of a seat that hasn't been contested before, or has had boundary changes since the last election.
+
*{{tl|AMS election box win}} to show the result of a seat that hasn't been contested before, or has had boundary changes since the last election.
  
 
5. Finish the table off with {{tl|End}}, making sure to insert it on a new row.
 
5. Finish the table off with {{tl|End}}, making sure to insert it on a new row.
Line 49: Line 49:
 
|list_change =
 
|list_change =
 
|winner = yes
 
|winner = yes
 +
|list_winner = yes
 
}}
 
}}
 
{{AMS election box with party link
 
{{AMS election box with party link
Line 171: Line 172:
 
|list_change =
 
|list_change =
 
|winner = yes
 
|winner = yes
 +
|list_winner = yes
 
}}
 
}}
 
{{AMS election box with party link
 
{{AMS election box with party link
Line 281: Line 283:
 
|constituency_type =  
 
|constituency_type =  
 
|list_type        =  
 
|list_type        =  
}}
+
}}</nowiki>
</nowiki>
 
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 10:09, 13 October 2020

Overview

This set of templates creates a table to record the results of elections using the Additional Members System, including elections to the Scottish Parliament, Welsh Senedd and London Assembly. The system is also used in Germany for elections to the federal Bundestag and the state Landtags, as well as in New Zealand (although election articles there generally use the Template:TL set of templates).

Usage

1. Use {{AMS election box begin}} to create the title and header.

2. Use an {{AMS election box with party link}} template for each party or independent candidate that is contesting either the constituency, list, or both. There are variations on this depending on the situation:

3. Below this you can put additional information about the election:

4. Then you can add a row describing the result of the constituency vote

5. Finish the table off with {{End}}, making sure to insert it on a new row.

Examples

Inserting...

{{AMS election box begin
|title = [[2016 Scottish Parliament election]]<br>Aberdeen Central
|constituency_type = Constituency
|list_type = Region
}}
{{AMS election box with party link
|party        = Scottish National Party
|candidate    = [[Kevin Stewart (Scottish politician)|Kevin Stewart]]
|votes        = 11,648
|percentage   = 43.6
|change       = {{increase}}3.4
|list_votes   = 10,269
|list_percentage = 
|list_change =
|winner = yes
|list_winner = yes
}}
{{AMS election box with party link
|party        = Scottish Labour Party
|candidate    = [[Lewis Macdonald]]
|votes        = 7,299
|percentage   = 27.3
|change       = {{decrease}}10.2
|list_votes   = 5,381
|list_percentage = 
|list_change =
}}
{{AMS election box with party link
|party        = Scottish Conservatives
|candidate    = [[Tom Mason]]
|votes        = 6,022
|percentage   = 22.6
|change       = {{increase}}10.3
|list_votes   = 6,466
|list_percentage = 
|list_change =
}}
{{AMS election box with party link
|party        = Scottish Liberal Democrats
|candidate    = Kevin McLeod
|votes        = 1,735
|percentage   = 7.5
|change       = {{decrease}}2.8
|list_votes   = 1,401
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = Scottish Greens
|list_votes   = 2,282
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = UKIP
|list_votes   = 478
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = Scottish Christian Party
|list_votes   = 208
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = Solidarity (Scotland)
|list_votes   = 88
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = RISE - Scotland's Left Alliance
|list_votes   = 75
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = Scottish Libertarian Party
|list_votes   = 65
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = Communist Party of Great Britain
|list_votes   = 60
|list_percentage = 
|list_change =
}}
{{AMS election box with list party link
|party        = National Front (United Kingdom)
|list_votes   = 60
|list_percentage = 
|list_change =
}}
{{AMS election box majority
|votes = 4,349
|percentage = 16.3
|change = {{increase}}13.8
}}
{{AMS election box valid votes
|votes = 26,704
|list_votes = 26,833
}}
{{AMS election box invalid votes
|votes = 137
|list_votes = 58
}}
{{AMS election box turnout
|votes = 26,841
|percentage = 46.7
|change = {{increase}}2.9
|list_votes = 26,891
}}
{{AMS election box hold
|winner = Scottish National Party
|swing = {{increase}}6.9
}}
{{End}}

Produces...

2016 Scottish Parliament election
Aberdeen Central
Party Constituency Region
Candidate Votes % ±% Votes % ±%
scope="row" style="width: 5px; background-color: Template:Scottish National Party/meta/color"| [[Scottish National Party|Template:Scottish National Party/meta/shortname]] Kevin Stewart 11,648 43.6 Increase3.4 10,269
scope="row" style="width: 5px; background-color: Template:Scottish Labour Party/meta/color"| [[Scottish Labour Party|Template:Scottish Labour Party/meta/shortname]] Lewis Macdonald 7,299 27.3 Decrease10.2 5,381
scope="row" style="width: 5px; background-color: Template:Scottish Conservatives/meta/color"| [[Scottish Conservatives|Template:Scottish Conservatives/meta/shortname]] Tom Mason 6,022 22.6 Increase10.3 6,466
scope="row" style="width: 5px; background-color: Template:Scottish Liberal Democrats/meta/color"| [[Scottish Liberal Democrats|Template:Scottish Liberal Democrats/meta/shortname]] Kevin McLeod 1,735 7.5 Decrease2.8 1,401
scope="row" style="width: 5px; background-color: Template:Scottish Greens/meta/color"| [[Scottish Greens|Template:Scottish Greens/meta/shortname]] 2,282
scope="row" style="width: 5px; background-color: Template:UKIP/meta/color"| [[UKIP|Template:UKIP/meta/shortname]] 478
scope="row" style="width: 5px; background-color: Template:Scottish Christian Party/meta/color"| [[Scottish Christian Party|Template:Scottish Christian Party/meta/shortname]] 208
scope="row" style="width: 5px; background-color: Template:Solidarity (Scotland)/meta/color"| [[Solidarity (Scotland)|Template:Solidarity (Scotland)/meta/shortname]] 88
scope="row" style="width: 5px; background-color: Template:RISE - Scotland's Left Alliance/meta/color"| [[RISE - Scotland's Left Alliance|Template:RISE - Scotland's Left Alliance/meta/shortname]] 75
scope="row" style="width: 5px; background-color: Template:Scottish Libertarian Party/meta/color"| [[Scottish Libertarian Party|Template:Scottish Libertarian Party/meta/shortname]] 65
Communist 60
scope="row" style="width: 5px; background-color: Template:National Front (United Kingdom)/meta/color"| [[National Front (United Kingdom)|Template:National Front (United Kingdom)/meta/shortname]] 60
Majority 4,349 16.3 Increase13.8
Valid Votes 26,704 26,833
Invalid Votes 137 58
Turnout 26,841 46.7 Increase2.9 26,891
style="background-color: Template:Scottish National Party/meta/color" | [[Scottish National Party|Template:Scottish National Party/meta/shortname]] hold Swing Increase6.9

Blank Template

{{AMS election box begin
|title             = 
|constituency_type = 
|list_type         = 
}}