{{Election summary total}} adds a row totaling the number of votes in an election, for purposes of the {{Election summary}} group of templates.

Background

edit

This is a fork of {{Election summary net total}}, which is a misnomer that does what editors might presume this template does (i.e. end the summary table for a series of template invocations relying on the default set).

Usage

edit

Syntax

edit
{{Election summary total
| net    = no <!-- if "yes", removes two extra empty columns to accommodate the loss of gain & loss cols -->
| seats  = 
| votes  = 
}}

Examples

edit

For the default set

edit
{{Election summary begin|title = [[2013 Worcestershire County Council election]] }}
{{Election summary party
  |party      = Conservative Party (UK)
  |seats      = 30
  |gain       = 4
  |loss       = 16
  |net        = 12
  |seats %    = 52.6
  |votes %    = 33.3
  |votes      = 52,609
  |plus/minus = 
}}
{{Election summary party
  |party      = Labour Party (UK)
  |seats      = 12
  |gain       = 9
  |loss       = 0
  |net        = +9
  |seats %    = 21.1
  |votes %    = 23.9
  |votes      = 37,821
  |plus/minus = 
}}
{{Election summary party
  |party      = United Kingdom Independence Party
  |seats      = 4
  |gain       = 4
  |loss       = 0
  |net        = +4
  |seats %    = 7.0
  |votes %    = 20.4
  |votes      = 32,285
  |plus/minus = 
}}
{{Election summary total
  |seats      = 57
  |votes      = 157,975
}}
2013 Worcestershire County Council election
Party Seats Gains Losses Net gain/loss Seats % Votes % Votes +/−
  Conservative 30 4 16 –12 52.6 33.3 52,609
  Labour 12 9 0 +9 21.1 23.9 37,821
  UKIP 4 4 0 +4 7.0 20.4 32,285
Total 57 157,975

For the “net seats only” set

edit
{{Election summary net begin|title = [[2013 Worcestershire County Council election]] }}
{{Election summary net party
  |party      = Conservative Party (UK)
  |seats      = 30
  |net        = 12
  |seats %    = 52.6
  |votes %    = 33.3
  |votes      = 52,609
  |plus/minus = 
}}
{{Election summary net party
  |party      = Labour Party (UK)
  |seats      = 12
  |net        = +9
  |seats %    = 21.1
  |votes %    = 23.9
  |votes      = 37,821
  |plus/minus = 
}}
{{Election summary net party
  |party      = United Kingdom Independence Party
  |seats      = 4
  |net        = +4
  |seats %    = 7.0
  |votes %    = 20.4
  |votes      = 32,285
  |plus/minus = 
}}
{{Election summary total |net=yes
  |seats      = 57
  |votes      = 157,975
}}
2013 Worcestershire County Council election
Party Seats Net gain/loss Seats % Votes % Votes +/−
  Conservative 30 –12 52.6 33.3 52,609
  Labour 12 +9 21.1 23.9 37,821
  UKIP 4 +4 7.0 20.4 32,285
Total 57 157,975