Template:Infobox Election template 1: Difference between revisions

From RoPlay
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em;  {{#if:{{{portraitOfLeader2|}}}{{{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"
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em;width:350px;min-width:350px; background: border-collapse:collapse; border:1px solid #A2A9B1; font-size:smaller; line-height:1.5" {{#if:{{{portraitOfLeader2|}}}{{{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>
{| border="0" cellpadding="1" 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="3" style="text-align:center; color:#FFFFFF; background:#212121; font-size:160%;" |{{{name|<font color="white">{{{title1|{{PAGENAME}}}}}</font>}}}
! colspan="3" style="text-align:center; background:#e9e9e9;" | <font style="font-size:200%;">{{{title1}}}</font>
|- style="text-align:center;"
|- style="text-align:center;"
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
|-
|-
! 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="3" style="{{#if:{{{hideb|}}}|display: none;| |}}{{#if:{{{flag|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;padding-bottom:1px;"  |
|-
|-
! 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|}}}
! 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|}}}
Line 14: Line 14:
! 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="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;"  |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#e9e9e9;"  |
|-
|-
! 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|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
Line 23: Line 23:
| colspan="1" style="text-align:center;{{#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;" |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{turnout|}}}{{{needed|}}}{{{seatsup|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;" |
|-
|-
|}
|}
Line 35: Line 35:
!
!
!
!
|- style = "background-color:#212121;"
|- style = "background-color:#e9e9e9;"
! colspan="1" style="width:auto;float:left;background:#212121;text-align:left; {{#if:{{{name1|}}}}}" |<font color="white">Leader</font>
! colspan="1" style="color: #000000; width:auto;float:left;background:#e9e9e9;text-align:left; {{#if:{{{name1|}}}}}" |<font>Leader</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="color: #000000; text-align:center;background:#e9e9e9; {{#if:{{{name1|}}}}}{{#if:{{{name3|}}}|width:26%;|width:39%;}}{{#if:{{{name2|}}}| |width:78%;}}" class="infoboxcell" valign="top" |<font>{{{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="color: #000000; text-align:center;background:#e9e9e9; {{#if:{{{name2|}}}}}{{#if:{{{name2|}}}| |display:none;}}{{#if:{{{name3|}}}|width:26%;|width:39%;}}" class="infoboxcell" valign="top" |<font>{{{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>
| colspan="1" style="color: #000000; width:26%;text-align:center;background:#e9e9e9; {{#if:{{{name3|}}}| |display:none;}}" class="infoboxcell" valign="top" |<font>{{{name3}}}</font>
|-
|-
! style="width:auto;border: dashed red 0px;float:left;text-align:left;{{#if:{{{party1|}}}| |display:none;}}" valign="top" |'''Party'''
! style="width:auto;border: dashed red 0px;float:left;text-align:left;{{#if:{{{party1|}}}| |display:none;}}" valign="top" |'''Party'''
Line 94: Line 94:
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
|-
|-
! 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:#e9e9e9;" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
|-
Line 104: Line 104:
|- 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:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}{{#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:#e9e9e9;" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|}
|}
Line 115: Line 115:
|}
|}
<noinclude>
<noinclude>
{{ElectionTemplate
{{Infobox Election template 1
|title1=Example Election
|title1=Example Election
|flag=[[File:Kangaraland Flag.png|230px]]
|flag=[[File:Falkland Islands.png|230px|border]]
|dateofelection=01/01/2020
|dateofelection=01/01/2020
|seatsup=Seats: 20 Parliment
|seatsup=Seats: 20 Parliment
|needed=Needed for Majority: 15
|needed=Needed for Majority: 15
|turnout=43.2%
|turnout=43.2%
|portraitOfLeader1=[[File: Starmeh President .png|170px]]
|portraitOfLeader1=[[File:Example portrait.png|170px]]
|portraitOfLeader2=[[File: Starmeh President .png|170px]]
|portraitOfLeader2=[[File:Example portrait.png|170px]]
|portraitOfLeader3=[[File:Example portrait.png|170px]]
|portraitOfLeader4=[[File:Example portrait.png|170px]]
|color1=#238b45
|color1=#238b45
|color2=#edbb8a
|color2=#edbb8a
Line 148: Line 150:
|swing1=50%
|swing1=50%
|swing2=25.50%
|swing2=25.50%
|map_image=[[File: Image 2024-01-23 064936475.png|150px]]
|map_image=[[File:Example election map.png|150px]]
|map_caption=Map of Results (ENTIRELY OPTIONAL, can just be map of region if you want.)
|map_caption=Map of Results (ENTIRELY OPTIONAL, can just be map of region if you want.)
|officer=Name of head of body
|officer=Name of head of body
Line 156: Line 158:
|next=Link To Next Election
|next=Link To Next Election
}}'''The Election Template''' is used to display election results of a pass vote. Can be used in many ways. There are additional election templates if this one does not fit your style.
}}'''The Election Template''' is used to display election results of a pass vote. Can be used in many ways. There are additional election templates if this one does not fit your style.
'''This template is mostly aimed for elections where there is a clear winner and runner-up, you can use this for more than 2 however the template only supports 2 parties on the infobox.'''
__TOC__
__TOC__
==Inputs Used==
==Inputs Used==
<pre>
<pre>
{{ElectionTemplate
{{Infobox Election template 1
|title1=Example Election
|title1=Example Election
|flag=[[File:Kangaraland Flag.png|230px]]
|flag=[[File:Kangaraland Flag.png|230px]]
Line 192: Line 196:
|swing1=50%
|swing1=50%
|swing2=25.50%
|swing2=25.50%
|map_image=[[File: Image 2024-01-23 064936475.png|150px]]
|map_image=[[File:Example election map.png|150px]]
|map_caption=Map of Results (ENTIRELY OPTIONAL, can just be map of region if you want.)
|map_caption=Map of Results (ENTIRELY OPTIONAL, can just be map of region if you want.)
|officer=Name of head of body
|officer=Name of head of body
Line 216: Line 220:
Colours, must be, hex colours. Here is a link to a [https://g.co/kgs/2GG5U2N Hex Colour Picker]. When adding a colour add the # before it, i.e #fffff or #fcba03
Colours, must be, hex colours. Here is a link to a [https://g.co/kgs/2GG5U2N Hex Colour Picker]. When adding a colour add the # before it, i.e #fffff or #fcba03
[[Category: Templates]]
[[Category: Templates]]
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 18:33, 22 September 2024

{{{title1}}}
'
Turnout
{{{portraitOfLeader1}}} {{{portraitOfLeader2}}} {{{image3}}}
Leader {{{name1}}}
Party
Alliance
Leader since
Leader's seat
Last election
Seats won
Seat change
Popular vote
Percentage
Swing
{{{map_image}}}
{{{officer}}} before
{{{officer}}} after
Example Election
← Link To Previous Election 01/01/2020 Link To Next Election →
Seats: 20 Parliment
Needed for Majority: 15
Turnout 43.2%
Leader Leader of Faction with Most Seats Leader of Faction with Second-Most Seats
Party Faction with Most Seats Faction with Second-Most Seats
Alliance If alliances, put here If alliances, put here
Leader since When Leader took office When Leader took office
Leader's seat Player Name (optionally a link to them) Player Name (optionally a link to them)
Last election 10 seats, 50% 5 seats, 25%
Seats won 12 4
Seat change 2 -1
Popular vote 50 25
Percentage 50% 25.50%
Swing 50% 25.50%
Map of Results (ENTIRELY OPTIONAL, can just be map of region if you want.)
Name of head of body before
Old head of body
Name of head of body after
New head of body

The Election Template is used to display election results of a pass vote. Can be used in many ways. There are additional election templates if this one does not fit your style.

This template is mostly aimed for elections where there is a clear winner and runner-up, you can use this for more than 2 however the template only supports 2 parties on the infobox.

Inputs Used

{{Infobox Election template 1
|title1=Example Election
|flag=[[File:Kangaraland Flag.png|230px]]
|dateofelection=01/01/2020
|seatsup=Seats: 20 Parliment
|needed=Needed for Majority: 15
|turnout=43.2%
|portraitOfLeader1=[[File: Starmeh President .png|170px]]
|portraitOfLeader2=[[File: Starmeh President .png|170px]]
|color1=#238b45
|color2=#edbb8a
|name1=Leader of Faction with Most Seats
|name2=Leader of Faction with Second-Most Seats
|party1=Faction with Most Seats
|party2=Faction with Second-Most Seats
|alliance1=If alliances, put here
|alliance2=If alliances, put here
|leadersince1=When Leader took office
|leadersince2=When Leader took office
|leaderseat1=Player Name (optionally a link to them)
|leaderseat2=Player Name (optionally a link to them)
|lastelection1=10 seats, 50%
|lastelection2=5 seats, 25%
|seatswon1=12
|seatswon2=4
|seatchange1=2
|seatchange2=-1
|popular1=50
|popular2=25
|percentage1=50%
|percentage2=25.50%
|swing1=50%
|swing2=25.50%
|map_image=[[File:Example election map.png|150px]]
|map_caption=Map of Results (ENTIRELY OPTIONAL, can just be map of region if you want.)
|officer=Name of head of body
|old=Old head of body
|new=New head of body
|previous=Link To Previous Election
|next=Link To Next Election
}}

Most these things are not requirements

More than 2 candidates

The 2 candidates on display are the most successful and 2nd most, you may use this for more than 2 candidates.

Optional stuff

  • swing
  • popular
  • seatchange
  • lastelection
  • alliance
  • needed
  • leadersince

These are not required, stuff like turnout, percentage, portraits all are.

Colours

Colours, must be, hex colours. Here is a link to a Hex Colour Picker. When adding a colour add the # before it, i.e #fffff or #fcba03