Template:Election: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
! style="text-align: center;" colspan="4" | {{#if: {{{icon|}}} | [[Image:{{{icon|}}}{{!}}50px]] | [[Image:flag.gif{{!}}50px]]}} <hr> | ! style="text-align: center;" colspan="4" | {{#if: {{{icon|}}} | [[Image:{{{icon|}}}{{!}}50px]] | [[Image:flag.gif{{!}}50px]]}} <hr> | ||
|- | |- | ||
| style="text-align: left;" | {{#if: {{{previous_election | | style="text-align: left;" | {{#if: {{{previous_election|}}} | [[{{{previous_election|}}} {!}previous]] | }} | ||
| style="text-align: center;" colspan="2" | {{#if: {{{election_date_start|}}} | {{{election_date_start|}}} | }} {{#if: {{{election_date_end|}}} | - {{{election_date_end|}}} | }} | | style="text-align: center;" colspan="2" | {{#if: {{{election_date_start|}}} | {{{election_date_start|}}} | }} {{#if: {{{election_date_end|}}} | - {{{election_date_end|}}} | }} | ||
| style="text-align: right;" | {{#if: {{{next_election | | style="text-align: right;" | {{#if: {{{next_election|}}} | [[{{{next_election|}}} {!}next]] | }} | ||
|- | |- | ||
| style="width: 90px;" | || style="width: 90px;" | || style="width: 90px;" | || style="width: 90px;" | || <!-- | | style="width: 90px;" | || style="width: 90px;" | || style="width: 90px;" | || style="width: 90px;" | || <!--←column spacer←--> | ||
|- | |- | ||
| style="text-align: left;" colspan="2" | {{#if: {{{previous_mps|}}} | [[{{{previous_mps|}}} {!} | | style="text-align: left;" colspan="2" | {{#if: {{{previous_mps|}}} | ← [[{{{previous_mps|}}} {!} previous members]] | }} || style="text-align: right;" colspan="2" | {{#if: {{{next_mps|}}} | [[{{{next_mps|}}} {!} elected members]] → | }} | ||
|- | |- | ||
| style="text-align: center;" colspan="4" | <hr>{{#if: {{{seats_up|}}} | <small>{{#if: {{{seats_all|}}} | {{{seats_up|}}} of {{{seats_all|}}} | All {{{seats_up|}}} }} {{#if: {{{seats_assembly|}}} | seats in the {{{seats_assembly|}}} | }} </small> | }} {{#if: {{{seats_majority|}}} | <br /><small>{{{seats_majority|}}} seats needed for a majority</small> | }} | | style="text-align: center;" colspan="4" | <hr>{{#if: {{{seats_up|}}} | <small>{{#if: {{{seats_all|}}} | {{{seats_up|}}} of {{{seats_all|}}} | All {{{seats_up|}}} }} {{#if: {{{seats_assembly|}}} | seats in the {{{seats_assembly|}}} | }} </small> | }} {{#if: {{{seats_majority|}}} | <br /><small>{{{seats_majority|}}} seats needed for a majority</small> | }} | ||
Line 24: | Line 24: | ||
{{#if: {{{leader1|}}} | | {{#if: {{{leader1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Leader''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader1|}}} | {{{leader1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader2|}}} | {{{leader2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader3|}}} | {{{leader3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Leader''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader1|}}} | {{{leader1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader2|}}} | {{{leader2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader3|}}} | {{{leader3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{candidate1|}}} | | {{#if: {{{candidate1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Candidate''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate1|}}} | {{{candidate1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate2|}}} | {{{candidate2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate3|}}} | {{{candidate3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Candidate''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate1|}}} | {{{candidate1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate2|}}} | {{{candidate2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate3|}}} | {{{candidate3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{party1|}}} | | {{#if: {{{party1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Party''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party1|}}} | {{{party1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party2|}}} | {{{party2|}}} | }}|| style="text-align: center;" {{!}} {{#if: {{{party3|}}} | {{{party3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Party''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party1|}}} | {{{party1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party2|}}} | {{{party2|}}} | }}|| style="text-align: center;" {{!}} {{#if: {{{party3|}}} | {{{party3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{alliance1|}}} | | {{#if: {{{alliance1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Alliance''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance1|}}} | {{{alliance1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance2|}}} | {{{alliance2|}}} | }}{{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance3|}}} | {{{alliance3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Alliance''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance1|}}} | {{{alliance1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance2|}}} | {{{alliance2|}}} | }}{{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance3|}}} | {{{alliance3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{leader_since1|}}} | | {{#if: {{{leader_since1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Leader since''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since1|}}} | {{{leader_since1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since2|}}} | {{{leader_since2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since3|}}} | {{{leader_since3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Leader since''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since1|}}} | {{{leader_since1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since2|}}} | {{{leader_since2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since3|}}} | {{{leader_since3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{leader_seat1|}}} | | {{#if: {{{leader_seat1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Leader's seat''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat1|}}} | {{{leader_seat1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat2|}}} | {{{leader_seat2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat3|}}} | {{{leader_seat3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Leader's seat''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat1|}}} | {{{leader_seat1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat2|}}} | {{{leader_seat2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat3|}}} | {{{leader_seat3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{last_election1|}}} | | {{#if: {{{last_election1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Last election''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election1|}}} | {{{last_election1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election2|}}} | {{{last_election2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election3|}}} | {{{last_election3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Last election''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election1|}}} | {{{last_election1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election2|}}} | {{{last_election2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election3|}}} | {{{last_election3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{seats_before1|}}} | | {{#if: {{{seats_before1|}}} | | ||
{{!}} 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_before1|}}} | {{{seats_before1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before2|}}} | {{{seats_before2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before3|}}} | {{{seats_before3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{seats1|}}} | | {{#if: {{{seats1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seats won''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats1|}}} | {{{seats1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats2|}}} | {{{seats2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats3|}}} | {{{seats3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Seats won''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats1|}}} | {{{seats1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats2|}}} | {{{seats2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats3|}}} | {{{seats3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{seats_change1|}}} | | {{#if: {{{seats_change1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seat change''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change1|}}} | {{{seats_change1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change2|}}} | {{{seats_change2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change3|}}} | {{{seats_change3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Seat change''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change1|}}} | {{{seats_change1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change2|}}} | {{{seats_change2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change3|}}} | {{{seats_change3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{popular_vote1|}}} | | {{#if: {{{popular_vote1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Popular vote''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote1|}}} | {{{popular_vote1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote2|}}} | {{{popular_vote2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote3|}}} | {{{popular_vote3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Popular vote''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote1|}}} | {{{popular_vote1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote2|}}} | {{{popular_vote2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote3|}}} | {{{popular_vote3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{percentage1|}}} | | {{#if: {{{percentage1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Percentage''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage1|}}} | {{{percentage1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage2|}}} | {{{percentage2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage3|}}} | {{{percentage3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Percentage''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage1|}}} | {{{percentage1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage2|}}} | {{{percentage2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage3|}}} | {{{percentage3|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{swing1|}}} | | {{#if: {{{swing1|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Swing''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing1|}}} | {{{swing1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing2|}}} | {{{swing2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing3|}}} | {{{swing3|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Swing''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing1|}}} | {{{swing1|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing2|}}} | {{{swing2|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing3|}}} | {{{swing3|}}} | }} | ||
| }} | |||
|- | |||
|- <!-- SECOND GROUP OF PARTIES/CANDIDATES --> | |- <!-- SECOND GROUP OF PARTIES/CANDIDATES --> | ||
| || {{#if: {{{image4|}}} | [[Image:{{{image4|}}}{{!}}100px]] | }} || {{#if: {{{image5|}}} | [[Image:{{{image5|}}}{{!}}100px]] | }} || {{#if: {{{image6|}}} | [[Image:{{{image6|}}}{{!}}100px]] | }} | | || {{#if: {{{image4|}}} | [[Image:{{{image4|}}}{{!}}100px]] | }} || {{#if: {{{image5|}}} | [[Image:{{{image5|}}}{{!}}100px]] | }} || {{#if: {{{image6|}}} | [[Image:{{{image6|}}}{{!}}100px]] | }} | ||
Line 67: | Line 80: | ||
|- {{#if: {{{leader4|}}} | | |- {{#if: {{{leader4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Leader''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader4|}}} | {{{leader4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader4|}}} | {{{leader4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader6|}}} | {{{leader6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Leader''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader4|}}} | {{{leader4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader4|}}} | {{{leader4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader6|}}} | {{{leader6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{candidate4|}}} | | {{#if: {{{candidate4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Candidate''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate4|}}} | {{{candidate4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate5|}}} | {{{candidate5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate6|}}} | {{{candidate6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Candidate''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate4|}}} | {{{candidate4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate5|}}} | {{{candidate5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{candidate6|}}} | {{{candidate6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{party4|}}} | | {{#if: {{{party4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Party''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party4|}}} | {{{party4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party5|}}} | {{{party5|}}} | }}|| style="text-align: center;" {{!}} {{#if: {{{party6|}}} | {{{party6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Party''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party4|}}} | {{{party4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{party5|}}} | {{{party5|}}} | }}|| style="text-align: center;" {{!}} {{#if: {{{party6|}}} | {{{party6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{alliance4|}}} | | {{#if: {{{alliance4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Alliance''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance4|}}} | {{{alliance4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance5|}}} | {{{alliance5|}}} | }}{{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance6|}}} | {{{alliance6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Alliance''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance4|}}} | {{{alliance4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance5|}}} | {{{alliance5|}}} | }}{{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{alliance6|}}} | {{{alliance6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{leader_since4|}}} | | {{#if: {{{leader_since4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Leader since''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since4|}}} | {{{leader_since4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since5|}}} | {{{leader_since5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since6|}}} | {{{leader_since6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Leader since''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since4|}}} | {{{leader_since4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since5|}}} | {{{leader_since5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_since6|}}} | {{{leader_since6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{leader_seat4|}}} | | {{#if: {{{leader_seat4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Leader's seat''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat4|}}} | {{{leader_seat4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat5|}}} | {{{leader_seat5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat6|}}} | {{{leader_seat6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Leader's seat''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat4|}}} | {{{leader_seat4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat5|}}} | {{{leader_seat5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{leader_seat6|}}} | {{{leader_seat6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{last_election4|}}} | | {{#if: {{{last_election4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Last election''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election4|}}} | {{{last_election4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election5|}}} | {{{last_election5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election6|}}} | {{{last_election6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Last election''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election4|}}} | {{{last_election4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election5|}}} | {{{last_election5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{last_election6|}}} | {{{last_election6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{seats_before4|}}} | | {{#if: {{{seats_before4|}}} | | ||
{{!}} 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_before4|}}} | {{{seats_before4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before5|}}} | {{{seats_before5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_before6|}}} | {{{seats_before6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{seats4|}}} | | {{#if: {{{seats4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seats won''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats4|}}} | {{{seats4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats5|}}} | {{{seats5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats6|}}} | {{{seats6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Seats won''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats4|}}} | {{{seats4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats5|}}} | {{{seats5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats6|}}} | {{{seats6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{seats_change4|}}} | | {{#if: {{{seats_change4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Seat change''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change4|}}} | {{{seats_change4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change5|}}} | {{{seats_change5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change6|}}} | {{{seats_change6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Seat change''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change4|}}} | {{{seats_change4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change5|}}} | {{{seats_change5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{seats_change6|}}} | {{{seats_change6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{popular_vote4|}}} | | {{#if: {{{popular_vote4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Popular vote''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote4|}}} | {{{popular_vote4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote5|}}} | {{{popular_vote5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote6|}}} | {{{popular_vote6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Popular vote''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote4|}}} | {{{popular_vote4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote5|}}} | {{{popular_vote5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{popular_vote6|}}} | {{{popular_vote6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{percentage4|}}} | | {{#if: {{{percentage4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Percentage''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage4|}}} | {{{percentage4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage5|}}} | {{{percentage5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage6|}}} | {{{percentage6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Percentage''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage4|}}} | {{{percentage4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage5|}}} | {{{percentage5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{percentage6|}}} | {{{percentage6|}}} | }} | ||
| }} | |||
|- | |||
{{#if: {{{swing4|}}} | | {{#if: {{{swing4|}}} | | ||
{{!}} style="text-align: left;" {{!}} '''Swing''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing4|}}} | {{{swing4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing5|}}} | {{{swing5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing6|}}} | {{{swing6|}}} | }} | {{!}} style="text-align: left;" {{!}} '''Swing''' {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing4|}}} | {{{swing4|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing5|}}} | {{{swing5|}}} | }} {{!}}{{!}} style="text-align: center;" {{!}} {{#if: {{{swing6|}}} | {{{swing6|}}} | }} | ||
| }} | |||
|- | |||
| style="text-align: center;" colspan="4" | <hr>{{#if: {{{img_name|}}} | [[Image:{{{img_name|}}}{{!}}{{#if: {{{img_size|}}} | {{{img_size|}}} | 400px }}]] | }}<br><small>{{#if: {{{img_caption|}}} | {{{img_caption|}}} | }}</small><br><hr> | | style="text-align: center;" colspan="4" | <hr>{{#if: {{{img_name|}}} | [[Image:{{{img_name|}}}{{!}}{{#if: {{{img_size|}}} | {{{img_size|}}} | 400px }}]] | }}<br><small>{{#if: {{{img_caption|}}} | {{{img_caption|}}} | }}</small><br><hr> | ||
|- | |- |
Revision as of 04:52, 28 April 2018
| ||||
---|---|---|---|---|
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 6 (eg. image1...swing1 for the first party/candidate, image2...swing2, ..., image6...swing6--> <!-- A maximum of six parties 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 }}