Template:Infobox Election Result

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}}}
{{{year}}}
Party Vote % Seats
{{{party1}}} {{{vote1}}} {{{swing1}}} {{{seats1}}} {{{change1}}}
{{{party2}}} {{{vote2}}} {{{swing2}}} {{{seats2}}} {{{change2}}}
{{{party3}}} {{{vote3}}} {{{swing3}}} {{{seats3}}} {{{change3}}}
{{{party4}}} {{{vote4}}} {{{swing4}}} {{{seats4}}} {{{change4}}}
{{{party5}}} {{{vote5}}} {{{swing5}}} {{{seats5}}} {{{change5}}}
{{{party6}}} {{{vote6}}} {{{swing6}}} {{{seats6}}} {{{change6}}}
{{{party7}}} {{{vote7}}} {{{swing7}}} {{{seats7}}} {{{change7}}}
{{{party8}}} {{{vote8}}} {{{swing8}}} {{{seats8}}} {{{change8}}}
[edit] Template documentation
{{Infobox Election Result
<!-- Overview -->
| jurisdiction = 
| year = 
| hung = 
| wincolour = 
| winner = 
<!-- Major parties -->
| party1 = 
| colour1 = 
| vote1 = 
| swing1 = 
| seats1 = 
| change1 = 
| party2 = 
| colour2 = 
| vote2 = 
| swing2 = 
| seats2 = 
| change2 = 
<!-- Minor parties -->
| party3 = 
| colour3 = 
| vote3 = 
| swing3 = 
| seats3 = 
| change3 = 
| party4 = 
| colour4 = 
| vote4 = 
| swing4 = 
| seats4 = 
| change4 = 
| party5 = 
| colour5 = 
| vote5 = 
| swing5 = 
| seats5 = 
| change5 = 
| party6 = 
| vote6 = 
| swing6 = 
| seats6 = 
| change6 = 
| party7 = 
| vote7 = 
| swing7 = 
| seats7 = 
| change7 = 
| party8 = 
| vote8 = 
| swing8 = 
| seats8 = 
| change8 = 
}}

[edit] Usage

[edit] Fields

[edit] Other notes

  • Arrange parties in order of seat share
  • Colour attributes for parties 6, 7 and 8 are ignored
  • Put the independent total last
  • Do not include any statewide vote or swing amount for the independents
  • If parties with sitting MPs are no longer contesting the election, add their total number of lost seats as an "Others" row at the end, after any independents
  • Use discretion when including parties who win no lower house seats – this infobox is to provide an overview only