Difference between revisions of "Template:Election summary party/doc"

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
(Created page with '{{Documentation subpage}} == Usage == <nowiki> {{Election summary party |party = Fine Party |seats = 4 |net = {{steady}} |gain = {{increase}} 4 |loss = {{d...')
 
imported>Frietjes
(example)
Line 19: Line 19:
  
 
Parameter {{code|party}} may be replaced with parameter <code>other</code>, which is displayed as it is, i.e. without a link.
 
Parameter {{code|party}} may be replaced with parameter <code>other</code>, which is displayed as it is, i.e. without a link.
 +
 +
== Example ==
 +
{{Election Summary Begin|title = Colchester local election result 2000}}
 +
{{Election Summary Party|
 +
  |party      = Conservative Party (UK)
 +
  |seats      = 9
 +
  |gain      = 4
 +
  |loss      = 0
 +
  |net        = +4
 +
  |seats %    = 45.0
 +
  |votes %    = 38.8
 +
  |votes      = 11,951
 +
  |plus/minus =
 +
}}
 +
{{Election Summary Party|
 +
  |party      = Liberal Democrats (UK)
 +
  |seats      = 6
 +
  |gain      = 1
 +
  |loss      = 3
 +
  |net        = -2
 +
  |seats %    = 30.0
 +
  |votes %    = 33.1
 +
  |votes      = 10,192
 +
  |plus/minus =
 +
}}
 +
{{Election Summary Party|
 +
  |party      = Labour Party (UK)
 +
  |seats      = 4
 +
  |gain      = 1
 +
  |loss      = 2
 +
  |net        = -1
 +
  |seats %    = 20.0
 +
  |votes %    = 24.1
 +
  |votes      = 7,429
 +
  |plus/minus =
 +
}}
 +
{{Election Summary Party|
 +
  |party      = [[Tiptree Residents Association|Tiptree Residents]]
 +
  |colour    = #80007F
 +
  |seats      = 1
 +
  |gain      = 0
 +
  |loss      = 0
 +
  |net        = 0
 +
  |seats %    = 5.0
 +
  |votes %    = 2.4
 +
  |votes      = 727
 +
  |plus/minus =
 +
}}
 +
{{Election Summary Party|
 +
  |party      = Independent politician
 +
  |seats      = 0
 +
  |gain      = 0
 +
  |loss      = 1
 +
  |net        = -1
 +
  |seats %    = 0
 +
  |votes %    = 1.6
 +
  |votes      = 478
 +
  |plus/minus =
 +
}}
 +
{{Election Summary Party|
 +
  |party      = Natural Law Party
 +
  |seats      = 0
 +
  |gain      = 0
 +
  |loss      = 0
 +
  |net        = 0
 +
  |seats %    = 0
 +
  |votes %    = 0.1
 +
  |votes      = 39
 +
  |plus/minus =
 +
}}
 +
{{Election box end}}
 +
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
[[Category:Election and referendum infobox templates]]
 
[[Category:Election and referendum infobox templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 14:50, 11 January 2016

Usage

{{Election summary party
 |party = Fine Party
 |seats = 4
 |net = {{steady}}
 |gain = {{increase}} 4
 |loss = {{decrease}} 4
 |votes = 
 |votes % = 
 |seats % = 
 |plus/minus = 
}}

If non-empty parameter government is present, the line is displayed in bold.

If parameter party equals to "Others" (without quotes), link is not produced.

Parameter party may be replaced with parameter other, which is displayed as it is, i.e. without a link.

Example

Colchester local election result 2000
Party Seats Gains Losses Net gain/loss Seats % Votes % Votes +/−
  Conservative 9 4 0 +4 45.0 38.8 11,951
  Liberal Democrats 6 1 3 -2 30.0 33.1 10,192
  Labour 4 1 2 -1 20.0 24.1 7,429
  Tiptree Residents 1 0 0 0 5.0 2.4 727
  Independent 0 0 1 -1 0 1.6 478
style="background-color: Template:Natural Law Party/meta/color; width: 3px;" |   Natural Law Party 0 0 0 0 0 0.1 39