Template:Presidential Election: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
| style="{{#if:{{{province2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province2|}}}
| style="{{#if:{{{province2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{province2|}}}
|-
|-
| style="{{#if:{{{town1|}}}" valign="top" |'''Town'''
| style="{{#if:{{{town1|}}}| |display:none;}}" valign="top" |'''Town'''
| style="{{#if:{{{town1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town1|}}}
| style="{{#if:{{{town1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town1|}}}
| style="{{#if:{{{town2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town2|}}}
| style="{{#if:{{{town2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{town2|}}}
|-
|-
| style="{{#if:{{{electoral1|}}}" valign="top" |'''Electoral vote'''
| style="{{#if:{{{electoral1|}}}| |display:none;}}" valign="top" |'''Electoral vote'''
| style="{{#if:{{{electoral1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral1|}}}
| style="{{#if:{{{electoral1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral1|}}}
| style="{{#if:{{{electoral2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral2|}}}
| style="{{#if:{{{electoral2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{electoral2|}}}
|-
|-
| style="{{#if:{{{subdivisionscarried1|}}}" valign="top" |'''{{{subdivision_name|}}}s carried'''
| style="{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" valign="top" |'''{{{subdivision_name|}}}s carried'''
| style="{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried1|}}}
| style="{{#if:{{{subdivisionscarried1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried1|}}}
| style="{{#if:{{{subdivisionscarried2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried2|}}}
| style="{{#if:{{{subdivisionscarried2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{subdivisionscarried2|}}}
|-
|-
| style="{{#if:{{{popular1|}}}" valign="top" |'''Popular vote'''
| style="{{#if:{{{popular1|}}}| |display:none;}}" valign="top" |'''Popular vote'''
| style="{{#if:{{{popular1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular1|}}}
| style="{{#if:{{{popular1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular1|}}}
| style="{{#if:{{{popular2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular2|}}}
| style="{{#if:{{{popular2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{popular2|}}}
|-
|-
| style="{{#if:{{{percentage1|}}}" valign="top" |'''Percentage'''
| style="{{#if:{{{percentage1|}}}| |display:none;}}" valign="top" |'''Percentage'''
| style="{{#if:{{{percentage1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage1|}}}
| style="{{#if:{{{percentage1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage1|}}}
| style="{{#if:{{{percentage2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage2|}}}
| style="{{#if:{{{percentage2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{percentage2|}}}
|-
|-
| style="{{#if:{{{firstpreference1|}}}" valign="top" |'''1st Preference'''
| style="{{#if:{{{firstpreference1|}}}| |display:none;}}" valign="top" |'''1st Preference'''
| style="{{#if:{{{firstpreference1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference1|}}}
| style="{{#if:{{{firstpreference1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference1|}}}
| style="{{#if:{{{firstpreference2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference2|}}}
| style="{{#if:{{{firstpreference2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstpreference2|}}}
|-
|-
| style="{{#if:{{{finalcount1|}}}" valign="top" |'''Final count'''
| style="{{#if:{{{finalcount1|}}}| |display:none;}}" valign="top" |'''Final count'''
| style="{{#if:{{{finalcount1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount1|}}}
| style="{{#if:{{{finalcount1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount1|}}}
| style="{{#if:{{{finalcount2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount2|}}}
| style="{{#if:{{{finalcount2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{finalcount2|}}}
|-
|-
| style="{{#if:{{{firstround1|}}}" valign="top" |'''First round'''
| style="{{#if:{{{firstround1|}}}| |display:none;}}" valign="top" |'''First round'''
| style="{{#if:{{{firstround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround1|}}}
| style="{{#if:{{{firstround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround1|}}}
| style="{{#if:{{{firstround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround2|}}}
| style="{{#if:{{{firstround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{firstround2|}}}
|-
|-
| style="{{#if:{{{secondround1|}}}" valign="top" |'''Second round'''
| style="{{#if:{{{secondround1|}}}| |display:none;}}" valign="top" |'''Second round'''
| style="{{#if:{{{secondround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround1|}}}
| style="{{#if:{{{secondround1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround1|}}}
| style="{{#if:{{{secondround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround2|}}}
| style="{{#if:{{{secondround2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{secondround2|}}}
|-
|-
| style="{{#if:{{{runoff1|}}}" valign="top" |'''Runoff'''
| style="{{#if:{{{runoff1|}}}| |display:none;}}" valign="top" |'''Runoff'''
| style="{{#if:{{{runoff1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff1|}}}
| style="{{#if:{{{runoff1|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff1|}}}
| style="{{#if:{{{runoff2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff2|}}}
| style="{{#if:{{{runoff2|}}}| |display:none;}}" class="infoboxcell" valign="top" |{{{runoff2|}}}

Revision as of 04:07, 18 September 2022

{{{title1}}}
{{{dateofelection}}}
{{{image1}}} {{{image2}}}
Candidate {{{name1}}} {{{name2}}}
Running mate
'
Town
Electoral vote
s carried
Popular vote
Percentage
1st Preference
Final count
First round
Second round
Runoff
{{{map_image}}}
Previous Elected
{{{old}}} {{{new}}}
Last election Next election
{{{previous}}} {{{next}}}


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
|dateofelection=Example
|image1=Example
|image2=Example
|name1=Example
|name2=Example
|mate1=Example
|mate2=Example
|subdivision_name=Example
|province1=Example
|province2=Example
|town1=Example
|town2=Example
|electoral1=Example
|electoral2=Example
|subdivisionscarried1=Example
|subdivisionscarried2=Example
|popular1=Example
|popular2=Example
|percentage1=Example
|percentage2=Example
|firstpreference1=Example
|firstpreference2=Example
|finalcount1=Example
|finalcount2=Example
|firstround1=Example
|firstround2=Example
|secondround1=Example
|secondround2=Example
|runoff=Example
|map_image=Example
|map_caption=Example
|old=Example
|new=Example
|Office_name=Example
|previous=Example
|next=Example
}}