Template:AMS election box hold/doc
This is a documentation subpage for Template:AMS election box hold. It may contain usage information, categories and other content that is not part of the original template page. |
Overview
changeThis 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 {{MMP election box}} set of templates).
Usage
change1. 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
changeInserting...
Example markup
|
---|
{{AMS election box begin |title = [[2016 Scottish Parliament election]]<br>Example Constituency |constituency_type = Constituency |list_type = Region }} {{AMS election box with party link |party = Scottish National Party |candidate = [[Nicola Sturgeon]] |votes = 20,000 |percentage = 33.3 |change = {{increase}}5.0 |list_votes = 18,000 |list_percentage = 30.0 |list_change = {{increase}}2.0 |winner = yes |status = incumbent }} {{AMS election box with party link |party = Scottish Conservatives |candidate = [[Ruth Davidson]] |votes = 17,500 |percentage = 29.2 |change = {{increase}}3.0 |list_votes = 21,000 |list_percentage = 35.0 |list_change = {{increase}}6.0 |list_winner = yes |status = list_incumbent }} {{AMS election box with party link |party = Scottish Labour |candidate = [[Kezia Dugdale]] |votes = 16,000 |percentage = 26.7 |change = {{decrease}}4.0 |list_votes = 15,000 |list_percentage = 25.0 |list_change = {{decrease}}4.0 |status = list_candidate }} {{AMS election box with party link |party = Scottish Liberal Democrats |candidate = [[Willie Rennie]] |votes = 5,000 |percentage = 8.4 |change = {{decrease}}1.0 |list_votes = 4,000 |list_percentage = 6.7 |list_change ={{decrease}}1.5 }} {{AMS election box with constituency party link |party = Trade Unionist and Socialist Coalition |candidate = John Smith |votes = 500 |percentage = 0.8 |change = ''New'' }} {{AMS election box minor party |party = Local Party |candidate = Jane Smith |votes = 300 |percentage = 0.5 |change = {{decrease}}1.0 }} {{AMS election box with list party link |party = Scottish Greens |list_votes = 1,000 |list_percentage = 1.7 |list_change = {{increase}}1.0 }} {{AMS election box with list party link |party = UKIP |list_votes = 500 |list_percentage = 0.8 |list_change ={{decrease}}3.0 }} {{AMS election box independent |party = Independent (politician) |candidate = [[Lord Buckethead]] |list_votes = 100 |list_percentage = 0.2 |list_change = ''New'' }} {{AMS election box majority |votes = 2,500 |percentage = 3.0 |change = {{increase}}1.0 }} {{AMS election box valid votes |votes = 59,300 |list_votes = 59,600 }} {{AMS election box invalid votes |votes = 600 |list_votes = 400 }} {{AMS election box turnout |votes = 60,000 |percentage = 50.0 |change = {{increase}}5.0 |list_votes = 60,100 |list_percentage = 50.1 |list_change = {{increase}}5.0 }} {{AMS election box hold |winner = Scottish National Party |swing = {{increase}}3.0 }} {{AMS election box end}} |
Produces...
Party | Candidate | Constituency | Region | |||||
---|---|---|---|---|---|---|---|---|
Votes | % | ±% | Votes | % | ±% | |||
SNP | Nicola Sturgeon[a] | 20,000 | 33.3 | 5.0 | 18,000 | 30.0 | 2.0 | |
Conservative | Ruth Davidson[b] | 17,500 | 29.2 | 3.0 | 21,000 | 35.0 | 6.0 | |
Labour | Kezia Dugdale[c] | 16,000 | 26.7 | 4.0 | 15,000 | 25.0 | 4.0 | |
Liberal Democrats | Willie Rennie | 5,000 | 8.4 | 1.0 | 4,000 | 6.7 | 1.5 | |
TUSC | John Smith | 500 | 0.8 | New | ||||
Local Party | Jane Smith | 300 | 0.5 | 1.0 | ||||
Green | 1,000 | 1.7 | 1.0 | |||||
UKIP | 500 | 0.8 | 3.0 | |||||
Independent | Lord Buckethead | 100 | 0.2 | New | ||||
Majority | 2,500 | 3.0 | 1.0 | |||||
Valid Votes | 59,300 | 59,600 | ||||||
Invalid Votes | 600 | 400 | ||||||
Turnout | 60,000 | 50.0 | 5.0 | 60,100 | 50.1 | 5.0 | ||
SNP hold | Swing | 3.0 |
Information
changeSwing means the sum of the percentage-point increase/decrease of the parties in first and second place, divided by two.
Blank Template
change{{AMS election box hold |winner = |swing = }}
Notes
change- ↑ Incumbent member for this constituency
- ↑ Incumbent member on the party list, or for another constituency
- ↑ Elected on the party list