Template:AMS election box invalid votes/doc

From blackwiki
Jump to navigation Jump to search

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 {{AMS election box end}}, making sure to insert it on a new row. This adds a {{notelist}} template automatically.

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
|incumbent = 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 =
|list_candidate = yes
}}
{{AMS election box with party link
|party        = Scottish Conservatives
|candidate    = [[Tom Mason (Scottish politician)|Tom Mason]]
|votes        = 6,022
|percentage   = 22.6
|change       = {{increase}}10.3
|list_votes   = 6,466
|list_percentage = 
|list_change =
|list_candidate = yes
}}
{{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
}}
{{AMS election box 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[lower-alpha 1] 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[lower-alpha 2] 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
  1. Incumbent member for this constituency
  2. Elected on the party list

Information

Often the list and the constituency will have differing numbers of rejected ballots. This is to be expected and as long as Valid ballots + Invalid ballots = Turnout, the inputs are correct.

Blank Template

{{AMS election box invalid votes
|votes        =
|list_votes   = 
}}