Template:Infobox Election Campaign

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.
{{{jurisdiction}}}
Election campaign, {{{year}}}
Government Opposition
{{{gov_name}}} {{{opp_name}}}
{{{gov_image}}} {{{opp_image}}}
{{{gov_leader}}} {{{opp_leader}}}
Leader since {{{gov_leader_since}}} {{{opp_leader_since}}}
Leader rating{{{ref_leader_rating}}} {{{gov_leader_rating}}}% {{{opp_leader_rating}}}%
2PP rating{{{ref_2PP_rating}}} {{{gov_2PP_rating}}}% {{{opp_2PP_rating}}}%
[[{{{prev_election_article}}}|{{{prev_election_year}}} 2PP result]] {{{gov_2PP_previous}}}% {{{opp_2PP_previous}}}%
Seats {{{gov_seats}}} {{{opp_seats}}}
Seats needed {{{gov_target}}} {{{opp_target}}}
Swing needed {{{gov_swing}}}% {{{opp_swing}}}%
[edit] Template documentation
{{Infobox Election Campaign
<!-- Overview -->
| jurisdiction = 
| year = 
| prev_election_year =
| prev_election_article =

<!-- Parties -->
| gov_colour = 
| gov_name = 
| gov_image = 
| opp_colour = 
| opp_name = 
| opp_image = 

<!-- Leaders -->
| gov_leader = 
| gov_leader_since = 
| gov_leader_rating = 
| opp_leader = 
| opp_leader_since = 
| opp_leader_rating = 

<!-- Vote -->
| gov_2PP_rating = 
| gov_2PP_previous = 
| gov_seats = 
| gov_target = 
| gov_marginals = 
| gov_swing = 
| opp_2PP_rating = 
| opp_2PP_previous = 
| opp_seats = 
| opp_target = 
| opp_marginals = 
| opp_swing = 

<!-- References -->
| ref_leader_rating = 
| ref_2PP_rating = 
| ref_marginals = 
}}

[edit] Usage

[edit] Fields

  • jurisdiction = Where the election took place
    • Allowed values: au (Australia), nsw, vic, qld, sa, wa, act, nt, nz (New Zealand)
  • year = Year the election took place
  • prev_election_year = Year of previous election
  • prev_election_article = Title of article covering previous election. Do not add link tag
  • _leader = Leader name in the form [[Firstname Surname|Surname]]
  • _leader_since = Year the leader last became party leader
  • _leader_rating = Most recent preferred leader poll rating, to zero decimal places. Do not add % symbol.
  • _2PP_rating = Most recent two-party-preferred voting intention poll rating, to zero decimal places. Do not add % symbol.
  • _2PP_previous = Two-party-preferred vote share from previous general election. Do not add % symbol.
  • _seats = Number of lower house seats currently held
  • _target = Number of seats needed for majority. Most governments will have a target of 0.
  • _marginals = Number of seats held on a two-party-preferred margin of less than 6%
  • _swing = Uniform swing required to attain lower house majority. Most governments will have a swing of 0.0.
  • ref_leader_rating = Footnote for preferred leader poll, including <ref> tags
  • ref_2PP_rating = Footnote for voting intention poll, including <ref> tags
  • ref_marginals = Footnote for electoral pendulum, including <ref> tags