Template: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:

Table heading
All tables start with:

&#123;&#123;MMP election box begin |title=&#91;&#91; Election name | Election type (year) &#93;&#93;: Electorate name &#125;&#125;


 * Example

&#123;&#123;MMP election box begin |title=&#91;&#91; New Zealand general election, 2008|General election, 2008 &#93;&#93;: &#91;&#91; Electorate name &#93;&#93;&lt;ref&gt;&#91; http://www.electionresults.org.nz/electionresults_2008/electorate-1.html election result Auckland Central 2008 &#93;&lt;/ref&gt;&#125;&#125;


 * Which gives

Winning candidate
Then either incumbent or candidate wins:

&#123;&#123;MMP election box incumbent win| |party = Party Name |candidate = &#91;&#91; Candidate name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

&#123;&#123;MMP election box candidate win| |party = Party Name |candidate = &#91;&#91; Candidate name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

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 &#123;&#123; MMP election box local party candidate &#125;&#125;. For historic MMP parties that don't have assigned colors or shortnames (i.e. those with no meta/color or meta/shortname pages) use &#123;&#123; MMP election box historic party candidate &#125;&#125;. 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
&#123;&#123;MMP election box incumbent lose list| |party = Party Name |candidate = &#91;&#91; Candidate Name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

&#123;&#123;MMP election box incumbent lose| |party = Party Name |candidate = &#91;&#91; Candidate Name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

Candidates, registered parties & Independents
&#123;&#123;MMP election box candidate list| |party = Party Name |candidate = &#91;&#91; Candidate Name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

&#123;&#123;MMP election box candidate lose| |party = |candidate = &#91;&#91; Candidate Name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

&#123;&#123;MMP election box independent| |candidate = Candidate Name |votes = |percentage = |change = &#125;&#125;

Miscellaneous candidates
&#123;&#123;MMP election box local party candidate| |color = Color #value or Name |party = Party Name |candidate = &#91;&#91; Candidate Name &#93;&#93; |votes = |percentage = |change = &#125;&#125;

&#123;&#123;MMP election box historic party candidate| |color = Color #value or Name |party = Party Name |candidate = &#91;&#91; Candidate Name &#93;&#93; |votes = |percentage = |change = |party votes = |party percent = |party change = &#125;&#125;

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

&#123;&#123;MMP election box party only| |party = Party Name |party votes = |party percent = |party change = &#125;&#125;

Miscellaneous candidates/parties without meta data
&#123;&#123;MMP election box historic party only| |party = Party Name |color = Color #value or Name |party votes = |party percent = |party change = &#125;&#125;

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

&#123;&#123;MMP election box informal vote| |votes = |party votes = &#125;&#125;

&#123;&#123;MMP election box total vote| |votes = |party votes = &#125;&#125;

&#123;&#123;MMP election box turnout| |turnout = |percentage = |change = &#125;&#125;


 * If you don't find turnout, don't worry, just don't use the template.

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.

&#123;&#123;MMP election box majority hold| |winner = Party Name |votes = |percent = |change = &#125;&#125;

&#123;&#123;MMP election box majority gain| |winner = Party Name |loser = Party Name |votes = |percent = |change = &#125;&#125;

&#123;&#123;MMP election box majority win| |winner = Party Name |votes = |percent = &#125;&#125;

<!-

New seat, East Coast Bays, 2002
--->

Template list

 * MMP election box begin
 * MMP election box incumbent win
 * MMP election box incumbent lose
 * MMP election box incumbent list
 * MMP election box other incumbent win
 * MMP election box candidate win
 * MMP election box candidate list
 * MMP election box candidate lose
 * MMP election box local party candidate
 * MMP election box historic party candidate
 * MMP election box independent
 * MMP election box party only
 * MMP election box historic party only
 * MMP election box informal vote
 * MMP election box total vote
 * MMP election box turnout
 * MMP election box majority hold
 * MMP election box majority gain
 * MMP election box majority win