Template:Presidential Election: Difference between revisions

From EarthMC
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(8 intermediate revisions by one other user not shown)
Line 19: Line 19:
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#212121;"  |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#212121;"  |
|-
|- style="{{#if:{{{seatsup|}}}||display:none;}}"
! 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|}}}|display:none;}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
|-
|- style="{{#if:{{{needed|}}}||display:none;}}"
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{needed|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{needed|}}}
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{needed|}}}|display:none;}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{needed|}}}
|-  
|- style="{{#if:{{{ongoing|}}}||display:none;}}"
| colspan="3" |
| colspan="3" |
{| style="table-layout: fixed;width:100%;height: auto;"
{| style="table-layout: fixed;width:100%;height: auto;"
Line 39: Line 39:
|-
|-
!  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="box-shadow:0px 0px 0px 2px white inset;border-bottom: 8px solid {{{color1|}}};text-align:center;background-color:#;{{#if:{{{image1|}}}| |display:none;}}" {{!}}{{{image1}}} }}
| colspan="1" style="box-shadow:0px 0px 0px 2px white inset;border-bottom: 8px solid {{{color1|}}};text-align:center;background-color:#;{{#if:{{{image1|}}}||display:none;}}" | {{{image1}}}
{{#if:{{{image2<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="box-shadow:0px 0px 0px 2px white inset;border-bottom: 8px solid {{{color2|}}};text-align:center;background-color:#;{{#if:{{{image2|}}}| |display:none;}}" {{!}}{{{image2}}} }}
| colspan="1" style="box-shadow:0px 0px 0px 2px white inset;border-bottom: 8px solid {{{color2|}}};text-align:center;background-color:#;{{#if:{{{image2|}}}||display:none;}}" | {{{image2}}}
{{#if:{{{image3<includeonly>|</includeonly>}}} | {{!}} colspan="1" style="box-shadow:0px 0px 0px 2px white inset;border-bottom: 8px solid {{{color3|}}};text-align:center;background-color:#;{{#if:{{{image3|}}}| |display:none;}}" {{!}}{{{image3}}} }}
| colspan="1" style="box-shadow:0px 0px 0px 2px white inset;border-bottom: 8px solid {{{color3|}}};text-align:center;background-color:#;{{#if:{{{image3|}}}||display:none;}}" | {{{image3}}}
|-
|-
!
!
Line 65: Line 65:
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{province2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{province2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province2|}}}
| style="width:26%;text-align:center;{{#if:{{{province3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province3|}}}
| style="width:26%;text-align:center;{{#if:{{{province3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province3|}}}
|-
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{province1|}}}| |display:none;}}" valign="top" |'''{{{subdivision2_name|}}}'''
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{province1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province21|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{province2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province22|}}}
| style="width:26%;text-align:center;{{#if:{{{province3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province23|}}}
|-
|-
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{town1|}}}| |display:none;}}" valign="top" |'''Hometown'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{town1|}}}| |display:none;}}" valign="top" |'''Hometown'''

Latest revision as of 08:16, 2 September 2024

{{{title1}}}
 
Completion rate
as of 13:49 GMT
Turnout
{{{image1}}} {{{image2}}} {{{image3}}}
Candidate
Political party
Alliance
'
Hometown
Running mate
Electoral vote
s carried
Popular vote
Percentage
1st preference
Final count
Percentage
Second round
Runoff
{{{image4}}} {{{image5}}} {{{image6}}}
Candidate
Political party
Alliance
'
'
Hometown
Running mate
Electoral vote
s carried
Popular vote
Percentage
4st preference
Final count
Percentage
Second round
Runoff
{{{map_image}}}
before
{{{old}}}
after
{{{new}}}

This can be used for basically any election with a single winner, but the name of the Infobox came when this was made just for Presidential races. You can use this for literally any election that elects a single office though, whether it has electoral votes, elected by parliament, or uses ranked-choice voting. This just doesn't work for Legislative elections where seats are involved, or in Referendums.

Example usage:

{{Presidential_Election
|color=Example
|title1=Example
|flag=Example
|dateofelection=Example
|outgoing=test
|elected=test2
|turnout=Example
|image1=Example
|image2=Example
|image3=Example
|color1=Example
|color2=Example
|color3=Example
|name1=Example
|name2=Example
|name3=Example
|subdivision_name=Example
|party1=Example
|party2=Example
|party3=Example
|alliance1=Example
|alliance2=Example
|alliance3=Example
|province1=Example
|province2=Example
|province3=Example
|town1=Example
|town2=Example
|town3=Example
|mate1=Example
|mate2=Example
|mate3=Example
|electoral1=Example
|electoral2=Example
|electoral3=Example
|subdivisionscarried1=Example
|subdivisionscarried2=Example
|subdivisionscarried3=Example
|popular1=Example
|popular2=Example
|popular3=Example
|percentage1=Example
|percentage2=Example
|percentage3=Example
|firstpreference1=Example
|firstpreference2=Example
|firstpreference3=Example
|finalcount1=Example
|finalcount2=Example
|finalcount3=Example
|firstround1=Example
|firstround2=Example
|firstround3=Example
|secondround1=Example
|secondround2=Example
|secondround3=Example
|runoff1=Example
|runoff2=Example
|runoff3=Example
|map_image=Example
|map_caption=Example
|old=Example
|new=Example
|Office_name=Example
|previous=Example
|next=Example
}}