Difference between revisions of "Template:Compact election box"
Jump to navigation
Jump to search
imported>Plastikspork (For candidates without meta/color templates) |
imported>Piyyas (Expanded with even more candidates) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly><tr class="vcard" style="border-top:2px solid #999999"><td style="vertical-align:top;padding:0.2em 0.6em 0.2em 0.6em" rowspan="{{Template:Compact election box/candidate count|{{{candidate2|}}}|{{{candidate3|}}}|{{{candidate4|}}}|{{{candidate5|}}}|{{{candidate6|}}}|{{{candidate7|}}}|{{{candidate8|}}}|{{{candidate9|}}}|{{{candidate10|}}}|{{{candidate11|}}}|{{{candidate12|}}}|{{{candidate13|}}}|{{{candidate14|}}}|{{{candidate15|}}}|{{{candidate16|}}}|{{{candidate17|}}}|{{{candidate18|}}}|{{{candidate19|}}}|{{{candidate20|}}}|{{{candidate21|}}}|{{{candidate22|}}}|{{{candidate23|}}}|{{{candidate24|}}}|{{{candidate25|}}}}}"><!-- | + | <includeonly><tr class="vcard" style="border-top:2px solid #999999"><td style="vertical-align:top;padding:0.2em 0.6em 0.2em 0.6em" rowspan="{{Template:Compact election box/candidate count|{{{candidate2|}}}|{{{candidate3|}}}|{{{candidate4|}}}|{{{candidate5|}}}|{{{candidate6|}}}|{{{candidate7|}}}|{{{candidate8|}}}|{{{candidate9|}}}|{{{candidate10|}}}|{{{candidate11|}}}|{{{candidate12|}}}|{{{candidate13|}}}|{{{candidate14|}}}|{{{candidate15|}}}|{{{candidate16|}}}|{{{candidate17|}}}|{{{candidate18|}}}|{{{candidate19|}}}|{{{candidate20|}}}|{{{candidate21|}}}|{{{candidate22|}}}|{{{candidate23|}}}|{{{candidate24|}}}|{{{candidate25|}}}|{{{candidate26|}}}|{{{candidate27|}}}|{{{candidate28|}}}|{{{candidate29|}}}|{{{candidate30|}}}|{{{candidate31|}}}|{{{candidate32|}}}|{{{candidate33|}}}|{{{candidate34|}}}|{{{candidate35|}}}|{{{candidate36|}}}|{{{candidate37|}}}|{{{candidate38|}}}|{{{candidate39|}}}|{{{candidate40|}}}|{{{candidate41|}}}|{{{candidate42|}}}|{{{candidate43|}}}|{{{candidate44|}}}|{{{candidate45|}}}|{{{candidate46|}}}|{{{candidate47|}}}|{{{candidate48|}}}|{{{candidate49|}}}|{{{candidate50|}}}}}"><!-- |
#### First column of table | #### First column of table | ||
# Start with title of the election, bolded | # Start with title of the election, bolded | ||
| Line 137: | Line 137: | ||
# We have an 25th candidate | # We have an 25th candidate | ||
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate25|}}} |candidate_party = {{{candidate25_party|}}} |candidate_color= {{{candidate25_color|}}}{{{candidate25_colour|}}} |candidate_party_unlinked = {{{candidate25_party_unlinked|}}} |candidate_votes = {{{candidate25_votes|}}} |candidate_percent = {{{candidate25_percent|}}} | candidate_change = {{{candidate25_change|}}} }} | }}<!-- | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate25|}}} |candidate_party = {{{candidate25_party|}}} |candidate_color= {{{candidate25_color|}}}{{{candidate25_colour|}}} |candidate_party_unlinked = {{{candidate25_party_unlinked|}}} |candidate_votes = {{{candidate25_votes|}}} |candidate_percent = {{{candidate25_percent|}}} | candidate_change = {{{candidate25_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate26|}}} | <!-- | ||
| + | # We have an 26th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate26|}}} |candidate_party = {{{candidate26_party|}}} |candidate_color= {{{candidate26_color|}}}{{{candidate26_colour|}}} |candidate_party_unlinked = {{{candidate26_party_unlinked|}}} |candidate_votes = {{{candidate26_votes|}}} |candidate_percent = {{{candidate26_percent|}}} | candidate_change = {{{candidate26_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate27|}}} | <!-- | ||
| + | # We have a 27th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate27|}}} |candidate_party = {{{candidate27_party|}}} |candidate_color= {{{candidate27_color|}}}{{{candidate27_colour|}}} |candidate_party_unlinked = {{{candidate27_party_unlinked|}}} |candidate_votes = {{{candidate27_votes|}}} |candidate_percent = {{{candidate27_percent|}}} | candidate_change = {{{candidate27_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate28|}}} | <!-- | ||
| + | # We have an 28th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate28|}}} |candidate_party = {{{candidate28_party|}}} |candidate_color= {{{candidate28_color|}}}{{{candidate28_colour|}}} |candidate_party_unlinked = {{{candidate28_party_unlinked|}}} |candidate_votes = {{{candidate28_votes|}}} |candidate_percent = {{{candidate28_percent|}}} | candidate_change = {{{candidate28_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate29|}}} | <!-- | ||
| + | # We have an 29th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate29|}}} |candidate_party = {{{candidate29_party|}}} |candidate_color= {{{candidate29_color|}}}{{{candidate29_colour|}}} |candidate_party_unlinked = {{{candidate29_party_unlinked|}}} |candidate_votes = {{{candidate29_votes|}}} |candidate_percent = {{{candidate29_percent|}}} | candidate_change = {{{candidate29_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate30|}}} | <!-- | ||
| + | # We have an 30th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate30|}}} |candidate_party = {{{candidate30_party|}}} |candidate_color= {{{candidate30_color|}}}{{{candidate30_colour|}}} |candidate_party_unlinked = {{{candidate30_party_unlinked|}}} |candidate_votes = {{{candidate30_votes|}}} |candidate_percent = {{{candidate30_percent|}}} | candidate_change = {{{candidate30_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate31|}}} | <!-- | ||
| + | # We have an 31st candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate31|}}} |candidate_party = {{{candidate31_party|}}} |candidate_color= {{{candidate31_color|}}}{{{candidate31_colour|}}} |candidate_party_unlinked = {{{candidate31_party_unlinked|}}} |candidate_votes = {{{candidate31_votes|}}} |candidate_percent = {{{candidate31_percent|}}} | candidate_change = {{{candidate31_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate32|}}} | <!-- | ||
| + | # We have a 32nd candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate32|}}} |candidate_party = {{{candidate32_party|}}} |candidate_color= {{{candidate32_color|}}}{{{candidate32_colour|}}} |candidate_party_unlinked = {{{candidate32_party_unlinked|}}} |candidate_votes = {{{candidate32_votes|}}} |candidate_percent = {{{candidat312_percent|}}} | candidate_change = {{{candidate32_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate33|}}} | <!-- | ||
| + | # We have a 33rd candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate33|}}} |candidate_party = {{{candidate33_party|}}} |candidate_color= {{{candidate33_color|}}}{{{candidate33_colour|}}} |candidate_party_unlinked = {{{candidate33_party_unlinked|}}} |candidate_votes = {{{candidate33_votes|}}} |candidate_percent = {{{candidate33_percent|}}} | candidate_change = {{{candidate33_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate34|}}} | <!-- | ||
| + | # We have a 34th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate34|}}} |candidate_party = {{{candidate34_party|}}} |candidate_color= {{{candidate34_color|}}}{{{candidate34_colour|}}} |candidate_party_unlinked = {{{candidate34_party_unlinked|}}} |candidate_votes = {{{candidate34_votes|}}} |candidate_percent = {{{candidate34_percent|}}} | candidate_change = {{{candidate34_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate35|}}} | <!-- | ||
| + | # We have a 35th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate35|}}} |candidate_party = {{{candidate35_party|}}} |candidate_color= {{{candidate35_color|}}}{{{candidate35_colour|}}} |candidate_party_unlinked = {{{candidate35_party_unlinked|}}} |candidate_votes = {{{candidate35_votes|}}} |candidate_percent = {{{candidate35_percent|}}} | candidate_change = {{{candidate35_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate36|}}} | <!-- | ||
| + | # We have a 36th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate36|}}} |candidate_party = {{{candidate36_party|}}} |candidate_color= {{{candidate36_color|}}}{{{candidate36_colour|}}} |candidate_party_unlinked = {{{candidate36_party_unlinked|}}} |candidate_votes = {{{candidate36_votes|}}} |candidate_percent = {{{candidate36_percent|}}} | candidate_change = {{{candidate36_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate37|}}} | <!-- | ||
| + | # We have a 37th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate37|}}} |candidate_party = {{{candidate37_party|}}} |candidate_color= {{{candidate37_color|}}}{{{candidate37_colour|}}} |candidate_party_unlinked = {{{candidate37_party_unlinked|}}} |candidate_votes = {{{candidate37_votes|}}} |candidate_percent = {{{candidate37_percent|}}} | candidate_change = {{{candidate37_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate38|}}} | <!-- | ||
| + | # We have an 38th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate38|}}} |candidate_party = {{{candidate38_party|}}} |candidate_color= {{{candidate38_color|}}}{{{candidate38_colour|}}} |candidate_party_unlinked = {{{candidate38_party_unlinked|}}} |candidate_votes = {{{candidate38_votes|}}} |candidate_percent = {{{candidate38_percent|}}} | candidate_change = {{{candidate38_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate39|}}} | <!-- | ||
| + | # We have a 39th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate39|}}} |candidate_party = {{{candidate39_party|}}} |candidate_color= {{{candidate39_color|}}}{{{candidate19_colour|}}} |candidate_party_unlinked = {{{candidate39_party_unlinked|}}} |candidate_votes = {{{candidate39_votes|}}} |candidate_percent = {{{candidate39_percent|}}} | candidate_change = {{{candidate39_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate40|}}} | <!-- | ||
| + | # We have a 40th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate40|}}} |candidate_party = {{{candidate40_party|}}} |candidate_color= {{{candidate40_color|}}}{{{candidate40_colour|}}} |candidate_party_unlinked = {{{candidate40_party_unlinked|}}} |candidate_votes = {{{candidate40_votes|}}} |candidate_percent = {{{candidate40_percent|}}} | candidate_change = {{{candidate40_change|}}} | candidate_change = {{{candidate40_change}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate41|}}} | <!-- | ||
| + | # We have a 41st candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate41|}}} |candidate_party = {{{candidate41_party|}}} |candidate_color= {{{candidate41_color|}}}{{{candidate41_colour|}}} |candidate_party_unlinked = {{{candidate41_party_unlinked|}}} |candidate_votes = {{{candidate41_votes|}}} |candidate_percent = {{{candidate41_percent|}}} | candidate_change = {{{candidate41_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate42|}}} | <!-- | ||
| + | # We have a 42nd candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate42|}}} |candidate_party = {{{candidate42_party|}}} |candidate_color= {{{candidate42_color|}}}{{{candidate42_colour|}}} |candidate_party_unlinked = {{{candidate42_party_unlinked|}}} |candidate_votes = {{{candidate42_votes|}}} |candidate_percent = {{{candidate42_percent|}}} | candidate_change = {{{candidate42_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate43|}}} | <!-- | ||
| + | # We have an 43rd candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate43|}}} |candidate_party = {{{candidate43_party|}}} |candidate_color= {{{candidate43_color|}}}{{{candidate43_colour|}}} |candidate_party_unlinked = {{{candidate43_party_unlinked|}}} |candidate_votes = {{{candidate43_votes|}}} |candidate_percent = {{{candidate43_percent|}}} | candidate_change = {{{candidate43_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate44|}}} | <!-- | ||
| + | # We have an 44th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate44|}}} |candidate_party = {{{candidate44_party|}}} |candidate_color= {{{candidate44_color|}}}{{{candidate44_colour|}}} |candidate_party_unlinked = {{{candidate44_party_unlinked|}}} |candidate_votes = {{{candidate44_votes|}}} |candidate_percent = {{{candidate44_percent|}}} | candidate_change = {{{candidate44_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate45|}}} | <!-- | ||
| + | # We have an 45th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate45|}}} |candidate_party = {{{candidate45_party|}}} |candidate_color= {{{candidate45_color|}}}{{{candidate45_colour|}}} |candidate_party_unlinked = {{{candidate45_party_unlinked|}}} |candidate_votes = {{{candidate45_votes|}}} |candidate_percent = {{{candidate45_percent|}}} | candidate_change = {{{candidate45_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate46|}}} | <!-- | ||
| + | # We have an 46th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate46|}}} |candidate_party = {{{candidate46_party|}}} |candidate_color= {{{candidate46_color|}}}{{{candidate46_colour|}}} |candidate_party_unlinked = {{{candidate46_party_unlinked|}}} |candidate_votes = {{{candidate46_votes|}}} |candidate_percent = {{{candidate46_percent|}}} | candidate_change = {{{candidate46_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate47|}}} | <!-- | ||
| + | # We have a 47th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate47|}}} |candidate_party = {{{candidate47_party|}}} |candidate_color= {{{candidate47_color|}}}{{{candidate47_colour|}}} |candidate_party_unlinked = {{{candidate47_party_unlinked|}}} |candidate_votes = {{{candidate47_votes|}}} |candidate_percent = {{{candidate47_percent|}}} | candidate_change = {{{candidate47_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate48|}}} | <!-- | ||
| + | # We have an 48th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate48|}}} |candidate_party = {{{candidate48_party|}}} |candidate_color= {{{candidate48_color|}}}{{{candidate48_colour|}}} |candidate_party_unlinked = {{{candidate48_party_unlinked|}}} |candidate_votes = {{{candidate48_votes|}}} |candidate_percent = {{{candidate48_percent|}}} | candidate_change = {{{candidate48_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate49|}}} | <!-- | ||
| + | # We have an 49th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate49|}}} |candidate_party = {{{candidate49_party|}}} |candidate_color= {{{candidate49_color|}}}{{{candidate49_colour|}}} |candidate_party_unlinked = {{{candidate49_party_unlinked|}}} |candidate_votes = {{{candidate49_votes|}}} |candidate_percent = {{{candidate49_percent|}}} | candidate_change = {{{candidate49_change|}}} }} | }}<!-- | ||
| + | |||
| + | -->{{#if: {{{candidate50|}}} | <!-- | ||
| + | # We have an 50th candidate | ||
| + | -->{{Template:Compact election box/candidate |candidate_name = {{{candidate50|}}} |candidate_party = {{{candidate50_party|}}} |candidate_color= {{{candidate50_color|}}}{{{candidate50_colour|}}} |candidate_party_unlinked = {{{candidate50_party_unlinked|}}} |candidate_votes = {{{candidate50_votes|}}} |candidate_percent = {{{candidate50_percent|}}} | candidate_change = {{{candidate50_change|}}} }} | }}<!-- | ||
###End of candidates### | ###End of candidates### | ||
--></includeonly><noinclude>{{Documentation}}</noinclude> | --></includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 17:39, 8 July 2020
Contents
Purpose
A set of templates to produce a table displaying the results of first-past-the-post elections in a more compact format than offered by {{Election box}}.
Example
These templates produce results like this:
| Election | Political result | Candidate | Party | Votes | % | ±% | ||
|---|---|---|---|---|---|---|---|---|
| 1953 by-election death of Sir Bufton Tufton Electorate: 57,901 Turnout: 31,432 (66.2%) | Conservative gain from [[Scottish National Party|Template:Scottish National Party/meta/shortname]] Majority: 2,507 (12.5%) Swing: 17.1% from [[Scottish National Party|Template:Scottish National Party/meta/shortname]] to Con | Jimmy Smith | Conservative | 26,241 | 50.5 | N/A | ||
| Dave Spart | Labour | 10,719 | 20.1 | N/A | ||||
| 1955 general election Electorate: 57,901 | Conservative hold | Jimmy Smith | Conservative | unopposed | ||||
| 1959 general election Electorate: 57,901 Turnout: 31,432 (66.2%) | Conservative hold Majority: 12,952 (19.5%) | Jimmy Smith | Conservative | 27,709 | 54.5 | N/A | ||
| Dave Spart | Labour | 8,604 | 16.2 | N/A | ||||
| Eric The Viking | Vikings for Borsetshire | 6,903 | 12.5 | N/A | ||||
| 1964 general election Electorate: 62,184 Turnout: 41,401 (69.8%) +3.6 | Labour gain from Conservative Majority: 2,011 (9.5%) | Dave Spart | Labour | 20,591 | 38.9 | +22.7 | ||
| Jimmy Smith | Conservative | 18,709 | 33.4 | −22.1 | ||||
| Col. Theo Smithers | Borsetshire Ratepayers | 1,903 | 6.7 | N/A | ||||
| William Williamson | Liberal | 1,812 | 6.4 | N/A | ||||
| Verte Profonde | Green | 1,561 | 6.0 | N/A | ||||
| Egbert Monster | [[Official Monster Raving Loony Party|Template:Official Monster Raving Loony Party/meta/shortname]] | 912 | 3.1 | N/A | ||||
| A. N. Ulsterman | [[Ulster Unionist Party|Template:Ulster Unionist Party/meta/shortname]] | 874 | 2.7 | N/A | ||||
| A. Alba | [[Scottish National Party|Template:Scottish National Party/meta/shortname]] | 540 | 2.3 | N/A | ||||
| 1966 general election Electorate: 62,184 Turnout: 41,401 (69.8%) | Labour hold Majority: 2,011 (9.5%) +1.4 | Dave Spart | Labour | 20,591 | 39.9 | +1.1 | ||
| Jimmy Smith | Conservative | 18,709 | 32.3 | −1.1 | ||||
| Col. Theo Smithers | Borsetshire Ratepayers | 1,903 | 6.7 | |||||
Usage
{{Compact election box begin}}
{{Compact election box}}
{{Compact election box}}
{{Compact election box}}
...
{{Compact election box end}}
Simple usage
Blank example with basic parameters
{{Compact election box begin}}
{{Compact election box
| election_title =
| winner =
| winner_party =
| winner_votes =
| winner_percent =
| winner_change =
| candidate2 =
| candidate2_party =
| candidate2_votes =
| candidate2_percent =
| candidate2_change =
}}
{{Compact election box end}}
Full usage
Blank example with all parameters
{{Compact election box begin}}
{{Compact election box
| election_title =
| election_note =
| election_ref =
| electorate =
| turnout_votes =
| turnout_percent =
| turnout_change =
| majority_votes =
| majority_percent =
| majority_change =
| result =
| loser_party =
| loser_party_unlinked =
| swing =
| swing_from =
| swing_to =
| winner =
| winner_party =
| winner_party_unlinked =
| winner_votes =
| winner_percent =
| winner_change =
| candidate2 =
| candidate2_party =
| candidate2_party_unlinked =
| candidate2_votes =
| candidate2_percent =
| candidate2_change =
| candidate3 =
| candidate3_party =
| candidate3_party_unlinked =
| candidate3_votes =
| candidate3_percent =
| candidate3_change =
| candidate4 =
| candidate4_party =
| candidate4_party_unlinked =
| candidate4_votes =
| candidate4_percent =
| candidate4_change =
| candidate5 =
| candidate5_party =
| candidate5_party_unlinked =
| candidate5_votes =
| candidate5_percent =
| candidate5_change =
| candidate6 =
| candidate6_party =
| candidate6_party_unlinked =
| candidate6_votes =
| candidate6_percent =
| candidate6_change =
| candidate7 =
| candidate7_party =
| candidate7_party_unlinked =
| candidate7_votes =
| candidate7_percent =
| candidate7_change =
| candidate8 =
| candidate8_party =
| candidate8_party_unlinked =
| candidate8_votes =
| candidate8_percent =
| candidate8_change =
| candidate9 =
| candidate9_party =
| candidate9_party_unlinked =
| candidate9_votes =
| candidate9_percent =
| candidate9_change =
| candidate10 =
| candidate10_party =
| candidate10_party_unlinked =
| candidate10_votes =
| candidate10_percent =
| candidate10_change =
| candidate11 =
| candidate11_party =
| candidate11_party_unlinked =
| candidate11_votes =
| candidate11_percent =
| candidate11_change =
| candidate12 =
| candidate12_party =
| candidate12_party_unlinked =
| candidate12_votes =
| candidate12_percent =
| candidate12_change =
| candidate13 =
| candidate13_party =
| candidate13_party_unlinked =
| candidate13_votes =
| candidate13_percent =
| candidate13_change =
| candidate14 =
| candidate14_party =
| candidate14_party_unlinked =
| candidate14_votes =
| candidate14_percent =
| candidate14_change =
| candidate15 =
| candidate15_party =
| candidate15_party_unlinked =
| candidate15_votes =
| candidate15_percent =
| candidate15_change =
| candidate16 =
| candidate16_party =
| candidate16_party_unlinked =
| candidate16_votes =
| candidate16_percent =
| candidate16_change =
| candidate17 =
| candidate17_party =
| candidate17_party_unlinked =
| candidate17_votes =
| candidate17_percent =
| candidate17_change =
| candidate18 =
| candidate18_party =
| candidate18_party_unlinked =
| candidate18_votes =
| candidate18_percent =
| candidate18_change =
| candidate19 =
| candidate19_party =
| candidate19_party_unlinked =
| candidate19_votes =
| candidate19_percent =
| candidate19_change =
| candidate20 =
| candidate20_party =
| candidate20_party_unlinked =
| candidate20_votes =
| candidate20_percent =
| candidate20_change =
| candidate21 =
| candidate21_party =
| candidate21_party_unlinked =
| candidate21_votes =
| candidate21_percent =
| candidate21_change =
| candidate22 =
| candidate22_party =
| candidate22_party_unlinked =
| candidate22_votes =
| candidate22_percent =
| candidate22_change =
| candidate23 =
| candidate23_party =
| candidate23_party_unlinked =
| candidate23_votes =
| candidate23_percent =
| candidate23_change =
| candidate24 =
| candidate24_party =
| candidate24_party_unlinked =
| candidate24_votes =
| candidate24_percent =
| candidate24_change =
| candidate25 =
| candidate25_party =
| candidate25_party_unlinked =
| candidate25_votes =
| candidate25_percent =
| candidate25_change =
| candidate26 =
| candidate26_party =
| candidate26_party_unlinked =
| candidate26_votes =
| candidate26_percent =
| candidate26_change =
| candidate27 =
| candidate27_party =
| candidate27_party_unlinked =
| candidate27_votes =
| candidate27_percent =
| candidate27_change =
| candidate28 =
| candidate28_party =
| candidate28_party_unlinked =
| candidate28_votes =
| candidate28_percent =
| candidate28_change =
| candidate29 =
| candidate29_party =
| candidate29_party_unlinked =
| candidate29_votes =
| candidate29_percent =
| candidate29_change =
| candidate30 =
| candidate30_party =
| candidate30_party_unlinked =
| candidate30_votes =
| candidate30_percent =
| candidate30_change =
| candidate31 =
| candidate31_party =
| candidate31_party_unlinked =
| candidate31_votes =
| candidate31_percent =
| candidate31_change =
| candidate32 =
| candidate32_party =
| candidate32_party_unlinked =
| candidate32_votes =
| candidate32_percent =
| candidate32_change =
| candidate33 =
| candidate33_party =
| candidate33_party_unlinked =
| candidate33_votes =
| candidate33_percent =
| candidate33_change =
| candidate34 =
| candidate34_party =
| candidate34_party_unlinked =
| candidate34_votes =
| candidate34_percent =
| candidate34_change =
| candidate35 =
| candidate35_party =
| candidate35_party_unlinked =
| candidate35_votes =
| candidate35_percent =
| candidate35_change =
| candidate36 =
| candidate36_party =
| candidate36_party_unlinked =
| candidate36_votes =
| candidate36_percent =
| candidate36_change =
| candidate37 =
| candidate37_party =
| candidate37_party_unlinked =
| candidate37_votes =
| candidate37_percent =
| candidate37_change =
| candidate38 =
| candidate38_party =
| candidate38_party_unlinked =
| candidate38_votes =
| candidate38_percent =
| candidate38_change =
| candidate39 =
| candidate39_party =
| candidate39_party_unlinked =
| candidate39_votes =
| candidate39_percent =
| candidate39_change =
| candidate40 =
| candidate40_party =
| candidate40_party_unlinked =
| candidate40_votes =
| candidate40_percent =
| candidate40_change =
| candidate41 =
| candidate41_party =
| candidate41_party_unlinked =
| candidate41_votes =
| candidate41_percent =
| candidate41_change =
| candidate42 =
| candidate42_party =
| candidate42_party_unlinked =
| candidate42_votes =
| candidate42_percent =
| candidate42_change =
| candidate43 =
| candidate43_party =
| candidate43_party_unlinked =
| candidate43_votes =
| candidate43_percent =
| candidate43_change =
| candidate44 =
| candidate44_party =
| candidate44_party_unlinked =
| candidate44_votes =
| candidate44_percent =
| candidate44_change =
| candidate45 =
| candidate45_party =
| candidate45_party_unlinked =
| candidate45_votes =
| candidate45_percent =
| candidate45_change =
| candidate46 =
| candidate46_party =
| candidate46_party_unlinked =
| candidate46_votes =
| candidate46_percent =
| candidate46_change =
| candidate47 =
| candidate47_party =
| candidate47_party_unlinked =
| candidate47_votes =
| candidate47_percent =
| candidate47_change =
| candidate48 =
| candidate48_party =
| candidate48_party_unlinked =
| candidate48_votes =
| candidate48_percent =
| candidate48_change =
| candidate49 =
| candidate49_party =
| candidate49_party_unlinked =
| candidate49_votes =
| candidate49_percent =
| candidate49_change =
| candidate50 =
| candidate50_party =
| candidate50_party_unlinked =
| candidate50_votes =
| candidate50_percent =
| candidate50_change =
}}
{{Compact election box end}}
Parameters
Header parameters
The parameters are used once
| Parameter | Purpose | Example1 | Example2 |
|---|---|---|---|
| Required parameters | |||
| election_title | title of election, may be wikilinked | [[Foobar South-Central by-election, 1953|1953 by-election]] | [[United Kingdom election, 1951|1951]] |
| Optional parameters | |||
| election_ref | reference, usually to the source of the results | <ref>[http://www.foobar-politics-today.com Foobar South-Central by-election results], Politics Today</ref> | <ref name="somesource" /> |
| election_note | very short note on the election. Probably best kept to a terse reason for a by-election | death of [[Sir Bufton Tufton]] | resignation of [[Jane Imefedup]] |
| electorate | number of registered voters | 57,901 | |
| turnout_votes | Number of ballots cast | 31,432 | |
| turnout_percent | Turnout as a percentage of registered electors | 20.5 | 8.76 |
| turnout_change | Change in turnout as a percentage of registered electors | +1.2 | −5.3 |
| majority_votes | majority of the winning candidate in number of votes | 1,607 | |
| majority_percent | Majority as a percentage of valid votes | +6.1 | −3.7 |
| majority_change | Change in majority as a percentage of valid votes | +1.2 | −5.3 |
| result | whether the seat changed party | hold, or gain (default=win) | |
| loser_party | name of the party which lost, to be wikilinked | Social Democratic Party (UK) | Labour Party (UK) |
| loser_party_unlinked | name of the party which lost, will not be wikilinked | Let's have a party all night Party | |
| swing | swing in percentage | 4.3 | −6.8 |
| swing_from | party which votes swung away from | Labour Party (UK) | |
| swing_to | party which votes swung away from | Conservative Party (UK) | |
Winner parameters
One set of these parameters for each candidate
| Parameter | Purpose | Example |
|---|---|---|
| winner | Name of candidate (may be wikilinked) | [[Jimmy Abdul Rudigger Smith (junior)|Jimmy Smith]] |
| winner_party | name of article on party | Conservative Party (UK) |
| winner_party_unlinked | text of article on party | Borsetshire Free Lunch Party |
| winner_votes | Number of votes received by the candidate | 26,241 |
| winner_percent | Percentage of votes received by the candidate | 50.5 |
| winner_change | Change in that party's percentage share of votes | −0.5 |
Candidate parameters
One set of these parameters for each candidate, starting candidate2. Maximum of 25.
| Parameter | Purpose | Example |
|---|---|---|
| candidaten | Name of candidate (may be wikilinked) | [[Jimmy Abdul Rudigger Smith (junior)|Jimmy Smith]] |
| candidaten_party | name of article on party | Conservative Party (UK) |
| candidaten_party_unlinked | text of article on party | Borsetshire Free Lunch Party |
| candidaten_votes | Number of votes received by the candidate | 26,241 |
| candidaten_percent | Percentage of votes received by the candidate | 50.5 |
| candidaten_change | Change in that party's percentage share of votes | +1.6 |
See also
| The above documentation is transcluded from Template:Compact election box/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. |