Template:Election box
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
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):
| 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
Basic
There are three basic templates:
- {{Election box begin}}
- {{Election box candidate}}
- {{End}}
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:
| Party | Candidate | Votes | % | ±% | |
|---|---|---|---|---|---|
| Labour | Tony Blair | 9,999 | 50.0 | +10.0 | |
| Conservative | Michael Howard | 9,999 | 50.0 | +10.0 | |
Party links
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:
| 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 summarise 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:
| 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:
| 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:
|
TemplateData
TemplateData for Election box
The template [[Template:Election box]] is not itself a real template. Instead, there are a family of other templates which together create a results table. See this template's page for how to use [[Template:Election box begin]], [[Template:Election box candidate]] and others to create an election results table.
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||
List of templates
Election box begin
- {{Election box begin}}
- {{Election box begin no change}}
- {{Election box begin no party}}
- {{Election box begin no party no change}}
- {{Election box inline begin}}
- {{Election box inline begin no change}}
- {{Election box open primary begin no change}}
- {{Election box open primary begin no party no change}}
Election box candidate
Standard
- {{Election box candidate}}
- {{Election box candidate for alliance}}
- {{Election box candidate minor party}}
- {{Election box candidate no party link no change}}
- {{Election box candidate with party link}}
- {{Election box candidate with party link coalition 1918}} - for coalition coupon candidates in the 1918 UK general election.
- {{Election box candidate with party link no change}}
Winning
- {{Election box winning candidate no change}}
- {{Election box winning candidate with party link}}
- {{Election box winning candidate with party link no change}}
- {{Election box unopposed candidate with party link}} - for races where no votes are tallied
Inline
- {{Election box inline candidate}}
- {{Election box inline candidate no change}}
- {{Election box inline candidate with party link}}
- {{Election box inline candidate with party link no change}}
- {{Election box inline incumbent}}
Election summary
For parties without an article on Wikipedia.
Election box gain, hold, loss, etc.
- {{Election box gain}}
- {{Election box notional gain with party link}} – for newly created constituencies (see Notional election results); cite the notional results being compared, using Rallings & Thrasher for UK general elections
- {{Election box notional gain with party link no swing}}
- {{Election box gain with party link}}
- {{Election box hold with party link}}
- {{Election box hold with party link no change}}
- {{Election box hold with party link no swing}}
- {{Election box notional hold with party link}}
- {{Election box notional hold with party link no swing}}
- {{Election box void}}
- {{Election box new seat win}} – when no notional result can be cited
- {{Election box new boundary win}}
Election box majority
- {{Election box majority}}
- {{Election box majority no change}}
- {{Election box majority no party}}
- {{Election box majority no party no change}}
- {{Election box margin of victory}}
Election box turnout
- {{Election box turnout}}
- {{Election box turnout no change}}
- {{Election box turnout no change with votes}}
- {{Election box turnout no party}}
Election box total and related
- {{Election box total}}
- {{Election box total ballots}}
- {{Election box total no change}}
- {{Election box total no change with delegates}}
- {{Election box total no party}}
- {{Election box total no party no change}}
- {{Election box total valid}}
- {{Election box total valid no change}}
- {{Election box formal}}
- {{Election box informal}}
- {{Election box necessary no change}}
- {{Election box necessary no party no change}}
- {{Election box registered electors}}
- {{Election box rejected}}
Election box end
- {{Election box inline end}}
- {{Election box end}}
- {{Election box end 1918}} - if using {{Election box candidate with party link coalition 1918}} this is needed.
- {{End}}
Blanks by country
Extensions
- Template:Election FPTP begin As 1, but includes an additional column for expenditures. Example
- Template:Election box begin for list As 1, but better suited to list-based multi-member constituencies. Example
- Template:Election box candidate for alliance As 3, with an additional "side" party. Example
See also
- Template:Compact election box A more compact box for first-past-the-post elections
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.