This template uses Lua: |
Usage
editThis infobox template is used to document information about Australian elections.
Blank Template
edit{{infobox
| title=
| headerstyle =
| subheader =
| bodystyle =
| label1 =
| data1 =
| label2 =
| data2 =
| label3 =
| data3 =
| label4 =
| data4 =
| header5 =
| label6 =
| data6 =
| label7 =
| data7 =
| label8 =
| data8 =
| label9 =
| data9 =
| data10 =
| data11 =
| header12 =
| label13 =
| data13 =
| label14 =
| data14 =
| label15 =
| data15 =
| data16 =
| data17 =
| header18 =
| label19 =
| data19 =
| label20 =
| data20 =
| data121 =
| data22 =
| header23 =
| label24 =
| data24 =
| label25 =
| data25 =
| data26 =
| data27 =
| header28 =
| label29 =
| data29 =
| label30 =
| data30 =
| data31 =
| data32 =
| header33 =
| label34 =
| data34 =
| label35 =
| data35 =
| data36 =
| data37 =
| header38 =
| data39 =
}}
Example
edit{{infobox
| title= 2020 Australian elections
| headerstyle = background-color:#ddd
| subheader = ← [[Category:2018 elections in Australia|2018]] [[Category:2019 elections in Australia|2019]] '''2020''' [[Category:2021 elections in Australia|2021]] [[Category:2022 elections in Australia|2022]] →
| bodystyle = width:28em
| label1 = Incumbent Prime Minister
| data1 = Scott Morrison
| label2 = Elected Prime Minister
| data2 = Scott Morrison
| label3 = Current Parliament
| data3 = 46th
| label4 = Next Parliament
| data4 = 47th
| header5 = [[Results of the 2020 Australian federal election (House of Representatives)|House election]]
| label6 = Majority
| data6 = Liberal/National Coalition
| label7 = Seats contested
| data7 = 151
| label8 = TPP vote margin
| data8 = +1.2%
| label9 = Net seat change
| data9 = +1
| data10 =
| data11 =
| header12 = [[2020 Australian Senate election|Senate election]]
| label13 = Majority
| data13 = Liberal/National Coalition
| label14 = Seats contested
| data14 = 40
| label15 = Net seat change
| data15 = +1
| data16 =
| data17 =
| header18 = Federal by-elections
| label19 = By-elections held
| data19 = 3
| label20 = Net seat change
| data20 = 0
| data121 =
| data22 =
| header23 = State and territory elections
| label24 = State/territory elections held
| data24 = 2
| label25 = Net government change
| data25 = -1
| data26 =
| data27 =
| header28 = State and territory by-elections
| label29 = State/territory by-elections held
| data29 = 5
| label30 = Net seat change
| data30 = 0
| data31 =
| data32 =
| header33 = Tasmanian Legislative Council elections
| label34 = Elections held
| data34 = 1
| label35 = Net seat change
| data35 = 0
| data36 =
| data37 =
| header38 = Legend
| data39 =
}}
Parameters
editParameter | Description |
---|---|
title | Title of the infobox. Usually includes the year of the elections. |
headerstyle | Style for the header section. |
subheader | Navigation links for previous and next elections. |
bodystyle | Style for the body of the infobox. |
label1, label2, ... | Labels for different sections of the infobox. |
data1, data2, ... | Data corresponding to the labels. |
header5, header12, ... | Headers for specific sections of the infobox. |
label6, label13, ... | Labels for sub-sections within specific sections. |
data6, data13, ... | Data corresponding to the sub-section labels. |
data10, data16, ... | Additional data fields within specific sections. |
data11, data17, ... | Additional data captions or explanations. |
data39 | Legend for the infobox if applicable. |
customnav | Custom navigation links if needed. |
Tracking category
edit