Template:Presidential Election: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| 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"
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; {{#if:{{{image2|}}}{{{name2|}}}{{{party2|}}}{{{alliance2|}}}{{{province2|}}}{{{town2|}}}{{{mate2|}}}{{{electoral2|}}}{{{subdivisionscarried2|}}}{{{popular2|}}}{{{percentage2|}}}{{{firstpreference2|}}}{{{finalcount2|}}}{{{firstround2|}}}{{{secondround2|}}}{{{runoff2|}}}|width:385px;|width:270px;}} {{#if:{{{image3|}}}{{{name3|}}}{{{party3|}}}{{{alliance3|}}}{{{province3|}}}{{{town3|}}}{{{mate3|}}}{{{electoral3|}}}{{{subdivisionscarried3|}}}{{{popular3|}}}{{{percentage3|}}}{{{firstpreference3|}}}{{{finalcount3|}}}{{{firstround3|}}}{{{secondround3|}}}{{{runoff3|}}}|width:550px;| }} 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="1" 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:150%;" |{{{name|<font color="white">{{{title1}}}</font>}}}
! colspan="3" 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="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{dateofelection|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{dateofelection}}}
! 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="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}| |display:none;}} text-align:left; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |← {{{previous|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{dateofelection|}}}| |display:none;}} text-align:center;font-weight:normal;color:#000000;line-height:130%;width:34%;padding-top:10px;padding-bottom:10px; background:;" |'''{{{dateofelection|}}}'''
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{next|}}}| |display:none;}} text-align:right; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{{next|}}} →
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#212121;" |
|-
! style="width:text-align:left;5em;white-space:nowrap;{{#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;" |
|-
|-
|}
|}
{| align="center" border="0" cellpadding="4" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; width:100%; border:0px"
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="text-align:center; border:1px;border-collapse:collapse;"
|-
!  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:{{{image2|}}}| |width:78%;}}" {{!}}{{{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}}} }}
{{#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}}} }}
|-
|-
!
!
{{#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}}} }}
|- style = "background-color:#212121;"
! colspan="1" style="width:auto;float:left;background:#212121;text-align:left; {{#if:{{{name1|}}}}}" |<font color="white">Candidate</font>
| colspan="1" style="text-align:center;background:#212121; {{#if:{{{name1|}}}}}{{#if:{{{name3|}}}|width:26%;|width:39%;}}{{#if:{{{name2|}}}| |width:78%;}}" class="infoboxcell" valign="top" |<font color="white">{{{name1}}}</font>
| colspan="1" style="text-align:center;background:#212121; {{#if:{{{name2|}}}}}{{#if:{{{name2|}}}| |display:none;}}{{#if:{{{name3|}}}|width:26%;|width:39%;}}" class="infoboxcell" valign="top" |<font color="white">{{{name2}}}</font>
| colspan="1" style="width:26%;text-align:center;background:#212121; {{#if:{{{name3|}}}| |display:none;}}" class="infoboxcell" valign="top" |<font color="white">{{{name3}}}</font>
|-
|-
! style="background:#212121;" |<font color="white">Candidate</font>
! style="width:auto;border: dashed red 0px;float:left;text-align:left;{{#if:{{{party1|}}}| |display:none;}}" valign="top" |'''Political party'''
! style="background:#212121; {{#if:{{{name1|}}}}}" class="infoboxcell" valign="top" |<font color="white">{{{name1}}}</font>
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}border: dashed red 0px;text-align:center;{{#if:{{{party1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party1|}}}
! style="background:#212121; {{#if:{{{name2|}}}}}" class="infoboxcell" valign="top" |<font color="white">{{{name2}}}</font>
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}border: dashed red 0px;text-align:center;{{#if:{{{party2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party2|}}}
| style="width:26%;border: dashed red 0px;text-align:center;{{#if:{{{party3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party3|}}}
|-
|-
| style="{{#if:{{{party1|}}}| |display:none;}}""" valign="top" |'''Political party'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{alliance1|}}}| |display:none;}}" valign="top" |'''Alliance'''
| style="{{#if:{{{party1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{alliance1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance1|}}}
| style="{{#if:{{{party2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{party2|}}}
| 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:{{{alliance3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance3|}}}
|-
|-
| style="{{#if:{{{alliance1|}}}| |display:none;}}""" valign="top" |'''Alliance'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{province1|}}}| |display:none;}}" valign="top" |'''{{{subdivision_name|}}}'''
| style="{{#if:{{{alliance1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{province1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province1|}}}
| style="{{#if:{{{alliance2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{alliance2|}}}
| 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="{{#if:{{{province1|}}}| |display:none;}}" valign="top" |'''{{{subdivision_name|}}}'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{town1|}}}| |display:none;}}" valign="top" |'''Hometown'''
| style="{{#if:{{{province1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{town1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town1|}}}
| style="{{#if:{{{province2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{town2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town2|}}}
| style="width:26%;text-align:center;{{#if:{{{town3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town3|}}}
|-
|-
| style="{{#if:{{{town1|}}}| |display:none;}}" valign="top" |'''Town'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{mate1|}}}| |display:none;}}" valign="top" |'''Running mate'''
| style="{{#if:{{{town1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{mate1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{mate1|}}}
| style="{{#if:{{{town2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{mate2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{mate2|}}}
| style="width:26%;text-align:center;{{#if:{{{mate3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{mate3|}}}
|-
|-
| style="{{#if:{{{mate1|}}}| |display:none;}}""" valign="top" |'''Running mate'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{electoral1|}}}| |display:none;}}" valign="top" |'''Electoral vote'''
| style="{{#if:{{{mate1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{mate1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{electoral1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral1|}}}
| style="{{#if:{{{mate2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{mate2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{electoral2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral2|}}}
| style="width:26%;text-align:center;{{#if:{{{electoral3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral3|}}}
|-
|-
| style="{{#if:{{{electoral1|}}}| |display:none;}}" valign="top" |'''Electoral vote'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" valign="top" |'''{{{subdivision_name|}}}s carried'''
| style="{{#if:{{{electoral1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried1|}}}
| style="{{#if:{{{electoral2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{subdivisionscarried2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried2|}}}
| style="width:26%;text-align:center;{{#if:{{{subdivisionscarried3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried3|}}}
|-
|-
| style="{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" valign="top" |'''{{{subdivision_name|}}}s carried'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{popular1|}}}| |display:none;}}" valign="top" |'''Popular vote'''
| style="{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{popular1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular1|}}}
| style="{{#if:{{{subdivisionscarried2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{popular2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular2|}}}
| style="width:26%;text-align:center;{{#if:{{{popular3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular3|}}}
|-
|-
| style="{{#if:{{{popular1|}}}| |display:none;}}" valign="top" |'''Popular vote'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{percentage1|}}}| |display:none;}}" valign="top" |'''Percentage'''
| style="{{#if:{{{popular1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{percentage1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage1|}}}
| style="{{#if:{{{popular2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{percentage2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage2|}}}
| style="width:26%;text-align:center;{{#if:{{{percentage3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage3|}}}
|-
|-
| style="{{#if:{{{percentage1|}}}| |display:none;}}" valign="top" |'''Percentage'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{firstpreference1|}}}| |display:none;}}" valign="top" |'''1st preference'''
| style="{{#if:{{{percentage1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{firstpreference1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference1|}}}
| style="{{#if:{{{percentage2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{firstpreference2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference2|}}}
| style="width:26%;text-align:center;{{#if:{{{firstpreference3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference3|}}}
|-
|-
| style="{{#if:{{{firstpreference1|}}}| |display:none;}}" valign="top" |'''1st Preference'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{finalcount1|}}}| |display:none;}}" valign="top" |'''Final count'''
| style="{{#if:{{{firstpreference1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{finalcount1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount1|}}}
| style="{{#if:{{{firstpreference2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{finalcount2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount2|}}}
| style="width:26%;text-align:center;{{#if:{{{finalcount3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount3|}}}
|-
|-
| style="{{#if:{{{finalcount1|}}}| |display:none;}}" valign="top" |'''Final count'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{firstround1|}}}| |display:none;}}" valign="top" |'''First round'''
| style="{{#if:{{{finalcount1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{firstround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround1|}}}
| style="{{#if:{{{finalcount2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{firstround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround2|}}}
| style="width:26%;text-align:center;{{#if:{{{firstround3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround3|}}}
|-
|-
| style="{{#if:{{{firstround1|}}}| |display:none;}}" valign="top" |'''First round'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{secondround1|}}}| |display:none;}}" valign="top" |'''Second round'''
| style="{{#if:{{{firstround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{secondround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround1|}}}
| style="{{#if:{{{firstround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{secondround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround2|}}}
| style="width:26%;text-align:center;{{#if:{{{secondround3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround3|}}}
|-
|-
| style="{{#if:{{{secondround1|}}}| |display:none;}}" valign="top" |'''Second round'''
! style="width:auto;float:left;display: inline-block;width:fit-content;text-align:left;{{#if:{{{runoff1|}}}| |display:none;}}" valign="top" |'''Runoff'''
| style="{{#if:{{{secondround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround1|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{runoff1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff1|}}}
| style="{{#if:{{{secondround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround2|}}}
| style="{{#if:{{{name3|}}}|width:26%;|width:39%;}}text-align:center;{{#if:{{{runoff2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff2|}}}
| style="width:26%;text-align:center;{{#if:{{{runoff3|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff3|}}}
|-
|-
| style="{{#if:{{{runoff1|}}}| |display:none;}}" valign="top" |'''Runoff'''
|}
| style="{{#if:{{{runoff1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff1|}}}
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
| style="{{#if:{{{runoff2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff2|}}}
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
Line 83: Line 114:
|-
|-
{{#if:{{{map_image<includeonly>|</includeonly>}}} |
{{#if:{{{map_image<includeonly>|</includeonly>}}} |
{{!}} colspan="3" style="text-align:center;background-color:#;" {{!}}{{{map_image}}}
{{!}} colspan="3" style="{{#if:{{{map_image|}}}| |display:none;}}text-align:center;background-color:#;" {{!}}{{{map_image}}}
}}
}}
|-
|-
Line 89: Line 120:
|- 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:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
! colspan="3" style="{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}{{#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;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|}
{| align="center" border="0" cellpadding="5" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
|-
|-
| style="{{#if:{{{old|}}}|}}" valign="top" align="left" |'''Previous {{{Office_name|}}}'''
| colspan="1" style="{{#if:{{{old|}}}|}};" valign="top" align="left" |'''{{{Office_name}}} before'''<br>{{{old}}}
!
| colspan="1" style="{{#if:{{{new|}}}|}};" valign="top" align="right" |'''{{{Office_name}}} after'''<br>{{{new}}}
| style="{{#if:{{{new|}}}|}}" valign="top" align="right" |'''Elected {{{Office_name|}}}'''
|-
| style="{{#if:{{{old|}}}|}}" class="infoboxcell" valign="top" align="left" |{{{old}}}
!
| style="{{#if:{{{new|}}}|}}" class="infoboxcell" valign="top" align="right" |{{{new}}}
|-
| style="{{#if:{{{previous|}}}|}}" valign="top" align="left" |'''Last election'''
!
| style="{{#if:{{{next|}}}|}}" valign="top" align="right" |'''Next election'''
|-
| style="{{#if:{{{previous|}}}|}}" class="infoboxcell" valign="top" align="left" |{{{previous}}}
!
| style="{{#if:{{{next|}}}|}}" class="infoboxcell" valign="top" align="right" |{{{next}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|}
|}
Line 117: Line 137:
|color=Example
|color=Example
|title1=Example
|title1=Example
|flag=Example
|dateofelection=Example
|dateofelection=Example
|turnout=Example
|image1=Example
|image1=Example
|image2=Example
|image2=Example
|image3=Example
|color1=Example
|color2=Example
|color3=Example
|name1=Example
|name1=Example
|name2=Example
|name2=Example
|name3=Example
|subdivision_name=Example
|subdivision_name=Example
|party1=Example
|party1=Example
|party2=Example
|party2=Example
|party3=Example
|alliance1=Example
|alliance1=Example
|alliance2=Example
|alliance2=Example
|alliance3=Example
|province1=Example
|province1=Example
|province2=Example
|province2=Example
|province3=Example
|town1=Example
|town1=Example
|town2=Example
|town2=Example
|town3=Example
|mate1=Example
|mate1=Example
|mate2=Example
|mate2=Example
|mate3=Example
|electoral1=Example
|electoral1=Example
|electoral2=Example
|electoral2=Example
|electoral3=Example
|subdivisionscarried1=Example
|subdivisionscarried1=Example
|subdivisionscarried2=Example
|subdivisionscarried2=Example
|subdivisionscarried3=Example
|popular1=Example
|popular1=Example
|popular2=Example
|popular2=Example
|popular3=Example
|percentage1=Example
|percentage1=Example
|percentage2=Example
|percentage2=Example
|percentage3=Example
|firstpreference1=Example
|firstpreference1=Example
|firstpreference2=Example
|firstpreference2=Example
|firstpreference3=Example
|finalcount1=Example
|finalcount1=Example
|finalcount2=Example
|finalcount2=Example
|finalcount3=Example
|firstround1=Example
|firstround1=Example
|firstround2=Example
|firstround2=Example
|firstround3=Example
|secondround1=Example
|secondround1=Example
|secondround2=Example
|secondround2=Example
|runoff=Example
|secondround3=Example
|runoff1=Example
|runoff2=Example
|runoff3=Example
|map_image=Example
|map_image=Example
|map_caption=Example
|map_caption=Example

Revision as of 06:10, 1 August 2023

{{{title1}}}
'
Turnout
{{{image1}}} {{{image2}}} {{{image3}}}
Candidate {{{name1}}}
Political party
Alliance
'
Hometown
Running mate
Electoral vote
s carried
Popular vote
Percentage
1st preference
Final count
First round
Second round
Runoff
{{{map_image}}}
{{{Office_name}}} before
{{{old}}}
{{{Office_name}}} 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
|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
}}