Template:MMP election box

From blackwiki
Revision as of 23:01, 5 December 2010 by imported>Adabow (by-elections)
Jump to navigation Jump to search

This page is the documentation for MMP election box templates, currently used for New Zealand general elections. 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 wikipedians can copy and paste (and edit) to produce the tables shown below:


General Election 2008: Auckland[1]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand National Party/meta/color; width: 5px;" | [[New Zealand National Party|Template:New Zealand National Party/meta/shortname]] John Key 980,000 49.00 +12.00 980,000 49.00 +14.00
style="background-color: Template:New Zealand Labour Party/meta/color; width: 5px;" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] 13pxN Helen Clark 800,000 40.00 -9.00 800,000 40.00 -10.00
Green Jeanette Fitzsimons 100,000 5.00 -1.00 100,000 5.00 -1.25
style="background-color: Template:New Zealand First/meta/color; width: 5px;" | [[New Zealand First|Template:New Zealand First/meta/shortname]] Winston Peters 80,000 4.00 -2.00 80,000 4.00 -2.25
ACT Rodney Hide 40,000 2.00 0.00 40,000 2.00 -0.50
Informal votes 15000 6000
Total Valid votes 2,000,000 2,000,000
style="background-color: Template:New Zealand National Party/meta/color" | [[New Zealand National Party|Template:New Zealand National Party/meta/shortname]] gain from [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] Majority 180,000 9.00 +10.00

Template coding for NZ 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://2008.electionresults.org.nz/electorate-1.html election result Auckland Central 2008]</ref>}}

Which gives


General Election 2008: Auckland Central[2]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN 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[3]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand Labour Party/meta/color; width: 5px;" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] Template:Y Candidate Name


General Election 2008: Botany[4]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand National Party/meta/color; width: 5px;" | [[New Zealand National Party|Template:New Zealand National Party/meta/shortname]] 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[5]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand Labour Party/meta/color; width: 5px;" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] John A. Lee
style="background-color: Template:New Zealand Liberal Party/meta/color; width: 5px;" | [[New Zealand Liberal Party|Template:New Zealand Liberal Party/meta/shortname]] 13pxN 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[6]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand Labour Party/meta/color; width: 5px;" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] John A. Lee
style="background-color: Template:New Zealand Liberal Party/meta/color; width: 5px;" | [[New Zealand Liberal Party|Template:New Zealand Liberal Party/meta/shortname]] 13pxN 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[7]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand Labour Party/meta/color; width: 5px;" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] Template:Y 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[8]
Notes:

Blue 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, or other incumbent.
A 13pxY or 13pxN denotes status of any incumbent, win or lose respectively.

Party Candidate Votes % ±% Party votes % ±%
style="background-color: Template:New Zealand Labour Party/meta/color; width: 5px;" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] Template:Y Candidate Name
Informal votes 450 225
Total Valid votes 19,000 19,500
style="background-color: Template:New Zealand Labour Party/meta/color" | [[New Zealand Labour Party|Template:New Zealand Labour Party/meta/shortname]] hold Majority


Script list

See also

References