Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Election Infobox: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 65: Line 65:
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"Candidate 1 Name": {},
"Candidate 1 Name": {
"Candidate 1 Party": {},
"description": "Name of Candidate 1's leader.",
"example": "Alain Sievert",
"type": "string"
},
"Candidate 1 Party": {
"description": "The political party to which Candidate 1 belongs.",
"example": "the Lemon Party",
"type": "string"
},
"Candidate 1 PER": {
"Candidate 1 PER": {
"description": "PER = previous election result"
"description": "PER = previous election result, expressed as both number of seats and popular vote percentage.",
"example": "6 seats, ~28%"
},
"Candidate 1 Seats Won": {
"description": "The number of seats in the legislature won by Candidate 1.",
"example": "42",
"type": "string"
},
"Candidate 1 Popular Vote": {
"type": "string",
"description": "Popular vote for Candidate 1.",
"example": "2,000,000"
},
"Candidate 1 Percentage": {
"description": "Popular vote percentage of Candidate 1.",
"example": "42%",
"type": "string"
},
"Candidate 1 Swing": {
"description": "How many seats were gained or lost by Candidate 1.",
"example": "+3 seats",
"type": "string"
},
},
"Candidate 1 Seats Won": {},
"Candidate 1 Popular Vote": {},
"Candidate 1 Percentage": {},
"Candidate 1 Swing": {},
"Candidate 2 Picture": {
"Candidate 2 Picture": {
"description": "File name of Candidate 2's picture.",
"description": "File name of Candidate 2's picture.",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"Candidate 2 Name": {},
"Candidate 2 Name": {
"Candidate 2 Party": {},
"description": "Name of Candidate 2's leader.",
"example": "Edward Jellico",
"type": "string"
},
"Candidate 2 Party": {
"description": "The political party to which Candidate 2 belongs.",
"example": "the Lemon Party",
"type": "string"
},
"Candidate 2 PER": {
"Candidate 2 PER": {
"description": "PER = previous election result"
"description": "PER = previous election result, expressed as both number of seats and popular vote percentage.",
"example": "202 seats, 32.1%",
"type": "string"
},
"Candidate 2 Seats Won": {
"description": "How many seats were gained or lost by Candidate 2.",
"example": "-4 seats",
"type": "string"
},
"Candidate 2 Popular Vote": {
"description": "Popular vote for Candidate 2",
"type": "string"
},
"Candidate 2 Percentage": {
"description": "Popular vote percentage for Candidate 2",
"type": "string"
},
"Candidate 2 Swing": {
"description": "The number of seats gained or lost by Candidate 2",
"type": "string"
},
},
"Candidate 2 Seats Won": {},
"Candidate 2 Popular Vote": {},
"Candidate 2 Percentage": {},
"Candidate 2 Swing": {},
"Candidate 3 Picture": {
"Candidate 3 Picture": {
"description": "File name of Candidate 3's picture.",
"description": "File name of Candidate 3's picture.",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"Candidate 3 Name": {},
"Candidate 3 Name": {
"Candidate 3 Party": {},
"description": "Name of Candidate 3's leader.",
"example": "Faye Ming-liang",
"type": "string"
},
"Candidate 3 Party": {
"description": "The political party to which Candidate 3 belongs.",
"type": "string"
},
"Candidate 3 PER": {
"Candidate 3 PER": {
"description": "PER = previous election result"
"description": "PER = previous election result",
"type": "string"
},
"Candidate 3 Seats Won": {
"description": "PER = previous election result, expressed as both number of seats and popular vote percentage.",
"example": "11 seats, 12.6%",
"type": "string"
},
"Candidate 3 Popular Vote": {
"description": "Popular vote for Candidate 3",
"example": "3,127,000",
"type": "string"
},
"Candidate 3 Percentage": {
"description": "Popular vote percentage for Candidate 3.",
"example": "42.6%",
"type": "string"
},
"Candidate 3 Swing": {
"description": "The number of seats gained or lost by Candidate 3.",
"type": "string"
},
},
"Candidate 3 Seats Won": {},
"Candidate 3 Popular Vote": {},
"Candidate 3 Percentage": {},
"Candidate 3 Swing": {},
"title1": {
"title1": {
"description": "Title of the election. Defaults to the page name."
"description": "Title of the election. Defaults to the page name."

Revision as of 18:59, 2 December 2025

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
title1title1

Title of the election. Defaults to the page name.

Unknownoptional
Candidate 1 PictureCandidate 1 Picture

File name of Candidate 1's picture.

Fileoptional
Candidate 1 NameCandidate 1 Name

Name of Candidate 1's leader.

Example
Alain Sievert
Stringoptional
Candidate 1 PartyCandidate 1 Party

The political party to which Candidate 1 belongs.

Example
the Lemon Party
Stringoptional
Candidate 1 PERCandidate 1 PER

PER = previous election result, expressed as both number of seats and popular vote percentage.

Example
6 seats, ~28%
Unknownoptional
Candidate 1 Seats WonCandidate 1 Seats Won

The number of seats in the legislature won by Candidate 1.

Example
42
Stringoptional
Candidate 1 Popular VoteCandidate 1 Popular Vote

Popular vote for Candidate 1.

Example
2,000,000
Stringoptional
Candidate 1 PercentageCandidate 1 Percentage

Popular vote percentage of Candidate 1.

Example
42%
Stringoptional
Candidate 1 SwingCandidate 1 Swing

How many seats were gained or lost by Candidate 1.

Example
+3 seats
Stringoptional
Candidate 2 PictureCandidate 2 Picture

File name of Candidate 2's picture.

Fileoptional
Candidate 2 NameCandidate 2 Name

Name of Candidate 2's leader.

Example
Edward Jellico
Stringoptional
Candidate 2 PartyCandidate 2 Party

The political party to which Candidate 2 belongs.

Example
the Lemon Party
Stringoptional
Candidate 2 PERCandidate 2 PER

PER = previous election result, expressed as both number of seats and popular vote percentage.

Example
202 seats, 32.1%
Stringoptional
Candidate 2 Seats WonCandidate 2 Seats Won

How many seats were gained or lost by Candidate 2.

Example
-4 seats
Stringoptional
Candidate 2 Popular VoteCandidate 2 Popular Vote

Popular vote for Candidate 2

Stringoptional
Candidate 2 PercentageCandidate 2 Percentage

Popular vote percentage for Candidate 2

Stringoptional
Candidate 2 SwingCandidate 2 Swing

The number of seats gained or lost by Candidate 2

Stringoptional
Candidate 3 PictureCandidate 3 Picture

File name of Candidate 3's picture.

Fileoptional
Candidate 3 NameCandidate 3 Name

Name of Candidate 3's leader.

Example
Faye Ming-liang
Stringoptional
Candidate 3 PartyCandidate 3 Party

The political party to which Candidate 3 belongs.

Stringoptional
Candidate 3 PERCandidate 3 PER

PER = previous election result

Stringoptional
Candidate 3 Seats WonCandidate 3 Seats Won

PER = previous election result, expressed as both number of seats and popular vote percentage.

Example
11 seats, 12.6%
Stringoptional
Candidate 3 Popular VoteCandidate 3 Popular Vote

Popular vote for Candidate 3

Example
3,127,000
Stringoptional
Candidate 3 PercentageCandidate 3 Percentage

Popular vote percentage for Candidate 3.

Example
42.6%
Stringoptional
Candidate 3 SwingCandidate 3 Swing

The number of seats gained or lost by Candidate 3.

Stringoptional