Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage and parameter list for Election box begin [edit]  





2 Usage  



2.1  Basic  





2.2  Party links  





2.3  Majority and turnout  





2.4  Election outcome  







3 List of templates  



3.1  Election box begin  





3.2  Election box candidate  



3.2.1  Standard  





3.2.2  Winning  





3.2.3  Inline  







3.3  Election summary  





3.4  Election box gain, hold, loss, etc.  





3.5  Election box majority  





3.6  Election box turnout  





3.7  Election box total and related  





3.8  Election box end  





3.9  Blanks by country  





3.10  Extensions  







4 See also  














Template:Election box begin








Català
Cymraeg
Ελληνικά
فارسی
Français
ि
Bahasa Indonesia

ि
Македонски

Bahasa Melayu


ି

Română
Русский
Scots
Simple English
سنڌي
Српски / srpski
ி


اردو


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikinews
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{title}}}
Party Candidate Votes % ±%

These election box templates are for displaying a list of candidates and results for any election. They produce tables like this (figures are just examples; they are not meant to work mathematically):

2005 general election: Strangford
Party Candidate Votes % ±%
Conservative John Smith 101,549 63.8 +6.2
Labour Jane Johnson 52,201 31.6 −8.2
Majority 153,700 72.4 +5.4
Turnout 9,999 50.0 +10.0
Registered electors 319,998 +3.6

Usage and parameter list for Election box begin [edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Election box begin in articles based on its TemplateData.

TemplateData for Election box begin

A template to start the box for showing election results; part of the 'Election box' series
Election titletitle

The title of the election to display as a heading above the rest of the box.

Candidate titlecandidatetitle

The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list.

Floatfloat

Alignment for floating the table; use left, right, center, or none (default)

A template to start the box for showing election results; part of the 'Election box' series

Template parameters

ParameterDescriptionTypeStatus
Election titletitle

The title of the election to display as a heading above the rest of the box.

Stringrequired
Candidate titlecandidatetitle

The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list.

Stringoptional
Floatfloat

Alignment for floating the table; use left, right, center, or none (default)

Stringoptional

Usage

Basic

There are three basic templates:

The begin and end templates start and end a table with appropriate columns and formatting. The candidate template is used once for each candidate and contributes a row to the table.

When using this template please use the election box end template rather than simply inserting |} at the end of the election box.

For example:

 {{Election box begin |title=[[2005 United Kingdom general election|2005 general election]]: Strangford}}
 {{Election box candidate
   |party      = Labour
   |candidate  = Tony Blair
   |votes      = 9,999
   |percentage = 50.0
   |change     = +10.0
 }}
 {{Election box candidate
   |party      = Conservative
   |candidate  = Michael Howard
   |votes      = 9,999
   |percentage = 50.0
   |change     = +10.0
 }}
 {{Election box end}}
 

Will create this:

2005 general election: Strangford
Party Candidate Votes % ±%
Labour Tony Blair 9,999 50.0 +10.0
Conservative Michael Howard 9,999 50.0 +10.0

See Template:Election box candidate with party link for usage and set-up.

Majority and turnout

Three further templates:

can be added to record the majority, turnout and number of registered electors for an election. (In this context, "majority" refers to the winning margin between the first and second placed candidates.)

For example:

 ...
 {{Election box majority
   |votes      = 9,999
   |percentage = 50.0
   |change     = +10.0
 }}
 {{Election box turnout
   |votes      = 9,999
   |percentage = 50.0
   |change     = +10.0
 }}
 {{Election box registered electors|
   |reg. electors = 19,998
   |ref           =
   |change        = +2.3
 }}
 {{Election box end}}
 

Will create this:

2005 general election: Strangford
Party Candidate Votes % ±%
Labour Tony Blair 9,999 50.0 +10.0
Conservative Michael Howard 9,999 50.0 +10.0
Majority 9,999 50.0 +10.0
Turnout 9,999 50.0 +10.0
Registered electors 19,998 +2.3

Election outcome

Finally there are two templates:

that can be used to summarize the outcome of an election, in terms of whether the incumbent holds the seat or whether it is lost to another party.

For example:

 ...
 {{Election box hold with party link
   |winner     = Labour Party (UK)
   |swing      = +10.0
 }}

 or...

 {{Election box gain with party link
   |winner     = Conservative Party (UK)
   |loser      = Labour Party (UK)
   |swing      = +10.0
 }}
 {{Election box end}}
 

Will create this:

2005 general election: Strangford
Party Candidate Votes % ±%
Labour Tony Blair 9,999 50.0 +10.0
Conservative Michael Howard 9,999 50.0 +10.0
Majority 9,999 50.0 +10.0
Turnout 9,999 50.0 +10.0
Registered electors 19,998 +9.9
Labour hold Swing +10.0

or this...

2005 general election: Strangford
Party Candidate Votes % ±%
Labour Tony Blair 9,999 50.0 +10.0
Conservative Michael Howard 9,999 50.0 +10.0
Majority 9,999 50.0 +10.0
Turnout 9,999 50.0 +10.0
Registered electors 19,998 +9.9
Conservative gain from Labour Swing +10.0

Notes:

List of templates

Election box begin

Election box candidate

Standard

Winning

Inline

Election summary

For parties without an article on Wikipedia.

Election box gain, hold, loss, etc.

Election box majority

Election box turnout

Election box end

Blanks by country

Extensions

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Election_box_begin&oldid=1179498188"

Categories: 
Lua-based templates
Election box templates
Election and referendum infobox templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 10 October 2023, at 14:34 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki