Template:Election

From TalossaWiki
Revision as of 08:43, 8 November 2019 by Ldaschir (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Election
Flag.gif







Usage

This template is for pages about elections. To use it, copy and paste the following code to the page, substituting in the necessary variables where indicated.
It will probably be updated to support more options and election types.

{{Election
| icon                = Icon name (Cosa, Senate, provincial flag); if empty, Talossan flag
| election_name       = Name of the election; if empty, page name
| election_date_start = Date when the election started; only write this if single-day; if empty, not displayed
| election_date_end   = Date when the election ended; leave empty if single-day; if empty, not displayed
| previous_election   = Name of the previous election's page; if empty, not displayed
| previous_date       = Previous date (e.g. "2018", "Apr 2018"); if empty, "Previous"
| next_election       = Name of the next election's page; if empty, not displayed
| next_date           = Next date (e.g. "2018", "Apr 2018"); if empty, "Next"
| previous_mps        = List of members elected in the previous election; if empty, not displayed
| elected_mps         = List of members elected in this election; if empty, not displayed
| seats_up            = Number of seats up for reelection; if empty, the final string will not be displayed
| seats_all           = Number of total seats; if empty, the final string will begin with "All X seats"
| seats_assembly      = Name of the assembly for the seats up string; if empty, not displayed
| seats_majority      = Seats needed for a majority; if empty, not displayed
| voters_eligible     = Number of eligible voters; if empty, not displayed
| voters_turnout      = Turnout percentage and shift; if empty, not displayed
<!-- REPLACE # WITH 1 to 9 (eg. image1...swing1 for the first party/candidate, image2...swing2, ..., image9...swing9-->
<!-- A maximum of nine parties/candidates are supported -->
| image#             = Party logo, or leader/candidate photo
| colour#            = Colour of the party/candidate's party
| leader#            = Leader of the party; intended to be mutually exclusive with candidate#
| candidate#         = Candidate; intended to be mutually exclusive with leader#
| party#             = Name of the party, or candidate's party
| alliance#          = Name of the alliance, or candidate's alliance
| leader_since#      = Date of election as leader
| leader_seat#       = Seat held by the leader
| last_election#     = Seats won and vote percentage for the last election
| seats_before#      = Seats held before the election
| seats#             = Seats won
| seats_change#      = Seat number change
| popular_vote#      = Popular vote count
| percentage#        = Popular vote percentage
| swing#             = Popular vote swing

| img_name        = Image/map/chart
| img_size        = Size of the image (eg. 400px), default 400px
| img_caption     = Caption of the image
| title           = Name of the office decided by election (only name, eg. "Seneschal")
| posttitle       = Office after (full string, eg. "Presumptive nominee" or "Elected Seneschal")
| before_election = Previous holder of the office
| before_party    = Party of the incumbent/last holder
| after_election  = New holder of the office
| after_party     = Party of the new holder
}}