Template:Legislative Election: Difference between revisions

From EarthMC
Jump to navigation Jump to search
>Weeaboo11
No edit summary
>SayerQT
No edit summary
Line 1: Line 1:
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:150px; 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:380px; background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5"
|-
|-
|<div>
|<div>
{| border="0" cellpadding="4" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
{| border="0" cellpadding="4" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
|-
|-
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" |{{{name|<font color="white">{{{title1}}}</font>}}}
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:160%;" |{{{name|<font color="white">{{{title1}}}</font>}}}
|- style="text-align:center;"
|- style="text-align:center;"
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{dateofelection|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{dateofelection}}}
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{dateofelection|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{dateofelection|}}}
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{seatsup|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup}}}
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{seatsup|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{needed|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{needed}}}
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{needed|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{needed|}}}
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
Line 17: Line 17:
|-
|-
|}
|}
{| align="center" border="0" cellpadding="3" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; width:100%; border:0px"
{| align="center" border="0" cellpadding="4" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; width:100%; border:0px"
|-
|-
|}
!
{| class="article-table"
{{#if:{{{image1<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="text-align:center;background-color:#;" {{!}}{{{image1}}} }}
|+
{{#if:{{{image2<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="text-align:center;background-color:#;" {{!}}{{{image2}}} }}
!Candidate
|-
!Vote
! style="background:#212121;" |<font color="white">Leader</font>
!%
! style="background:#212121; {{#if:{{{name1|}}}}}" class="infoboxcell" valign="top" |<font color="white">{{{name1}}}</font>
!✓✗
! style="background:#212121; {{#if:{{{name2|}}}}}" class="infoboxcell" valign="top" |<font color="white">{{{name2}}}</font>
|-
| style="" valign="top" |'''Party'''
| style="{{#if:{{{party1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party1|}}}
| style="{{#if:{{{party2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party2|}}}
|-
| style="" valign="top" |'''Alliance'''
| style="{{#if:{{{alliance1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance1|}}}
| style="{{#if:{{{alliance2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance2|}}}
|-
| style="" valign="top" |'''Leader since'''
| style="{{#if:{{{leadersince1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{leadersince1|}}}
| style="{{#if:{{{leadersince2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{leadersince2|}}}
|-
| style="" valign="top" |'''Leader's seat'''
| style="{{#if:{{{leaderseat1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{leaderseat1|}}}
| style="{{#if:{{{leaderseat2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{leaderseat2|}}}
|-
| style="" valign="top" |'''Last election'''
| style="{{#if:{{{lastelection1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{lastelection1|}}}
| style="{{#if:{{{lastelection2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{lastelection2|}}}
|-
| style="" valign="top" |'''Seats won'''
| style="{{#if:{{{seatswon1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{seatswon1|}}}
| style="{{#if:{{{seatswon2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{seatswon2|}}}
|-
| style="" valign="top" |'''Seat change'''
| style="{{#if:{{{seatchange1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{seatchange1|}}}
| style="{{#if:{{{seatchange2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{seatchange2|}}}
|-
| style="" valign="top" |'''Popular vote'''
| style="{{#if:{{{popular1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular1|}}}
| style="{{#if:{{{popular2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular2|}}}
|-
| style="" valign="top" |'''Percentage'''
| style="{{#if:{{{percentage1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage1|}}}
| style="{{#if:{{{percentage2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage2|}}}
|-
| style="" valign="top" |'''Swing'''
| style="{{#if:{{{swing1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{swing1|}}}
| style="{{#if:{{{swing2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{swing2|}}}
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
{{#if:{{{map_image<includeonly>|</includeonly>}}} |
{{!}} colspan="3" style="text-align:center;background-color:#;" {{!}}{{{map_image}}}
}}
|-
| colspan="3" style="{{#if:{{{map_caption|}}}| }}" class="infoboxcell" valign="top" align="middle" |{{{map_caption|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
|-
|{{{Candidate1}}}
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
|{{{Votes1}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|{{{Percent1}}}
|{{{Elected1}}}
|-
|-
|{{#if:{{{Candidate2|}}}|}}|{{{Candidate2}}}
| style="{{#if:{{{old|}}}|}}" valign="top" align="left" |'''{{{officer}}} before'''
|{{#if:{{{Votes2|}}}|}}|{{{Votes2}}}
!
|{{#if:{{{Percent2|}}}|}}|{{{Percent2}}}
| style="{{#if:{{{new|}}}|}}" valign="top" align="right" |'''{{{officer}}} after'''
|{{#if:{{{Elected2|}}}|}}|{{{Elected2}}}
|-
|-
|{{#if:{{{Candidate3|}}}|}}|{{{Candidate3}}}
| style="{{#if:{{{old|}}}|}}" class="infoboxcell" valign="top" align="left" |{{{old}}}
|{{#if:{{{Votes3|}}}|}}|{{{Votes3}}}
!
|{{#if:{{{Percent3|}}}|}}|{{{Percent3}}}
| style="{{#if:{{{new|}}}|}}" class="infoboxcell" valign="top" align="right" |{{{new}}}
|{{#if:{{{Elected3|}}}|}}|{{{Elected3}}}
|-
|-
|{{#if:{{{Candidate4|}}}|}}|{{{Candidate4}}}
| style="{{#if:{{{previous|}}}|}}" valign="top" align="left" |'''Previous election'''
|{{#if:{{{Votes4|}}}|}}|{{{Votes4}}}
!
|{{#if:{{{Percent4|}}}|}}|{{{Percent4}}}
| style="{{#if:{{{next|}}}|}}" valign="top" align="right" |'''Next election'''
|{{#if:{{{Elected4|}}}|}}|{{{Elected4}}}
|-
|-
|{{#if:{{{Candidate5|}}}|}}|{{{Candidate5}}}
| style="{{#if:{{{previous|}}}|}}" class="infoboxcell" valign="top" align="left" |{{{previous}}}
|{{#if:{{{Votes5|}}}|}}|{{{Votes5}}}
!
|{{#if:{{{Percent5|}}}|}}|{{{Percent5}}}
| style="{{#if:{{{next|}}}|}}" class="infoboxcell" valign="top" align="right" |{{{next}}}
|{{#if:{{{Elected5|}}}|}}|{{{Elected5}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|}
|}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|}
|}


Line 63: Line 107:
|seatsup=Example
|seatsup=Example
|needed=Example
|needed=Example
|Candidate1=
|image1=Example
|Votes1=
|image2=Example
|Percent1=
|name1=Example
|Elected1=
|name2=Example
|Candidate2=
|party1=Example
|Votes2=
|party2=Example
|Percent2=
|alliance1=Example
|Elected2=
|alliance2=Example
|Candidate3=
|leadersince1=Example
|Votes3=
|leadersince2=Example
|Percent3=
|leaderseat1=Example
|Elected3=
|leaderseat2=Example
|Candidate4=
|lastelection1=Example
|Votes4=
|lastelection2=Example
|Percent4=
|seatswon1=Example
|Elected4=
|seatswon2=Example
|Candidate5=
|seatchange1=Example
|Votes5=
|seatchange2=Example
|Percent5=
|popular1=Example
|Elected5=
|popular2=Example
|percentage1=Example
|percentage2=Example
|swing1=Example
|swing2=Example
|map_image=Example
|map_caption=Example
|officer=Example
|old=Example
|new=Example
|previous=Example
|next=Example
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 06:43, 2 March 2022

{{{title1}}}
{{{image1}}} {{{image2}}}
Leader {{{name1}}} {{{name2}}}
Party
Alliance
Leader since
Leader's seat
Last election
Seats won
Seat change
Popular vote
Percentage
Swing
{{{map_image}}}
{{{officer}}} before {{{officer}}} after
{{{old}}} {{{new}}}
Previous election Next election
{{{previous}}} {{{next}}}


Example usage:

{{Legislative_Election
|color=Example
|title1=Example
|dateofelection=Example
|seatsup=Example
|needed=Example
|image1=Example
|image2=Example
|name1=Example
|name2=Example
|party1=Example
|party2=Example
|alliance1=Example
|alliance2=Example
|leadersince1=Example
|leadersince2=Example
|leaderseat1=Example
|leaderseat2=Example
|lastelection1=Example
|lastelection2=Example
|seatswon1=Example
|seatswon2=Example
|seatchange1=Example
|seatchange2=Example
|popular1=Example
|popular2=Example
|percentage1=Example
|percentage2=Example
|swing1=Example
|swing2=Example
|map_image=Example
|map_caption=Example
|officer=Example
|old=Example
|new=Example
|previous=Example
|next=Example
}}