Шаблон:MMP election box/doc

Мавод аз Википедиа — донишномаи озод

This page is the documentation for MMP election box templates, currently used for New Zealand general elections (since 1996) and elections to the Scottish Parliament (since 1999).

These Election box templates are for displaying a list of candidates and results for an electorate in an MMP election. They contain examples of code that wiki-editors can copy and paste (and edit) to produce the tables shown below. The entries are sorted by descending candidate vote, and then by party vote:


Scottish Parliament election, 2007: Kilmarnock and Loudoun

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
SNP Willie Coffey 14,297 42.8 +6.6 12,147 36.31 +9.03
Labour Red XN Margaret Jamieson 12,955 38.8 -1.4 12,146 36.31 -0.93
Conservative Janette McAlpine 4,127 12.3 +1.9 3,894 11.64 +0.22
Liberal Democrats Ron Aitken 2,056 6.2 +1.2 1,643 4.91 -1.02
Scottish Green   820 2.45 -1.89
Scottish Senior Citizens   721 2.16 -2.08
Solidarity   430 1.29 +1.29
BNP   400 1.20 +1.20
Scottish Christian   258 0.77 +0.77
Socialist Labour   240 0.72 -0.96
Publican Party 159 0.47 +0.47
Scottish Socialist   155 0.46 -5.22
Christian Peoples   140 0.41 +0.41
NHSFirst 119 0.36 +0.36
UKIP   94 0.28 +0.06
Scottish Unionist   83 0.25 -0.15
Informal votes 1,018 1,004
Total Valid votes 33,435 33,449
Turnout 34,453 56.68 +4.75
SNP gain from Labour Majority 1,342 4.0 +0.16

Template coding for MMP elections[вироиши манбаъ]

Table Heading[вироиши манбаъ]

All tables start with:

{{MMP election box begin
|title=[[Election name|Election type (year)]]: Electorate name<ref>Reference webpage</ref>
}}
Example

{{MMP election box begin |title=[[New Zealand general election, 2008|General Election 2008]]: [[Electorate name]]<ref>[http://www.electionresults.org.nz/electionresults_2008/electorate-1.html election result Auckland Central 2008]</ref>}}

Which gives


General Election 2008: Auckland Central[1]

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%

Winning candidate[вироиши манбаъ]

Then either incumbent or candidate wins:

{{MMP election box incumbent win|
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}
{{MMP election box candidate win|
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}


General Election 2008: Auckland Central

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
Labour Green tickY Candidate Name


General Election 2008: Botany

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
National Candidate Name

Losing candidates[вироиши манбаъ]

Followed by losing candidates - who currently fall into six types:

  • Incumbent loses but is elected as list MP
  • Incumbent loses and is not elected as list MP
  • Candidate loses but is elected as list MP
  • Candidate loses and in not elected as list MP
  • Non-registered or local party candidate loses
  • Historic party candidate loses

Independents use the independent template below. For non-registered parties use {{MMP election box local party candidate}}.
For historic MMP parties that don't have assigned colors or shortnames (i.e. those with no meta/color or meta/shortname pages) use {{MMP election box historic party candidate}}. In New Zealand this only applies to minor parties from the 1996 and 1999 elections that became defunct before the 2002 election.
For list-only registered parties (i.e. without a candidate) use the party only or historic party only templates.

Incumbents[вироиши манбаъ]

{{MMP election box incumbent lose list|
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}
{{MMP election box incumbent lose|
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}

Candidates, registered parties & Independents[вироиши манбаъ]

{{MMP election box candidate list|
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}
{{MMP election box candidate lose|
|party = 
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}
{{MMP election box independent|
|candidate = Candidate Name
|votes = 
|percentage = 
|change = 
}}

Miscellaneous candidates[вироиши манбаъ]

{{MMP election box local party candidate|
|color = Color #value or Name
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
}}
{{MMP election box historic party candidate|
|color = Color #value or Name
|party = Party Name
|candidate = [[Candidate Name]]
|votes = 
|percentage = 
|change = 
|party votes = 
|party percent = 
|party change = 
}}

Example[вироиши манбаъ]

General Election 1996: Auckland East

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
Labour John A. Lee
Liberal Red XN Arthur Myers
Independent John Smith
Nimby Party A. Citizen
Forgotten Party (1996) Candy Date

Parties without electorate candidates[вироиши манбаъ]

For parties that are not contesting the electorate vote, but only the party vote, use the following:

{{MMP election box party only|
|party = Party Name
|party votes = 
|party percent = 
|party change = 
}}

Example[вироиши манбаъ]

General Election 1996: Auckland East

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
Labour John A. Lee
Liberal Red XN Arthur Myers
Independent John Smith
Destiny  

Miscellaneous candidates/parties without meta data[вироиши манбаъ]

{{MMP election box historic party only|
|party = Party Name
|color = Color #value or Name
|party votes = 
|party percent = 
|party change = 
}}

Total votes[вироиши манбаъ]

Voting is tallied in three tables; informal votes, total votes and turnout

{{MMP election box informal vote|
|votes = 
|party votes = 
}}
{{MMP election box total vote|
|votes = 
|party votes = 
}}
{{MMP election box turnout|
|turnout = 
|percentage = 
|change = 
}}
If you don't find turnout, don't worry, just don't use the template.


General Election 2008: Auckland East

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
Labour Green tickY Candidate Name
Informal votes 450 225
Total Valid votes 19,000 19,500
Turnout 19,562 68.25 +0.65

Seat's status and Majority[вироиши манбаъ]

The seat's status is either hold (party retains control of seat), gain (party gains seat from incumbent party), or win (party wins new seat). Majority is expressed as both a total and a percentage, and as a percentage change (swing) from previous election.

{{MMP election box majority hold|
|winner = Party Name
|votes = 
|percent = 
|change =
}}
{{MMP election box majority gain|
|winner = Party Name
|loser = Party Name
|votes = 
|percent = 
|change = 
}}
{{MMP election box majority win|
|winner = Party Name
|votes = 
|percent =
}}


General Election 2008: Auckland East

Notes: Green background denotes the winner of the electorate vote.
Pink background denotes a candidate elected from their party list.
Yellow background denotes an electorate win by a list member.
A Green tickY or Red XN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party Votes % ±%
Labour Green tickY Candidate Name
Informal votes 450 225
Total Valid votes 19,000 19,500
Labour hold Majority


Template list[вироиши манбаъ]

See also[вироиши манбаъ]

{{MMP by-election box}}
Index of New Zealand political party meta attributes
Index of United Kingdom political parties meta attributes