Template:NZ election box begin/doc

This page is the documentation for MMP candidate box templates, used for New Zealand general elections since 1996.

These candidate box templates are for displaying a list of candidates 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 surname. After the election was held, the template can be amended to show the results.

Example of a candidate box:


 * }

Parameters

 * 1 = Country (but parameter is not used, as it's always "New Zealand");
 * 2 = Year;
 * 3 = ElectorateName;
 * 4 = Refs

Table heading
All tables start with:

&#123;&#123;NZ election box begin || year= Election year | Electorate name | &#125;&#125;


 * Example

&#123;&#123;NZ election box begin || year= 1999 | Albany | &#125;&#125;


 * Which gives

Candidates
List candidates in alphabetical order by surname.

Incumbent candidates

 * Electorate incumbents

Incumbents who won the electorate vote at the last general election, or a by-election:

&#123;&#123;NZ election box incumbent |party = Party name (requires article name without wikilink) |candidate = &#91;&#91; Candidate name &#93;&#93; |notes = Year candidate first entered parliament |list = Rank on party list if applicable |sources = Reference &#125;&#125;

Blank template for copy-paste:

&#123;&#123;NZ election box incumbent |party = |candidate = |notes = |list = |sources = &#125;&#125;


 * List incumbents

Incumbents who stood in the electorate at the last general election, were beaten in the electorate vote, but entered via their party list:

&#123;&#123;NZ election box candidate list |party = |candidate = |notes = |list = |sources = &#125;&#125;

Other candidates

 * Candidates from registered parties

&#123;&#123;NZ election box candidate |party = Party name (requires article name without wikilink) |candidate = &#91;&#91; Candidate name &#93;&#93; |notes = Year candidate first entered parliament if applicable |list = Rank on party list if applicable |sources = Reference &#125;&#125;

Blank template for copy-paste:

&#123;&#123;NZ election box candidate |party = |candidate = |notes = |list = |sources = &#125;&#125;


 * Candidates from minor parties

Minor parties are those that are registered but do not submit a party list, or are unregistered parties that thus cannot provide a party list.

&#123;&#123;NZ election box minor party candidate |color = Party colour (hex code) |party = Party name (requires that article name be wikilinked) |candidate = &#91;&#91; Candidate name &#93;&#93; |notes = Anything noteworthy |sources = Reference &#125;&#125;

If political party meta attributes have been defined, omit the  parameter and enter the party name as follows:

Blank template for copy-paste:

&#123;&#123;NZ election box minor party candidate |color = |party = |candidate = |notes = |sources = &#125;&#125;


 * Independent candidates

Independent candidates are not on a party list. Blank template for copy-paste:

&#123;&#123;NZ election box independent |candidate = |notes = |sources = &#125;&#125;