Template:Infobox Election: Difference between revisions
Jump to navigation
Jump to search
(created it; pain) |
(added vote and swing, and no change bars) |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{| style="float: right; margin: 0 0 0 0.5em; background-color: light-gray; font-size: 85%; border: 2px solid gray; padding: 0.2em; width: 250px; word-wrap: break-word;" | {| style="float: right; margin: 0 0 0 0.5em; background-color: light-gray; font-size: 85%; border: 2px solid gray; padding: 0.2em; width: 250px; word-wrap: break-word;" | ||
| style="width: 50px; text-align: center | | style="width: 50px; text-align: center;" |[[{{{prevelection}}}|prev]] | ||
| colspan="3" style="width: 150px; text-align: center;" |[[File: | | colspan="3" style="width: 150px; text-align: center;" |[[File:{{{flag}}}|50px]] | ||
| style="width: 50px; text-align: center | | style="width: 50px; text-align: center;" |[[{{{nextelection}}}|next]] | ||
|- | |- | ||
| colspan="5" style="background-color: | | colspan="5" style="background-color:{{{color}}};" | | ||
|- | |- | ||
| colspan="5" style="text-align: center;" |'''{{{date}}} {{{name}}}''' | | colspan="5" style="text-align: center;" |'''{{{date}}} {{{name}}}''' | ||
|- | |- | ||
| colspan="5" style="background-color: | | colspan="5" style="background-color:{{{color}}};" | | ||
|- {{#if: {{{consulimage|}}} | | style="display: none;" }} | |- {{#if: {{{consulimage|}}} | | style="display: none;" }} | ||
| colspan="5" style="text-align: center;" |[[file:{{{consulimage|}}}|150px]] | | colspan="5" style="text-align: center;" |[[file:{{{consulimage|}}}|150px]] | ||
Line 15: | Line 15: | ||
| colspan="5" style="text-align: center;" |{{{consulcaption}}} | | colspan="5" style="text-align: center;" |{{{consulcaption}}} | ||
|- {{#if: {{{consulimage|}}} | | style="display: none;" }} | |- {{#if: {{{consulimage|}}} | | style="display: none;" }} | ||
| colspan="5" style="background-color: | | colspan="5" style="background-color:{{{color}}};" | | ||
|- {{#if: {{{party2image|}}} | style="display: none;" }} | |- {{#if: {{{party2image|}}} | style="display: none;" }} | ||
| style="width: 50px;" | | | style="width: 50px;" | | ||
| colspan="2" style="width: 100px;text-align: center;" |[[File:{{{party1image|}}}|95px]] | | colspan="2" style="width: 100px;text-align: center;" |[[File:{{{party1image|}}}|95px]] | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" |<div style="width: 95px; height: 1px; background-color: white;"></div> | ||
|- {{#if: {{{party2image|}}} | style="display: none;" }} | |- {{#if: {{{party2image|}}} | style="display: none;" }} | ||
| style="width: 50px;" | | | style="width: 50px;" | | ||
Line 28: | Line 28: | ||
| style="width: 50px;" |'''Party''' | | style="width: 50px;" |'''Party''' | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party1}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party1}}} | ||
| colspan="2" style="width: 100px;text-align: center;" | | |||
|- {{#if: {{{party2image|}}} | style="display: none;" }} | |||
| style="width: 50px;" |'''Vote''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{{party1vote}}}% | |||
| colspan="2" style="width: 100px;text-align: center;" | | |||
|- {{#if: {{{party2image|}}} | style="display: none;" }} | |||
| style="width: 50px;" |'''Swing''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party1change}}} > 0 | <span style="color: green;">▲</span> {{{party1change}}} [[Wikipedia:percentage point |pp]] | {{#ifexpr: {{{party1change}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party1change}}})}} [[Wikipedia:percentage point |pp]] | <span style="color: blue;">▬</span>}} }} | |||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" | | ||
|- {{#if: {{{party2image|}}} | style="display: none;" }} | |- {{#if: {{{party2image|}}} | style="display: none;" }} | ||
| style="width: 50px;" |'''Seats''' | | style="width: 50px;" |'''Seats''' | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party1seats}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party1seats}}} | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" | | ||
|- {{#if: {{{party2image|}}} | style="display: none;" }} | |- {{#if: {{{party2image|}}} | style="display: none;" }} | ||
| style="width: 50px;" |''' | | style="width: 50px;" |'''Shift''' | ||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party1swing}}} > 0 | <span style="color: green;">▲</span> | {{#ifexpr: {{{party1swing}}} < 0 | <span style="color: red;">▼</span> | | colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party1swing}}} > 0 | <span style="color: green;">▲</span> {{{party1swing}}} | {{#ifexpr: {{{party1swing}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party1swing}}})}} | <span style="color: blue;">▬</span>}} }} | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" | | ||
Line 52: | Line 60: | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party1}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party1}}} | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party2}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party2}}} | ||
|- {{#if: {{{party1image|}}} | | style="display: none; text-align:left;" }}{{#if: | |||
{{{party2image|}}} | | style="display: none;" }} | |||
| style="width: 50px;" |'''Vote''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{{party1vote}}}% | |||
| colspan="2" style="width: 100px;text-align: center;" |{{{party2vote}}}% | |||
|- {{#if: {{{party1image|}}} | | style="display: none; text-align:left;" }}{{#if: | |||
{{{party2image|}}} | | style="display: none;" }} | |||
| style="width: 50px;" |'''Swing''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party1change}}} > 0 | <span style="color: green;">▲</span> {{{party1change}}} [[Wikipedia:percentage point |pp]] | {{#ifexpr: {{{party1change}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party1change}}})}} [[Wikipedia:percentage point |pp]] | <span style="color: blue;">▬</span>}} }} | |||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party2change}}} > 0 | <span style="color: green;">▲</span> {{{party2change}}} [[Wikipedia:percentage point |pp]] | {{#ifexpr: {{{party2change}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party2change}}})}} [[Wikipedia:percentage point |pp]] | <span style="color: blue;">▬</span>}} }} | |||
|- {{#if: {{{party1image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party2image|}}} | | style="display: none;" }} | |- {{#if: {{{party1image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party2image|}}} | | style="display: none;" }} | ||
| style="width: 50px;" |'''Seats''' | | style="width: 50px;" |'''Seats''' | ||
Line 57: | Line 75: | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party2seats}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party2seats}}} | ||
|- {{#if: {{{party1image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party2image|}}} | | style="display: none;" }} | |- {{#if: {{{party1image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party2image|}}} | | style="display: none;" }} | ||
| style="width: 50px;" |''' | | style="width: 50px;" |'''Shift''' | ||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party1swing}}} > 0 | <span style="color: green;">▲</span> | {{#ifexpr: {{{party1swing}}} < 0 | <span style="color: red;">▼</span> | | colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party1swing}}} > 0 | <span style="color: green;">▲</span> {{{party1swing}}} | {{#ifexpr: {{{party1swing}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party1swing}}})}} | <span style="color: blue;">▬</span>}} }} | ||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party2swing}}} > 0 | <span style="color: green;">▲</span> | {{#ifexpr: {{{party2swing}}} < 0 | <span style="color: red;">▼</span> | | colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party2swing}}} > 0 | <span style="color: green;">▲</span> {{{party2swing}}} | {{#ifexpr: {{{party2swing}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party2swing}}})}} | <span style="color: blue;">▬</span>}} }} | ||
|- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | |- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | ||
| style="width: 50px;" | | | style="width: 50px;" | | ||
| colspan="2" style="width: 100px;text-align: center;" |[[File:{{{party3image|}}}|95px]] | | colspan="2" style="width: 100px;text-align: center;" |[[File:{{{party3image|}}}|95px]] | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" |<div style="width: 95px; height: 1px; background-color: white;"></div> | ||
|- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | |- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | ||
| style="width: 50px;" | | | style="width: 50px;" | | ||
Line 73: | Line 91: | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party3}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party3}}} | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" | | ||
|- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | |||
| style="width: 50px;" |'''Vote''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{{party3vote}}}% | |||
| colspan="2" style="width: 100px;text-align: center;" | | |||
|- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | |||
| style="width: 50px;" |'''Swing''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party3change}}} > 0 | <span style="color: green;">▲</span> {{{party3change}}} [[Wikipedia:percentage point |pp]] | {{#ifexpr: {{{party3change}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party3change}}})}} [[Wikipedia:percentage point |pp]] | <span style="color: blue;">▬</span>}} }} | |||
|- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | |- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | ||
| style="width: 50px;" |'''Seats''' | | style="width: 50px;" |'''Seats''' | ||
Line 78: | Line 103: | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" | | ||
|- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | |- {{#if: {{{party3image|}}} | | style="display: none;" }}{{#if: {{{party4image|}}} | style="display: none;" }} | ||
| style="width: 50px;" |''' | | style="width: 50px;" |'''Shift''' | ||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party3swing}}} > 0 | <span style="color: green;">▲</span> | {{#ifexpr: {{{party3swing}}} < 0 | <span style="color: red;">▼</span> | | colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party3swing}}} > 0 | <span style="color: green;">▲</span> {{{party3swing}}} | {{#ifexpr: {{{party3swing}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party3swing}}})}} | <span style="color: blue;">▬</span>}} }} | ||
| colspan="2" style="width: 100px;text-align: center;" | | | colspan="2" style="width: 100px;text-align: center;" | | ||
Line 96: | Line 121: | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party3}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party3}}} | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party4}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party4}}} | ||
|- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party4image|}}} | | style="display: none;" }} | |||
|- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: | |||
{{{party4image|}}} | | style="display: none;" }} | |||
| style="width: 50px;" |'''Vote''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{{party3vote}}}% | |||
| colspan="2" style="width: 100px;text-align: center;" |{{{party4vote}}}% | |||
|- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: | |||
{{{party4image|}}} | | style="display: none;" }} | |||
| style="width: 50px;" |'''Swing''' | |||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party3change}}} > 0 | <span style="color: green;">▲</span> {{{party3change}}} [[Wikipedia:percentage point |pp]] | {{#ifexpr: {{{party3change}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party3change}}})}} [[Wikipedia:percentage point |pp]] | <span style="color: blue;">▬</span>}} }} | |||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party4change}}} > 0 | <span style="color: green;">▲</span> {{{party4change}}} [[Wikipedia:percentage point |pp]] | {{#ifexpr: {{{party4change}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party4change}}})}} [[Wikipedia:percentage point |pp]] | <span style="color: blue;">▬</span>}} }} | |||
|- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party4image|}}} | | style="display: none;" }} | |- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party4image|}}} | | style="display: none;" }} | ||
| style="width: 50px;" |'''Seats''' | | style="width: 50px;" |'''Seats''' | ||
Line 101: | Line 137: | ||
| colspan="2" style="width: 100px;text-align: center;" |{{{party4seats}}} | | colspan="2" style="width: 100px;text-align: center;" |{{{party4seats}}} | ||
|- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party4image|}}} | | style="display: none;" }} | |- {{#if: {{{party3image|}}} | | style="display: none; text-align:left;" }}{{#if: {{{party4image|}}} | | style="display: none;" }} | ||
| style="width: 50px;" |''' | | style="width: 50px;" |'''Shift''' | ||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party3swing}}} > 0 | <span style="color: green;">▲</span> | {{#ifexpr: {{{party3swing}}} < 0 | <span style="color: red;">▼</span> | | colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party3swing}}} > 0 | <span style="color: green;">▲</span> {{{party3swing}}} | {{#ifexpr: {{{party3swing}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party3swing}}})}} | <span style="color: blue;">▬</span>}} }} | ||
| colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party4swing}}} > 0 | <span style="color: green;">▲</span> | {{#ifexpr: {{{party4swing}}} < 0 | <span style="color: red;">▼</span> | | colspan="2" style="width: 100px;text-align: center;" |{{#ifexpr: {{{party4swing}}} > 0 | <span style="color: green;">▲</span> {{{party4swing}}} | {{#ifexpr: {{{party4swing}}} < 0 | <span style="color: red;">▼</span> {{#expr: abs({{{party4swing}}})}} | <span style="color: blue;">▬</span>}} }} | ||
|- {{#if: {{{senateimage|}}} | | style="display: none;" }} | |- {{#if: {{{senateimage|}}} | | style="display: none;" }} | ||
| colspan="5" style="background-color: | | colspan="5" style="background-color:{{{color}}};" | | ||
|- {{#if: {{{senateimage|}}} | | style="display: none;" }} | |- {{#if: {{{senateimage|}}} | | style="display: none;" }} | ||
| colspan="5" style="text-align: center;" |[[file:{{{consulimage|}}}|240px]] | | colspan="5" style="text-align: center;" |[[file:{{{consulimage|}}}|240px]] | ||
Line 114: | Line 149: | ||
</onlyinclude> | </onlyinclude> | ||
{{Infobox Sanéan Election|prevelection=March 2024 Sanéan Senate Elections|nextelection=July 2024 Sanéan Senate Elections|date=May 29, 2024|name=Sanéan Senatorial Elections|consulimage=example.png|consulcaption=Consul Example, of the example party.|party1image=example.png|party1=Party 1|party1color=#ff0000|party1seats=2|party1swing=-1|party2image=example.png|party2=Party 2|party2color=#00ff00|party2seats=2|party2swing=0|party3image=example.png|party3=Party 3|party3color=#0000ff|party3seats=1|party3swing=1|senateimage=example.png}} | {{Infobox Sanéan Election|flag=Flag of the Commmonwealth of Sanéa.png|color=#EAC063|prevelection=March 2024 Sanéan Senate Elections|nextelection=July 2024 Sanéan Senate Elections|date=May 29, 2024|name=Sanéan Senatorial Elections|consulimage=example.png|consulcaption=Consul Example, of the example party.|party1image=example.png|party1=Party 1|party1color=#ff0000|party1vote=28.2|party1change=-9.1|party1seats=2|party1swing=-1|party2image=example.png|party2=Party 2|party2color=#00ff00|party2vote=33.1|party2change=0.2|party2seats=2|party2swing=0|party3image=example.png|party3=Party 3|party3color=#0000ff|party3vote=35.1|party3change=8.9|party3seats=1|party3swing=1|senateimage=example.png}} | ||
{{Infobox Sanéan Election|prevelection=March 2024 Sanéan Senate Elections|nextelection=July 2024 Sanéan Senate Elections|date= | {{Infobox Sanéan Election|flag=Ritanniaflag.jpeg|color=#EAC063|prevelection=March 2024 Sanéan Senate Elections|nextelection=July 2024 Sanéan Senate Elections|date=October 31, 2024|name=<br>Spooky Presidential Election|consulimage=example.png|consulcaption=Consul Example, of the example party.|party1image=example.png|party1=Party 1|party1color=#ff0000|party1vote=100.0|party1change=0|party1seats=2|party1swing=-1}} |
Revision as of 05:26, 30 May 2024
[[{{{prevelection}}}|prev]] | [[File:{{{flag}}}|50px]] | [[{{{nextelection}}}|next]] | ||
{{{date}}} {{{name}}} | ||||
[[File:|95px]] | ||||
Party | {{{party1}}} | |||
Vote | {{{party1vote}}}% | |||
Swing | Expression error: Unrecognized punctuation character "{". | |||
Seats | {{{party1seats}}} | |||
Shift | Expression error: Unrecognized punctuation character "{". |
prev | next | |||
May 29, 2024 Sanéan Senatorial Elections | ||||
Consul Example, of the example party. | ||||
Party | Party 1 | Party 2 | ||
Vote | 28.2% | 33.1% | ||
Swing | ▼ 1 pp | ▬ | ||
Seats | 2 | 2 | ||
Party | Party 3 | |||
Vote | 35.1% | |||
Swing | ▲ 1 pp | |||
Seats | 1 |
prev | next | |||
October 31, 2024 Spooky Presidential Election | ||||
Consul Example, of the example party. | ||||
Party | Party 1 | |||
Vote | 100.0% | |||
Swing | ▼ 1 pp | |||
Seats | 2 |