Template:Legislative Election: Difference between revisions
Jump to navigation
Jump to search
(Added background to image and a colored bar bellow the image) |
(Bugfix and a small design change, nothing too big.) |
||
Line 1: | Line 1: | ||
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; {{#if:{{{image2|}}}{{{name2|}}}{{{party2|}}}{{{alliance2|}}}{{{leadersince2|}}}{{{leaderseat2|}}}{{{lastelection2|}}}{{{seatswon2|}}}{{{seatchange2|}}}{{{popular2|}}}{{{percentage2|}}}{{{swing2|}}}|width:385px;|width:270px;}} {{#if:{{{image3|}}}{{{name3|}}}{{{party3|}}}{{{alliance3|}}}{{{leadersince3|}}}{{{leaderseat3|}}}{{{lastelection3|}}}{{{seatswon3|}}}{{{seatchange3|}}}{{{popular3|}}}{{{percentage3|}}}{{{swing3|}}}|width: | {| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; {{#if:{{{image2|}}}{{{name2|}}}{{{party2|}}}{{{alliance2|}}}{{{leadersince2|}}}{{{leaderseat2|}}}{{{lastelection2|}}}{{{seatswon2|}}}{{{seatchange2|}}}{{{popular2|}}}{{{percentage2|}}}{{{swing2|}}}|width:385px;|width:270px;}} {{#if:{{{image3|}}}{{{name3|}}}{{{party3|}}}{{{alliance3|}}}{{{leadersince3|}}}{{{leaderseat3|}}}{{{lastelection3|}}}{{{seatswon3|}}}{{{seatchange3|}}}{{{popular3|}}}{{{percentage3|}}}{{{swing3|}}}|width:550px;| }} background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5" | ||
|- | |- | ||
|<div> | |<div> | ||
Line 29: | Line 29: | ||
|- | |- | ||
! style="width:auto;text-align:left;white-space:nowrap;" | | ! style="width:auto;text-align:left;white-space:nowrap;" | | ||
{{#if:{{{image1<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="background: linear-gradient(to top, AliceBlue, WhiteSmoke, LavenderBlush);border-bottom: 8px solid {{{color1|}}};text-align:center;background-color:#;{{#if:{{{image2|}}}| |width:78%;}}" {{!}}{{{image1}}} }} | {{#if:{{{image1<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="box-shadow:0px 0px 0px 2px white inset; background: linear-gradient(to top, AliceBlue, WhiteSmoke, LavenderBlush);border-bottom: 8px solid {{{color1|}}};text-align:center;background-color:#;{{#if:{{{image2|}}}| |width:78%;}}" {{!}}{{{image1}}} }} | ||
{{#if:{{{image2<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="background: linear-gradient(to top, AliceBlue, WhiteSmoke, LavenderBlush);border-bottom: 8px solid {{{color2|}}};text-align:center;background-color:#;{{#if:{{{image2|}}}| |display:none;}}" {{!}}{{{image2}}} }} | {{#if:{{{image2<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="box-shadow:0px 0px 0px 2px white inset; background: linear-gradient(to top, AliceBlue, WhiteSmoke, LavenderBlush);border-bottom: 8px solid {{{color2|}}};text-align:center;background-color:#;{{#if:{{{image2|}}}| |display:none;}}" {{!}}{{{image2}}} }} | ||
{{#if:{{{image3<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="background: linear-gradient(to top, AliceBlue, WhiteSmoke, LavenderBlush);border-bottom: 8px solid {{{color3|}}};text-align:center;background-color:#;{{#if:{{{image3|}}}| |display:none;}}" {{!}}{{{image3}}} }} | {{#if:{{{image3<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="box-shadow:0px 0px 0px 2px white inset; background: linear-gradient(to top, AliceBlue, WhiteSmoke, LavenderBlush);border-bottom: 8px solid {{{color3|}}};text-align:center;background-color:#;{{#if:{{{image3|}}}| |display:none;}}" {{!}}{{{image3}}} }} | ||
|- | |- | ||
! | ! | ||
Line 49: | Line 49: | ||
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{alliance1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance1|}}} | | style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{alliance1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance1|}}} | ||
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{alliance2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance2|}}} | | style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{alliance2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance2|}}} | ||
| style="width:26%;text-align:center;{{#if:{{{ | | style="width:26%;text-align:center;{{#if:{{{alliance3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance3|}}} | ||
|- | |- | ||
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{leadersince1|}}}| |display:none;}}" valign="top" |'''Leader since''' | ! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{leadersince1|}}}| |display:none;}}" valign="top" |'''Leader since''' |
Revision as of 16:33, 20 July 2023
|
|
Example usage:
{{Legislative_Election |color=black |title1=3023 Turkish parliamentary election |flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]] |dateofelection=14 May 3023 |seatsup=All 600 seats in the Grand National Assembly |needed=301 seats needed for a majority |turnout=30.10% |image1=Bruh |image2=Bruh2 |color1=blue |color2=green |name1=Jeff |name2=Bob |party1=GG Party |party2=Bruh Party |alliance1= People's Alliance |alliance2=Nation Alliance |leadersince1=Bruh |leadersince2=Bruh |leaderseat1=Presidential Candidate |leaderseat2=Presidential Candidate |lastelection1=42.56%, 295 seats |lastelection2=22.65%, 146 seats |seatswon1=268 |seatswon2=169 |seatchange1=27 |seatchange2=23 |popular1=19,387,412 |popular2=13,791,299 |percentage1=35.61% |percentage2=25.33% |swing1=Example |swing2=Example |map_image=Map |map_caption=Map_caption |officer=Speaker of the Assembly |old=Example1 |new=Example2 |previous=3022 |next=3024 }}