Difference between revisions of "Template:AMS election box begin"
blackwiki>PinkPanda272 (New template) |
blackwiki>PinkPanda272 (Variable name parameters) |
||
| Line 3: | Line 3: | ||
|- | |- | ||
! scope="col" colspan="2" rowspan="2" style="width: 30%"|Party | ! scope="col" colspan="2" rowspan="2" style="width: 30%"|Party | ||
| − | ! scope="col" colspan="4" style="width: 50%"|Constituency | + | ! scope="col" colspan="4" style="width: 50%"|{{constituency_name|Constituency}} |
| − | ! scope="col" colspan="3" style="width: 20%"|Region | + | ! scope="col" colspan="3" style="width: 20%"|{{list name|Region}} |
|- | |- | ||
! scope="col" style="width:30%" |Candidate | ! scope="col" style="width:30%" |Candidate | ||
Revision as of 19:24, 12 October 2020
Contents
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:
- {{AMS election box with party link}} for parties contesting both the constituency and the list.
- {{AMS election box with constituency party link}} for parties only contesting the constituency.
- {{AMS election box with list party link}} for parties only contesting the list.
- {{AMS election box independent}} for independent candidates only contesting the list.
- {{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:
- {{AMS election box majority}} to show the constituency majority.
- {{AMS election box valid votes}} to show the number of valid constituency and list votes.
- {{AMS election box invalid votes}} to show the number of invalid constituency and list votes.
- {{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
- {{AMS election box hold}} to show that the incumbent party held the seat.
- {{AMS election box gain}} to show that the incumbent party lost the seat to another party.
- {{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 {{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...
| Party | Template:Constituency name | Template:List name | ||||||
|---|---|---|---|---|---|---|---|---|
| Candidate | Votes | % | ±% | Votes | % | ±% | ||
- ↑ Incumbent member for this constituency
- ↑ Elected on the party list
Blank Template
{{AMS election box begin
|title =
|constituency_type =
|list_type =
}}
| The above documentation is transcluded from Template:AMS election box begin/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |