Template:Infobox Election template 2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
{| 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:# | ! colspan="3" style="text-align:center; color:#FFFFFF; background:#e9e9e9; font-size:160%;" |{{{name|<font color="white">{{{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:# | ! 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:# | ! 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:# | ! 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:# | ! 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:# | ! 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 149: | Line 149: | ||
|seatchange3=Seats change from last election: e.g -3 | |seatchange3=Seats change from last election: e.g -3 | ||
|map_image=[[File: | |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 158: | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category: Templates]] | |||
[[Category:Infoboxes]] | [[Category:Infoboxes]] | ||
</noinclude> | </noinclude> |
Revision as of 17:35, 22 September 2024
|
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.
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 }}