Difference between revisions of "Template:Australian elections/Title row"

From blackwiki
Jump to navigation Jump to search
imported>Mitch Ames
(remove unnecessary bold and capitalisation, per MOS)
imported>Plastikspork
(Nested noinclude tags)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="wikitable" style="line-height: 1.25em; font-size: 90%; {{{table style|}}}"
+
{| class="wikitable {{{table class|}}}" style="line-height: 1.25em; font-size: 90%; {{{table style|}}}"
 
|-
 
|-
! colspan="7" bgcolor="#C9D9E9" align=center style="font-size: 1.15em; line-height: 1em;" |
+
! colspan="7" style="background-color:#C9D9E9;text-align:center;font-size: 1.15em; line-height: 1em;" |
 
{{{title}}}<br>{{{house}}} <br>
 
{{{title}}}<br>{{{house}}} <br>
{{#if:{{{back|}}}{{{forward|}}} | <small>{{#if: {{{back|}}} | [[{{{series}}}, {{{back}}}|<< {{{back}}}]] | }} {{#if: {{{forward|}}} | [[{{{series}}}, {{{forward}}}| {{{forward}}} >>]] | }}}}
+
{{#if:{{{back|}}}{{{forward|}}} | <small>{{#if: {{{back|}}} | [[{{{back}}} {{{series}}}|<< {{{back}}}]] | }}{{#if: {{{forward|}}} | [[{{{forward}}} {{{series}}}|{{{forward}}} >>]] | }}</small>}}
 
|-
 
|-
| colspan="2" bgcolor="#E9E9E9" | Enrolled voters
+
|colspan="2" style="background-color:#E9E9E9" | Enrolled voters
| align="right"| {{{enrolled}}}
+
| style="text-align:right;" | {{{enrolled}}}
| width="45" bgcolor="#E9E9E9"  |
+
| width="45" style="background-color:#E9E9E9"  |
| colspan="3" bgcolor="#E9E9E9" width="191"  |
+
| colspan="3" style="background-color:#E9E9E9" width="191"  |
 
|-
 
|-
| colspan="2" bgcolor="#E9E9E9" | Votes cast
+
|colspan="2" style="background-color:#E9E9E9" | Votes cast
| align="right"| {{{total_votes}}}
+
| style="text-align:right;" | {{{total_votes}}}
| width="45" bgcolor="#E9E9E9"  |
+
| width="45" style="background-color:#E9E9E9"  |
| bgcolor="#E9E9E9" width="60"  | [[Voter turnout|Turnout]]
+
| style="background-color:#E9E9E9" width="60"  | [[Voter turnout|Turnout]]
| align="right"| {{{turnout %}}}
+
| style="text-align:right;" | {{{turnout %}}}
| align="right"| {{{turnout chg}}}
+
| style="text-align:right;" | {{{turnout chg}}}
 
|-
 
|-
| colspan="2" bgcolor="#E9E9E9" | Informal votes
+
|colspan="2" style="background-color:#E9E9E9" | Informal votes
| align="right"| {{{informal}}}
+
| style="text-align:right;" | {{{informal}}}
| width="45" bgcolor="#E9E9E9"  |
+
| width="45" style="background-color:#E9E9E9"  |
| bgcolor="#E9E9E9" | Informal
+
| style="background-color:#E9E9E9;" | Informal
| align="right"| {{{informal %}}}
+
| style="text-align:right;" | {{{informal %}}}
| align="right"| {{{informal chg}}}
+
| style="text-align:right;" | {{{informal chg}}}
 
|-
 
|-
| colspan="7" bgcolor="#C9D9E9" align=center style="font-size: 1.15em; line-height: 2em;" | Summary of votes by party
+
| colspan="7" style="background-color:#C9D9E9;text-align:center;font-size: 1.15em; line-height: 2em;" | Summary of votes by party
 
|-
 
|-
| colspan="2" bgcolor="#E9E9E9" | Party
+
|colspan="2" style="background-color:#E9E9E9" | Party
| bgcolor="#E9E9E9" | Primary votes
+
| style="background-color:#E9E9E9;" | Primary votes
| bgcolor="#E9E9E9" align=right | %
+
| style="background-color:#E9E9E9;text-align:right;" | %
| bgcolor="#E9E9E9" | Swing
+
| style="background-color:#E9E9E9;" | Swing
| bgcolor="#E9E9E9" align=right | {{#if: {{{staggered|}}} | Seats<br/>won | Seats}}
+
| style="background-color:#E9E9E9;text-align:right;" | {{#if: {{{staggered|}}} | Seats<br/>won | Seats}}
| bgcolor="#E9E9E9" align=right | {{#if: {{{staggered|}}} | Seats<br/>held | Change}}
+
| style="background-color:#E9E9E9;text-align:right;" | {{#if: {{{staggered|}}} | Seats<br/>held | Change}}
 
|-
 
|-
 
+
<noinclude>
<noinclude>[[Category:Australia election result templates]]<noinclude>
+
|}
 +
{{Documentation}}
 +
[[Category:Australia election result templates]]
 +
</noinclude>

Latest revision as of 01:20, 27 April 2020

{{{title}}}
{{{house}}}

Enrolled voters {{{enrolled}}}
Votes cast {{{total_votes}}} Turnout {{{turnout %}}} {{{turnout chg}}}
Informal votes {{{informal}}} Informal {{{informal %}}} {{{informal chg}}}
Summary of votes by party
Party Primary votes % Swing Seats Change
Template documentation[view] [edit] [history] [purge]

Usage

This template codes for the top few rows of a table displaying the results of an Australian election.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

no description

Unknownoptional
Househouse

no description

Unknownoptional
Backback

no description

Unknownoptional
Forwardforward

no description

Unknownoptional
Seriesseries

no description

Unknownoptional
Number of enrolled votersenrolled

no description

Numberrequired
Total_votestotal_votes

no description

Unknownoptional
Turnout %turnout %

no description

Unknownoptional
Turnout chgturnout chg

no description

Unknownoptional
Informalinformal

no description

Unknownoptional
Informal %informal %

no description

Unknownoptional
Informal chginformal chg

no description

Unknownoptional
Staggeredstaggered

no description

Unknownoptional
Styletable style

Custom CSS for the whole table. Use with caution.

Unknownoptional