Template:Infobox Election template 2: Difference between revisions

From RoPlay
Jump to navigation Jump to search
(Created page with "{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:{{{width|370px}}}; background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5" |- |<div> {| border="0" cellpadding="1" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle" |- ! colspan="3" style="text-align:center; color:#FFFFFF; background:#212121; font-si...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:{{{width|370px}}}; background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5"
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em;width:350px;min-width:350px; background: border-collapse:collapse; border:1px solid #A2A9B1; font-size:smaller; line-height:1.5"
|-
|-
|<div>
|<div>
{| border="0" cellpadding="1" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
{| border="0" cellpadding="1" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
|-
|-
! colspan="3" style="text-align:center; color:#FFFFFF; background:#212121; font-size:160%;" |{{{name|<font color="white">{{{title1|{{PAGENAME}}}}}</font>}}}
! colspan="3" style="text-align:center; background:#e9e9e9; font-size:160%;" |{{{name|<font>{{{title1|{{PAGENAME}}}}}</font>}}}
|- style="text-align:center;"
|- style="text-align:center;"
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}}{{#if:{{{flag|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;padding-bottom:1px;"  |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}}{{#if:{{{flag|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;padding-bottom:1px;"  |
|-
|-
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:left; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{#if:{{{previous|}}}|← {{{previous|}}}|}}
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:left; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{#if:{{{previous|}}}|← {{{previous|}}}|}}
Line 14: Line 14:
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:right; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{#if:{{{next|}}}|{{{next|}}} →|}}
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:right; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{#if:{{{next|}}}|{{{next|}}} →|}}
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#212121;"  |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#e9e9e9;"  |
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{seatsup|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{seatsup|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
Line 23: Line 23:
| colspan="1" style="text-align:center;{{#if:{{{turnout|}}}| |display:none;}}" |{{{turnout|}}}
| colspan="1" style="text-align:center;{{#if:{{{turnout|}}}| |display:none;}}" |{{{turnout|}}}
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{turnout|}}}{{{needed|}}}{{{seatsup|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{turnout|}}}{{{needed|}}}{{{seatsup|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;" |
|-
|-
|}
|}
Line 59: Line 59:
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}" |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
|-
Line 69: Line 69:
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
|-
! colspan="3" style="{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}{{#if:{{{old|}}}{{{new|}}}| |display:none;}}{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
! colspan="3" style="{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}{{#if:{{{old|}}}{{{new|}}}| |display:none;}}{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999; {{#if:{{{new|}}}{{{old|}}}|display:none;|}};"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999; {{#if:{{{new|}}}{{{old|}}}|display:none;|}};"
|}
|}
Line 80: Line 80:
|}
|}
<noinclude>
<noinclude>
[[Category: Templates]]
For if the other election templates dont work. This one holds up to 12 parties! Can be used for mearly any election. Template is below with values shown here.
For if the other election templates dont work. This one holds up to 12 parties! Can be used for mearly any election. Template is below with values shown here.
{{Infobox Election template 2
{{Infobox Election template 2
|title1=Name Of Election Goes Here
|title1=Name Of Election Goes Here
|flag=[[File:Flag_Of_Corcaigh.png|70px]]
|flag=[[File:Falkland Islands.png|70px]]
|dateofelection=01/01/2023 | or 1st January 2023
|dateofelection=01/01/2023 | or 1st January 2023
|seatsup=All seats in the government/council/whateever e.g: 60
|seatsup=All seats in the government/council/whateever e.g: 60
Line 111: Line 110:
|seatchange3=Seats change from last election: e.g -3
|seatchange3=Seats change from last election: e.g -3


|map_image=[[File:Image 2024-01-23 202922720.png|360px]]
|map_image=[[File:Example election map.png|360px]]
|map_caption=Outcome of results
|map_caption=Outcome of results
|officer=Speaker of the Assembly
|officer=Speaker of the Assembly
Line 149: Line 148:
|seatchange3=Seats change from last election: e.g -3
|seatchange3=Seats change from last election: e.g -3


|map_image=[[File:Image 2024-01-23 202922720.png|360px]]
|map_image=[[File:Example election map.png|360px]]
|map_caption=Outcome of results
|map_caption=Outcome of results
|officer=Speaker of the Assembly
|officer=Speaker of the Assembly
Line 158: Line 157:
}}
}}
</pre>
</pre>
 
[[Category: Templates]]
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 18:11, 22 September 2024

Infobox Election template 2
Turnout
Party Leader % Seats +/–
{{{map_image}}}
{{{officer}}} before
{{{old}}}
{{{officer}}} after
{{{new}}}

For if the other election templates dont work. This one holds up to 12 parties! Can be used for mearly any election. Template is below with values shown here.

Name Of Election Goes Here
← Link to 2022 Election 01/01/2023 Link to 2023 Election →
All seats in the government/council/whateever e.g: 60
Number of seats needed for majority e.g: 30
Turnout Attendance: 50.20%
Party Leader % Seats +/–
GG Party Leader of Party 34% Seats won: e.g 3 Seats change from last election: e.g 3
Red Party Leader of Party 34% Seats won: e.g 3 Seats change from last election: e.g 3
Ornage Party Leader of Party 34% Seats won: e.g 3 Seats change from last election: e.g -3
Outcome of results
Speaker of the Assembly before
Old Speaker
Speaker of the Assembly after
New Speaker

Example usage:

{{Infobox Election template 2
|title1=Name Of Election Goes Here
|flag=[[File:Flag_Of_Corcaigh.png|70px]]
|dateofelection=01/01/2023 | or 1st January 2023
|seatsup=All seats in the government/council/whateever e.g: 60
|needed=Number of seats needed for majority e.g: 30
|turnout=Attendance: 50.20%

|color1=blue
|party1=GG Party
|name1=Leader of Party
|percentage1=34%
|seatswon1=Seats won: e.g 3
|seatchange1=Seats change from last election: e.g 3

|color2=red
|party2=Red Party
|name2=Leader of Party
|percentage2=34%
|seatswon2=Seats won: e.g 3
|seatchange2=Seats change from last election: e.g 3

|color3=orange
|party3=Ornage Party
|name3=Leader of Party
|percentage3=34%
|seatswon3=Seats won: e.g 3
|seatchange3=Seats change from last election: e.g -3

|map_image=[[File:Example election map.png|360px]]
|map_caption=Outcome of results
|officer=Speaker of the Assembly
|old=Old Speaker
|new=New Speaker
|previous=Link to 2022 Election
|next=Link to 2023 Election
}}