قالب:Election box candidate AU party/doc


These election box templates are for displaying a list of candidates and results for Australian elections contested by parties. They produce tables like this:

قالب:Election box formalقالب:Election box informal
2019 Australian fictional election: Utopia
الحزب المرشح الأصوات % ±%
Liberal Katie Norris 44,001 46.59 −6.02
Centre Alliance Ashan de Silva 27,452 29.07 +29.07
Labor John Clarke 14,363 15.21 −3.16
Aussie battlers Tony Woodford 5,458 5.78 −2.18
الإقبال على الانتخابات 98,673 93.44 −1.18

Usage

Basic

There are six templates used in the example above:

The begin and end templates start and end a table with appropriate columns and formatting. The candidate template is used once for each candidate and contributes a row to the table. If there is a wikipedia page for the candidate, this should be linked. If the party is listed at Template:Australian politics/party colours, it will use the colour for that party, while Template:Australian politics/name, will return a linked name for that party. This may be different for state elections, such as "liberal sa" or "labor qld". If they are not listed, there is no colour and the party unlinked. Where you want to use a name that is different from the linked party, adding <nowiki/> at the end of the party name will prevent linking or using the party colour, as in the Labor example above.

Using the example above these are :

 {{Election box begin |title=2019 Australian fictional election: [[Utopia]]}}
 {{Election box candidate AU party 
   |candidate = [[Katie Norris]]
   |party = Liberal
   |votes = 44,001
   |percentage = 46.59
   |change = −6.02
 }}
 {{Election box candidate AU party
   |candidate = Ashan de Silva
   |party = Centre Alliance
   |votes = 27,452
   |percentage = 29.07
   |change = +29.07
 }}
 {{Election box candidate AU party
   |candidate = John Clarke
   |party = Labor<nowiki/>
   |votes = 14,363
   |percentage = 15.21
   |change = −3.16
 }}
 {{Election box formal
   |votes = 94,445
   |percentage = 95.72
   |change = +1.10
 }}
 {{Election box informal
   |votes = 4,228
   |percentage = 4.28
   |change = −1.10
 }}
 {{Election box turnout
   |votes = 98,673
   |percentage = 93.44
   |change = −1.18
 }}
 {{Election box end}}

Preferential Results

One or both of the following templates are commonly used for the results where a form of preferential voting is used:

  • {{Election box 2pp}}: Two-party-preferred result, used where the election comes down to a choice between the two major parties, typically in Australia the Liberal/National Coalition and Labor. Alternatively, in places where the Electoral Commission does not calculate 2PP alongside 2CP {{Election box estimated 2pp}} may be used if a reliable source has calculated an estimate.
  • {{Election box 2cp}}: Two-candidate-preferred result, used where one or both major parties is not in the top two. Where the two-party-preferred figures are also available, this may included and is typically placed before the two-candidate-preferred result.

Adding these to the table above would be

{{Election box 2pp}}
{{Election box candidate AU party
|candidate = [[Katie Norris]]
|party = Liberal
|votes = 61,566
|percentage = 65.19
|change = −1.36
}}
{{Election box candidate AU party
|candidate = John Clarke
|party = Labor
|votes = 32,879
|percentage = 34.81
|change = +1.36
}}
{{Election box 2cp}}
{{Election box candidate AU party
|candidate = [[Katie Norris]]
|party = Liberal
|votes = 51,698
|percentage = 54.74
|change = −11.81
}}
{{Election box candidate AU party
|candidate = Ashan de Silva
|party = Centre Alliance
|votes = 42,747
|percentage = 45.26
|change = +45.26
}}

Which gives:

قالب:Election box 2ppقالب:Election box 2cp
{{{title}}}
الحزب المرشح الأصوات % ±%
Liberal Katie Norris 61,566 65.19 −1.36
Labor John Clarke 32,879 34.81 +1.36
Liberal Katie Norris 51,698 54.74 −11.81
Centre Alliance Ashan de Silva 42,747 45.26 +45.26

Final result

One of the following templates then concludes the results

In elections that are generally non-partisan, independent dominated, or there is an independent 2CP, one of the following may be used instead.

If there is a redistribution which changes the notional seat status, adding |notional = yes clarifies that the hold or gain is notional

{{{title}}}
الحزب المرشح الأصوات % ±%
(new seat win)
Liberal win (new seat)
قالب:Election box hold AU partyقالب:Election box hold AU party
{{{title}}}
الحزب المرشح الأصوات % ±%
(hold)
قالب:Election box gain AU partyقالب:Election box gain AU party
{{{title}}}
الحزب المرشح الأصوات % ±%
(gain)
قالب:Election box member change AU party
{{{title}}}
الحزب المرشح الأصوات % ±%
(member change)
قالب:Election box gain AU independent
{{{title}}}
الحزب المرشح الأصوات % ±%
Independent Jane Citizen 50,500 50.5 +1.5
Independent Joe Bloggs 49,500 49.5 −1.5

See also

Template:Election box/doc

TemplateData

This is the بيانات القالب documentation for this template used by المحرر المرئي وأدوات أخرى.

See the monthly error report for this template.

TemplateData for Election box candidate AU party