Difference between revisions of "Template:Compact election box"

From blackwiki
Jump to navigation Jump to search
imported>Kaldari
(removing stray quotation mark)
imported>Plastikspork
(For candidates without meta/color templates)
Line 46: Line 46:
 
-->{{#if: {{{candidate2|}}} | <!--
 
-->{{#if: {{{candidate2|}}} | <!--
 
# We have a 2nd candidate
 
# We have a 2nd candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate2|}}} |candidate_party = {{{candidate2_party|}}} |candidate_party_unlinked = {{{candidate2_party_unlinked|}}} |candidate_votes = {{{candidate2_votes|}}} |candidate_percent = {{{candidate2_percent|}}} | candidate_change = {{{candidate2_change|}}} }} | }}<!--
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate2|}}} |candidate_party = {{{candidate2_party|}}} |candidate_color= {{{candidate2_color|}}}{{{candidate2_colour|}}} |candidate_party_unlinked = {{{candidate2_party_unlinked|}}} |candidate_votes = {{{candidate2_votes|}}} |candidate_percent = {{{candidate2_percent|}}} | candidate_change = {{{candidate2_change|}}} }} | }}<!--
  
 
-->{{#if: {{{candidate3|}}} | <!--
 
-->{{#if: {{{candidate3|}}} | <!--
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate3|}}} |candidate_party = {{{candidate3_party|}}} |candidate_party_unlinked = {{{candidate3_party_unlinked|}}} |candidate_votes = {{{candidate3_votes|}}} |candidate_percent = {{{candidate3_percent|}}} | candidate_change = {{{candidate3_change|}}} }} | }}<!--
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate3|}}} |candidate_party = {{{candidate3_party|}}} |candidate_color= {{{candidate3_color|}}}{{{candidate3_colour|}}} |candidate_party_unlinked = {{{candidate3_party_unlinked|}}} |candidate_votes = {{{candidate3_votes|}}} |candidate_percent = {{{candidate3_percent|}}} | candidate_change = {{{candidate3_change|}}} }} | }}<!--
  
 
-->{{#if: {{{candidate4|}}} | <!--
 
-->{{#if: {{{candidate4|}}} | <!--
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate4|}}} |candidate_party = {{{candidate4_party|}}} |candidate_party_unlinked = {{{candidate4_party_unlinked|}}} |candidate_votes = {{{candidate4_votes|}}} |candidate_percent = {{{candidate4_percent|}}} | candidate_change = {{{candidate4_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate4|}}} |candidate_party = {{{candidate4_party|}}} |candidate_color= {{{candidate4_color|}}}{{{candidate4_colour|}}} |candidate_party_unlinked = {{{candidate4_party_unlinked|}}} |candidate_votes = {{{candidate4_votes|}}} |candidate_percent = {{{candidate4_percent|}}} | candidate_change = {{{candidate4_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate5|}}} | <!--
 
-->{{#if: {{{candidate5|}}} | <!--
 
# We have a 5th candidate
 
# We have a 5th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate5|}}} |candidate_party = {{{candidate5_party|}}} |candidate_party_unlinked = {{{candidate5_party_unlinked|}}} |candidate_votes = {{{candidate5_votes|}}} |candidate_percent = {{{candidate5_percent|}}} | candidate_change = {{{candidate5_change|}}} }} | }}<!--
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate5|}}} |candidate_party = {{{candidate5_party|}}} |candidate_color= {{{candidate5_color|}}}{{{candidate5_colour|}}} |candidate_party_unlinked = {{{candidate5_party_unlinked|}}} |candidate_votes = {{{candidate5_votes|}}} |candidate_percent = {{{candidate5_percent|}}} | candidate_change = {{{candidate5_change|}}} }} | }}<!--
  
 
-->{{#if: {{{candidate6|}}} | <!--
 
-->{{#if: {{{candidate6|}}} | <!--
 
# We have a 6th candidate
 
# We have a 6th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate6|}}} |candidate_party = {{{candidate6_party|}}} |candidate_party_unlinked = {{{candidate6_party_unlinked|}}} |candidate_votes = {{{candidate6_votes|}}} |candidate_percent = {{{candidate6_percent|}}} | candidate_change = {{{candidate6_change|}}} }} | }}<!--
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate6|}}} |candidate_party = {{{candidate6_party|}}} |candidate_color= {{{candidate6_color|}}}{{{candidate6_colour|}}} |candidate_party_unlinked = {{{candidate6_party_unlinked|}}} |candidate_votes = {{{candidate6_votes|}}} |candidate_percent = {{{candidate6_percent|}}} | candidate_change = {{{candidate6_change|}}} }} | }}<!--
  
 
-->{{#if: {{{candidate7|}}} | <!--
 
-->{{#if: {{{candidate7|}}} | <!--
 
# We have a 7th candidate
 
# We have a 7th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate7|}}} |candidate_party = {{{candidate7_party|}}} |candidate_party_unlinked = {{{candidate7_party_unlinked|}}} |candidate_votes = {{{candidate7_votes|}}} |candidate_percent = {{{candidate7_percent|}}} | candidate_change = {{{candidate7_change|}}} }} | }}<!--
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate7|}}} |candidate_party = {{{candidate7_party|}}} |candidate_color= {{{candidate7_color|}}}{{{candidate7_colour|}}} |candidate_party_unlinked = {{{candidate7_party_unlinked|}}} |candidate_votes = {{{candidate7_votes|}}} |candidate_percent = {{{candidate7_percent|}}} | candidate_change = {{{candidate7_change|}}} }} | }}<!--
  
 
-->{{#if: {{{candidate8|}}} | <!--
 
-->{{#if: {{{candidate8|}}} | <!--
 
# We have an 8th candidate
 
# We have an 8th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate8|}}} |candidate_party = {{{candidate8_party|}}} |candidate_party_unlinked = {{{candidate8_party_unlinked|}}} |candidate_votes = {{{candidate8_votes|}}} |candidate_percent = {{{candidate8_percent|}}} | candidate_change = {{{candidate8_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate8|}}} |candidate_party = {{{candidate8_party|}}} |candidate_color= {{{candidate8_color|}}}{{{candidate8_colour|}}} |candidate_party_unlinked = {{{candidate8_party_unlinked|}}} |candidate_votes = {{{candidate8_votes|}}} |candidate_percent = {{{candidate8_percent|}}} | candidate_change = {{{candidate8_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate9|}}} | <!--
 
-->{{#if: {{{candidate9|}}} | <!--
 
# We have an 9th candidate
 
# We have an 9th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate9|}}} |candidate_party = {{{candidate9_party|}}} |candidate_party_unlinked = {{{candidate9_party_unlinked|}}} |candidate_votes = {{{candidate9_votes|}}} |candidate_percent = {{{candidate9_percent|}}} | candidate_change = {{{candidate9_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate9|}}} |candidate_party = {{{candidate9_party|}}} |candidate_color= {{{candidate9_color|}}}{{{candidate9_colour|}}} |candidate_party_unlinked = {{{candidate9_party_unlinked|}}} |candidate_votes = {{{candidate9_votes|}}} |candidate_percent = {{{candidate9_percent|}}} | candidate_change = {{{candidate9_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate10|}}} | <!--
 
-->{{#if: {{{candidate10|}}} | <!--
 
# We have a 10th candidate
 
# We have a 10th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate10|}}} |candidate_party = {{{candidate10_party|}}} |candidate_party_unlinked = {{{candidate10_party_unlinked|}}} |candidate_votes = {{{candidate10_votes|}}} |candidate_percent = {{{candidate10_percent|}}} | candidate_change = {{{candidate10_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate10|}}} |candidate_party = {{{candidate10_party|}}} |candidate_color= {{{candidate10_color|}}}{{{candidate10_colour|}}} |candidate_party_unlinked = {{{candidate10_party_unlinked|}}} |candidate_votes = {{{candidate10_votes|}}} |candidate_percent = {{{candidate10_percent|}}} | candidate_change = {{{candidate10_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate11|}}} | <!--
 
-->{{#if: {{{candidate11|}}} | <!--
 
# We have an 11th candidate
 
# We have an 11th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate11|}}} |candidate_party = {{{candidate11_party|}}} |candidate_party_unlinked = {{{candidate11_party_unlinked|}}} |candidate_votes = {{{candidate11_votes|}}} |candidate_percent = {{{candidate11_percent|}}} | candidate_change = {{{candidate11_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate11|}}} |candidate_party = {{{candidate11_party|}}} |candidate_color= {{{candidate11_color|}}}{{{candidate11_colour|}}} |candidate_party_unlinked = {{{candidate11_party_unlinked|}}} |candidate_votes = {{{candidate11_votes|}}} |candidate_percent = {{{candidate11_percent|}}} | candidate_change = {{{candidate11_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate12|}}} | <!--
 
-->{{#if: {{{candidate12|}}} | <!--
 
# We have a 12th candidate
 
# We have a 12th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate12|}}} |candidate_party = {{{candidate12_party|}}} |candidate_party_unlinked = {{{candidate12_party_unlinked|}}} |candidate_votes = {{{candidate12_votes|}}} |candidate_percent = {{{candidate12_percent|}}} | candidate_change = {{{candidate12_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate12|}}} |candidate_party = {{{candidate12_party|}}} |candidate_color= {{{candidate12_color|}}}{{{candidate12_colour|}}} |candidate_party_unlinked = {{{candidate12_party_unlinked|}}} |candidate_votes = {{{candidate12_votes|}}} |candidate_percent = {{{candidate12_percent|}}} | candidate_change = {{{candidate12_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate13|}}} | <!--
 
-->{{#if: {{{candidate13|}}} | <!--
 
# We have a 13th candidate
 
# We have a 13th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate13|}}} |candidate_party = {{{candidate13_party|}}} |candidate_party_unlinked = {{{candidate13_party_unlinked|}}} |candidate_votes = {{{candidate13_votes|}}} |candidate_percent = {{{candidate13_percent|}}} | candidate_change = {{{candidate13_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate13|}}} |candidate_party = {{{candidate13_party|}}} |candidate_color= {{{candidate13_color|}}}{{{candidate13_colour|}}} |candidate_party_unlinked = {{{candidate13_party_unlinked|}}} |candidate_votes = {{{candidate13_votes|}}} |candidate_percent = {{{candidate13_percent|}}} | candidate_change = {{{candidate13_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate14|}}} | <!--
 
-->{{#if: {{{candidate14|}}} | <!--
 
# We have a 14th candidate
 
# We have a 14th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate14|}}} |candidate_party = {{{candidate14_party|}}} |candidate_party_unlinked = {{{candidate14_party_unlinked|}}} |candidate_votes = {{{candidate14_votes|}}} |candidate_percent = {{{candidate14_percent|}}} | candidate_change = {{{candidate14_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate14|}}} |candidate_party = {{{candidate14_party|}}} |candidate_color= {{{candidate14_color|}}}{{{candidate14_colour|}}} |candidate_party_unlinked = {{{candidate14_party_unlinked|}}} |candidate_votes = {{{candidate14_votes|}}} |candidate_percent = {{{candidate14_percent|}}} | candidate_change = {{{candidate14_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate15|}}} | <!--
 
-->{{#if: {{{candidate15|}}} | <!--
 
# We have a 15th candidate
 
# We have a 15th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate15|}}} |candidate_party = {{{candidate15_party|}}} |candidate_party_unlinked = {{{candidate15_party_unlinked|}}} |candidate_votes = {{{candidate15_votes|}}} |candidate_percent = {{{candidate15_percent|}}} | candidate_change = {{{candidate15_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate15|}}} |candidate_party = {{{candidate15_party|}}} |candidate_color= {{{candidate15_color|}}}{{{candidate15_colour|}}} |candidate_party_unlinked = {{{candidate15_party_unlinked|}}} |candidate_votes = {{{candidate15_votes|}}} |candidate_percent = {{{candidate15_percent|}}} | candidate_change = {{{candidate15_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate16|}}} | <!--
 
-->{{#if: {{{candidate16|}}} | <!--
 
# We have a 16th candidate
 
# We have a 16th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate16|}}} |candidate_party = {{{candidate16_party|}}} |candidate_party_unlinked = {{{candidate16_party_unlinked|}}} |candidate_votes = {{{candidate16_votes|}}} |candidate_percent = {{{candidate16_percent|}}} | candidate_change = {{{candidate16_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate16|}}} |candidate_party = {{{candidate16_party|}}} |candidate_color= {{{candidate16_color|}}}{{{candidate16_colour|}}} |candidate_party_unlinked = {{{candidate16_party_unlinked|}}} |candidate_votes = {{{candidate16_votes|}}} |candidate_percent = {{{candidate16_percent|}}} | candidate_change = {{{candidate16_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate17|}}} | <!--
 
-->{{#if: {{{candidate17|}}} | <!--
 
# We have a 17th candidate
 
# We have a 17th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate17|}}} |candidate_party = {{{candidate17_party|}}} |candidate_party_unlinked = {{{candidate17_party_unlinked|}}} |candidate_votes = {{{candidate17_votes|}}} |candidate_percent = {{{candidate17_percent|}}} | candidate_change = {{{candidate17_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate17|}}} |candidate_party = {{{candidate17_party|}}} |candidate_color= {{{candidate17_color|}}}{{{candidate17_colour|}}} |candidate_party_unlinked = {{{candidate17_party_unlinked|}}} |candidate_votes = {{{candidate17_votes|}}} |candidate_percent = {{{candidate17_percent|}}} | candidate_change = {{{candidate17_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate18|}}} | <!--
 
-->{{#if: {{{candidate18|}}} | <!--
 
# We have an 18th candidate
 
# We have an 18th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate18|}}} |candidate_party = {{{candidate18_party|}}} |candidate_party_unlinked = {{{candidate18_party_unlinked|}}} |candidate_votes = {{{candidate18_votes|}}} |candidate_percent = {{{candidate18_percent|}}} | candidate_change = {{{candidate18_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate18|}}} |candidate_party = {{{candidate18_party|}}} |candidate_color= {{{candidate18_color|}}}{{{candidate18_colour|}}} |candidate_party_unlinked = {{{candidate18_party_unlinked|}}} |candidate_votes = {{{candidate18_votes|}}} |candidate_percent = {{{candidate18_percent|}}} | candidate_change = {{{candidate18_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate19|}}} | <!--
 
-->{{#if: {{{candidate19|}}} | <!--
 
# We have a 19th candidate
 
# We have a 19th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate19|}}} |candidate_party = {{{candidate19_party|}}} |candidate_party_unlinked = {{{candidate19_party_unlinked|}}} |candidate_votes = {{{candidate19_votes|}}} |candidate_percent = {{{candidate19_percent|}}} | candidate_change = {{{candidate19_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate19|}}} |candidate_party = {{{candidate19_party|}}} |candidate_color= {{{candidate19_color|}}}{{{candidate19_colour|}}} |candidate_party_unlinked = {{{candidate19_party_unlinked|}}} |candidate_votes = {{{candidate19_votes|}}} |candidate_percent = {{{candidate19_percent|}}} | candidate_change = {{{candidate19_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate20|}}} | <!--
 
-->{{#if: {{{candidate20|}}} | <!--
 
# We have a 20th candidate
 
# We have a 20th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate20|}}} |candidate_party = {{{candidate20_party|}}} |candidate_party_unlinked = {{{candidate20_party_unlinked|}}} |candidate_votes = {{{candidate20_votes|}}} |candidate_percent = {{{candidate20_percent|}}} | candidate_change = {{{candidate20_change|}}} | candidate_change = {{{candidate20_change}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate20|}}} |candidate_party = {{{candidate20_party|}}} |candidate_color= {{{candidate20_color|}}}{{{candidate20_colour|}}} |candidate_party_unlinked = {{{candidate20_party_unlinked|}}} |candidate_votes = {{{candidate20_votes|}}} |candidate_percent = {{{candidate20_percent|}}} | candidate_change = {{{candidate20_change|}}} | candidate_change = {{{candidate20_change}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate21|}}} | <!--
 
-->{{#if: {{{candidate21|}}} | <!--
 
# We have a 21st candidate
 
# We have a 21st candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate21|}}} |candidate_party = {{{candidate21_party|}}} |candidate_party_unlinked = {{{candidate21_party_unlinked|}}} |candidate_votes = {{{candidate21_votes|}}} |candidate_percent = {{{candidate21_percent|}}} | candidate_change = {{{candidate21_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate21|}}} |candidate_party = {{{candidate21_party|}}} |candidate_color= {{{candidate21_color|}}}{{{candidate21_colour|}}} |candidate_party_unlinked = {{{candidate21_party_unlinked|}}} |candidate_votes = {{{candidate21_votes|}}} |candidate_percent = {{{candidate21_percent|}}} | candidate_change = {{{candidate21_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate22|}}} | <!--
 
-->{{#if: {{{candidate22|}}} | <!--
 
# We have a 22nd candidate
 
# We have a 22nd candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate22|}}} |candidate_party = {{{candidate22_party|}}} |candidate_party_unlinked = {{{candidate22_party_unlinked|}}} |candidate_votes = {{{candidate22_votes|}}} |candidate_percent = {{{candidate22_percent|}}} | candidate_change = {{{candidate22_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate22|}}} |candidate_party = {{{candidate22_party|}}} |candidate_color= {{{candidate22_color|}}}{{{candidate22_colour|}}} |candidate_party_unlinked = {{{candidate22_party_unlinked|}}} |candidate_votes = {{{candidate22_votes|}}} |candidate_percent = {{{candidate22_percent|}}} | candidate_change = {{{candidate22_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate23|}}} | <!--
 
-->{{#if: {{{candidate23|}}} | <!--
 
# We have an 23rd candidate
 
# We have an 23rd candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate23|}}} |candidate_party = {{{candidate23_party|}}} |candidate_party_unlinked = {{{candidate23_party_unlinked|}}} |candidate_votes = {{{candidate23_votes|}}} |candidate_percent = {{{candidate23_percent|}}} | candidate_change = {{{candidate23_change|}}} }} | }}<!--  
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate23|}}} |candidate_party = {{{candidate23_party|}}} |candidate_color= {{{candidate23_color|}}}{{{candidate23_colour|}}} |candidate_party_unlinked = {{{candidate23_party_unlinked|}}} |candidate_votes = {{{candidate23_votes|}}} |candidate_percent = {{{candidate23_percent|}}} | candidate_change = {{{candidate23_change|}}} }} | }}<!--  
  
 
-->{{#if: {{{candidate24|}}} | <!--
 
-->{{#if: {{{candidate24|}}} | <!--
 
# We have an 24th candidate
 
# We have an 24th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate24|}}} |candidate_party = {{{candidate24_party|}}} |candidate_party_unlinked = {{{candidate24_party_unlinked|}}} |candidate_votes = {{{candidate24_votes|}}} |candidate_percent = {{{candidate24_percent|}}} | candidate_change = {{{candidate24_change|}}} }} | }}<!--
+
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate24|}}} |candidate_party = {{{candidate24_party|}}} |candidate_color= {{{candidate24_color|}}}{{{candidate24_colour|}}} |candidate_party_unlinked = {{{candidate24_party_unlinked|}}} |candidate_votes = {{{candidate24_votes|}}} |candidate_percent = {{{candidate24_percent|}}} | candidate_change = {{{candidate24_change|}}} }} | }}<!--
  
 
-->{{#if: {{{candidate25|}}} | <!--
 
-->{{#if: {{{candidate25|}}} | <!--
 
# We have an 25th candidate
 
# We have an 25th candidate
-->{{Template:Compact election box/candidate |candidate_name = {{{candidate25|}}} |candidate_party = {{{candidate25_party|}}} |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|}}} }} | }}<!--  
 
###End of candidates###
 
###End of candidates###
 
--></includeonly><noinclude>{{Documentation}}</noinclude>
 
--></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 22:31, 5 April 2020

Template documentation[view] [edit] [history] [purge]

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 SmithConservative26,24150.5N/A
Dave Spart Labour10,71920.1N/A
1955 general election
Electorate: 57,901
Conservative hold Jimmy SmithConservativeunopposed
1959 general election
Electorate: 57,901
Turnout: 31,432 (66.2%)
Conservative hold
Majority: 12,952 (19.5%)
Jimmy SmithConservative27,70954.5N/A
Dave Spart Labour8,60416.2N/A
Eric The Viking Vikings for Borsetshire6,90312.5N/A
1964 general election
Electorate: 62,184
Turnout: 41,401 (69.8%) +3.6
Labour gain from Conservative
Majority: 2,011 (9.5%)
Dave SpartLabour20,59138.9+22.7
Jimmy Smith Conservative18,70933.4−22.1
Col. Theo Smithers Borsetshire Ratepayers1,9036.7N/A
William Williamson Liberal1,8126.4N/A
Verte Profonde Green1,5616.0N/A
Egbert Monster [[Official Monster Raving Loony Party|Template:Official Monster Raving Loony Party/meta/shortname]]9123.1N/A
A. N. Ulsterman [[Ulster Unionist Party|Template:Ulster Unionist Party/meta/shortname]]8742.7N/A
A. Alba [[Scottish National Party|Template:Scottish National Party/meta/shortname]]5402.3N/A
1966 general election
Electorate: 62,184
Turnout: 41,401 (69.8%)
Labour hold
Majority: 2,011 (9.5%) +1.4
Dave SpartLabour20,59139.9+1.1
Jimmy Smith Conservative18,70932.3−1.1
Col. Theo Smithers Borsetshire Ratepayers1,9036.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