Template:Senelect: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 50: Line 50:
| }}
| }}
|-
|-
{{#if: {{{seats_before1|}}} |
{{#if: {{{seats_up1|}}} |
{{!}} style="text-align: left;" {{!}} '''Seats before''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before1|}}} | {{{seats_before1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before2|}}} | {{{seats_before2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before3|}}} | {{{seats_before3|}}} | }}
{{!}} style="text-align: left;" {{!}} '''Seats before''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up1|}}} | {{{seats_up1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up2|}}} | {{{seats_up2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up3|}}} | {{{seats_up3|}}} | }}
| }}
| }}
|-
|-
Line 107: Line 107:
| }}
| }}
|-
|-
{{#if: {{{seats_before4|}}} |
{{#if: {{{seats_up4|}}} |
{{!}} style="text-align: left;" {{!}} '''Seats before''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before4|}}} | {{{seats_before4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before5|}}} | {{{seats_before5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before6|}}} | {{{seats_before6|}}} | }}
{{!}} style="text-align: left;" {{!}} '''Seats before''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up4|}}} | {{{seats_up4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up5|}}} | {{{seats_up5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up6|}}} | {{{seats_up6|}}} | }}
| }}
| }}
|-
|-
Line 164: Line 164:
| }}
| }}
|-
|-
{{#if: {{{seats_before7|}}} |
{{#if: {{{seats_up7|}}} |
{{!}} style="text-align: left;" {{!}} '''Seats before''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before7|}}} | {{{seats_before7|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before8|}}} | {{{seats_before8|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before9|}}} | {{{seats_before9|}}} | }}
{{!}} style="text-align: left;" {{!}} '''Seats before''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up7|}}} | {{{seats_up7|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up8|}}} | {{{seats_up8|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_up9|}}} | {{{seats_up9|}}} | }}
| }}
| }}
|-
|-
Line 227: Line 227:
| leader_seat#      = Seat held by the leader
| leader_seat#      = Seat held by the leader
| last_election#    = Seats won and vote percentage for the last election
| last_election#    = Seats won and vote percentage for the last election
| seats_before#     = Seats held before the election
| seats_up#         = Seats being contested in this election
| seats#            = Seats won
| seats#            = Seats won
| seats_change#      = Seat number change
| seats_change#      = Seat number change

Revision as of 11:46, 11 March 2025

Senelect
Flag.gif





Previous Majority Elected Majority

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.

{{Senelect
| 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_sens        = List of members elected in the previous election; if empty, not displayed
| elected_sens         = 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_up#          = Seats being contested in this 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_party    = Party of the incumbent/last holder
| after_party     = Party of the new holder
}}