|- class="vcard"
! style="color:inherit;background-color: #F8F9FA; width: 5px;" |
| class="org" style="width: 145px; background-color:#FE9" | [[{{{party}}}|{{{party}}}]]
| class="fn" style="background-color:#FE9" | {{{candidate}}}
| colspan=2 style="text-align: left; background-color:#FE9" | {{{notes}}}
| style="text-align: left; background-color:#FE9" | {{{sources}}}
|-
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:
1999 general election: Albany [1] | |||||
---|---|---|---|---|---|
Notes: |
Blue background denotes an incumbent. | ||||
Party | Candidate | Notes | List # | Source | |
Independent | Callum Blair | ||||
NZ First | Joy Brett | 35 | |||
Christian Heritage | Tony Corbett | 45 | |||
Green | Bera MacClement | 39 | |||
Alliance | Heather McConachy | 12 | |||
Labour | Hamish McCracken | 60 | |||
National | Murray McCully | Electorate MP since 1987 | none | [2] | |
NMP | Darag Rennie | 8 | |||
ACT | Mike Steeneveld | 19 | |||
Christian Democrats | Rob Wheeler | 11 |
Template coding for candidate boxes
editParameters
edit- 1 = Country (but parameter is not used, as it's always "New Zealand");
- 2 = Year;
- 3 = ElectorateName;
- 4 = Refs
Table heading
editAll tables start with:
{{NZ election box begin || year=Election year | Electorate name | <ref>Reference webpage</ref> }}
- Example
{{NZ election box begin || year=1999 | Albany | <ref>{{cite web |url= http://www.electionresults.govt.nz/electionresults_1999/e9/html/cand_01.html |title=Candidate vote details – Albany |accessdate=28 March 2017 | publisher=[[Electoral Commission (New Zealand)|Electoral Commission]]}}</ref> }}
- Which gives
1999 general election: Albany [3] | |||||
---|---|---|---|---|---|
Notes: |
Blue background denotes an incumbent. | ||||
Party | Candidate | Notes | List # | Source |
Candidates
editList candidates in alphabetical order by surname.
Incumbent candidates
edit- Electorate incumbents
Incumbents who won the electorate vote at the last general election, or a by-election:
{{NZ election box incumbent |party = Party name (requires article name without wikilink) |candidate = [[Candidate name]] |notes = Year candidate first entered parliament |list = Rank on party list if applicable |sources = Reference }}
Blank template for copy-paste:
{{NZ election box incumbent |party = |candidate = |notes = |list = |sources = }}
- 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:
{{NZ election box candidate list |party = |candidate = |notes = |list = |sources = }}
Other candidates
edit- Candidates from registered parties
{{NZ election box candidate |party = Party name (requires article name without wikilink) |candidate = [[Candidate name]] |notes = Year candidate first entered parliament if applicable |list = Rank on party list if applicable |sources = Reference }}
Blank template for copy-paste:
{{NZ election box candidate |party = |candidate = |notes = |list = |sources = }}
- 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.
{{NZ election box minor party candidate |color = Party colour (hex code) |party = Party name (requires that article name be wikilinked) |candidate = [[Candidate name]] |notes = Anything noteworthy |sources = Reference }}
If political party meta attributes have been defined, omit the color
parameter and enter the party name as follows: [[Party name|{{Party name/meta/shortname}}]]
Blank template for copy-paste:
{{NZ election box minor party candidate |color = |party = |candidate = |notes = |sources = }}
- Independent candidates
Independent candidates are not on a party list. Blank template for copy-paste:
{{NZ election box independent |candidate = |notes = |sources = }}
See also
editReferences
edit- ^ "Candidate vote details – Albany". Electoral Commission. Retrieved 28 March 2017.
- ^ "Hon Murray McCully". New Zealand Parliament. Retrieved 27 March 2017.
- ^ "Candidate vote details – Albany". Electoral Commission. Retrieved 28 March 2017.