Template:Senelect: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{| style="border-collapse: separate; border-spacing: 5; border-width: 1px; border-style: solid; border-color: #333; padding: 20; float:right; margin: 0 0 2em 2em; background:#fafafa; font-size: 86%;" |- |+ colspan="4"|{{#if: {{{election_name|}}} | '''{{{election_name|}}}''' | '''{{PAGENAME}}''' }} ! style="text-align: center;" colspan="4" | {{#if: {{{icon|}}} | [[Image:{{{icon|}}}{{!}}50px]] | [[Image:flag.gif{{!}}50px]]}} <hr> |- | style="text-align: left;" | {{#if: {{{...") |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 50: | Line 50: | ||
| }} | | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{seats_up1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seats | {{!}} style="text-align: left;" {{!}} '''Seats up''' {{!}}{{!}} 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: {{{ | {{#if: {{{seats_up4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seats | {{!}} style="text-align: left;" {{!}} '''Seats up''' {{!}}{{!}} 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: {{{ | {{#if: {{{seats_up7|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seats | {{!}} style="text-align: left;" {{!}} '''Seats up''' {{!}}{{!}} 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 196: | Line 196: | ||
<noinclude> | <noinclude> | ||
===Usage=== | ===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.<br> | This template is for pages about {{sen}} elections. To use it, copy and paste the following code to the page, substituting in the necessary variables where indicated.<br> | ||
It will probably be updated to support more options and election types. | It will probably be updated to support more options and election types. | ||
<br><br> | <br><br> | ||
<nowiki>{{ | <nowiki>{{Senelect | ||
| icon = Icon name (Cosa, Senate, provincial flag); if empty, Talossan flag | | icon = Icon name (Cosa, Senate, provincial flag); if empty, Talossan flag | ||
| election_name = Name of the election; if empty, page name | | election_name = Name of the election; if empty, page name | ||
Line 208: | Line 208: | ||
| next_election = Name of the next election's page; if empty, not displayed | | 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" | | next_date = Next date (e.g. "2018", "Apr 2018"); if empty, "Next" | ||
| previous_sens | | previous_sens = List of members elected in the previous election; if empty, not displayed | ||
| elected_sens | | 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_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_all = Number of total seats; if empty, the final string will begin with "All X seats" | ||
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_up# = Seats being contested in this election | ||
| seats# = Seats won | | seats# = Seats won | ||
| seats_change# = Seat number change | | seats_change# = Seat number change |
Latest revision as of 11:49, 11 March 2025
![]() | ||||
---|---|---|---|---|
Previous Majority | Elected Majority | |||
Usage
This template is for pages about Senäts 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 }}