Template:Referendum: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Created page with "{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:{{{width|370px}}}; background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5" |- |<div> {| 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-si...")
 
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 22: Line 22:
|}
|}
|-
|-
! 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:{{{question|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" |
|-
|-
|}
|}
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="text-align:center; border:1px;border-collapse:collapse;"
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="text-align:center; border:1px;border-collapse:collapse;"
|
|-
| colspan="1" style="width:33%;{{#if:{{{ongoing|}}}||display:none;}}" | '''Completion rate'''
| colspan="2" style="width:67%;{{#if:{{{ongoing|}}}||display:none;}}" |{{#if:{{{ongoing|}}}|{{PercentageBox|#1BCE0E|{{#expr: ({{#time: U|{{CurrentTime}} }} - {{#time: U|{{{start_timestamp}}} }}) / ({{#time: U|{{{end_timestamp}}} }} - {{#time: U|{{{start_timestamp}}} }}) * 100 round 2 }}%}}|}}<br>as of '''{{CURRENTTIME}} GMT'''
|-
| colspan="3" style="{{#if:{{{resulttable|}}}||display:none;}}" |
{{{resulttable|}}}
| colspan="3" style="{{#if:{{{resulttable|}}}|display:none;|}}" |  
{| class="wikitable" style="margin-left: auto; margin-right: auto;width:99%;"
{| class="wikitable" style="margin-left: auto; margin-right: auto;width:99%;"
|-
|-
! Choice !! Votes !! %  
! Choice !! Votes !! %  
|- style = "{{#if:{{{choice1|}}}{{{votes1|}}}{{{percentage1|}}}| |display:none;}} border-left: 4px solid {{{color1|}}}"
|- style = "{{#if:{{{choice1|}}}{{{votes1|}}}{{{percentage1|}}}| |display:none;}} border-left: 4px solid {{{color1|#54CC47}}}"
| style="text-align:left;" | {{{choice1|}}} || {{{votes1|}}} || {{{percentage1|}}}
| style="text-align:left;" | {{{choice1|}}} || style="text-align:right;" | {{{votes1|}}} || style="text-align:right;" | {{{percentage1|{{#iferror: {{#expr: ({{{votes1|}}} / {{{totalvotes|}}}) * 100 round 2}} }}%}}}
|- style = "{{#if:{{{choice2|}}}{{{votes2|}}}{{{percentage2|}}}| |display:none;}} border-left: 4px solid {{{color2|#4780CC}}}"
| style="text-align:left;" | {{{choice2|}}} || style="text-align:right;" | {{{votes2|}}} || style="text-align:right;" | {{{percentage2|{{#iferror: {{#expr: ({{{votes2|}}} / {{{totalvotes|}}}) * 100 round 2}} }}%}}}
|- style = "{{#if:{{{choice3|}}}{{{votes3|}}}{{{percentage3|}}}| |display:none;}} border-left: 4px solid {{{color3|#FFFF00}}}"
| style="text-align:left;" | {{{choice3|}}} || style="text-align:right;" | {{{votes3|}}} || style="text-align:right;" | {{{percentage3|{{#iferror: {{#expr: ({{{votes3|}}} / {{{totalvotes|}}}) * 100 round 2}} }}%}}}
|- style = "{{#if:{{{choice4|}}}{{{votes4|}}}{{{percentage4|}}}| |display:none;}} border-left: 4px solid {{{color4|#FFA100}}}"
| style="text-align:left;" | {{{choice4|}}} || style="text-align:right;" | {{{votes4|}}} || style="text-align:right;" | {{{percentage4|{{#iferror: {{#expr: ({{{votes4|}}} / {{{totalvotes|}}}) * 100 round 2}} }}%}}}
|- style = "{{#if:{{{choice5|}}}{{{votes5|}}}{{{percentage5|}}}| |display:none;}} border-left: 4px solid {{{color5|#FF2D2D}}}"
| style="text-align:left;" | {{{choice5|}}} || style="text-align:right;" | {{{votes5|}}} || style="text-align:right;" | {{{percentage5|{{#iferror: {{#expr: ({{{votes5|}}} / {{{totalvotes|}}}) * 100 round 2}} }}%}}}
|- style = "{{#if:{{{totalvotes|}}}| |display:none;}}"
| style="background:#EEEEEE;text-align:left;" | '''Total votes''' || style="background:#EEEEEE;text-align:right;" | {{{totalvotes|}}} || style="background:#EEEEEE;text-align:right;" | {{{totalvotespercentage|100%}}}
|- style = "{{#if:{{{voters|}}}{{{turnout|}}}| |display:none;}}"
| style="background:#EEEEEE;text-align:left;" | Registered voters/turnout || style="background:#EEEEEE;text-align:right;" | {{{voters|}}} || style="background:#EEEEEE;text-align:right;" |{{{turnout|{{#iferror: {{#expr: ({{{totalvotes|}}} / {{{voters|}}}) * 100 round 2}} }}%}}}
|}
|}
|}
|}
Line 45: Line 63:
| colspan="3" style="{{#if:{{{map_caption|}}}| }}" class="infoboxcell" valign="top" align="middle" |{{{map_caption|}}}
| 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;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
! colspan="3" style="{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}{{#if:{{{old|}}}{{{new|}}}| |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; {{#if:{{{new|}}}{{{old|}}}|display:none;|}};"
|}
{| align="center" border="0" cellpadding="5" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
|-
| colspan="1" style="{{#if:{{{old|}}}||display:none;}};"  valign="top" align="left" |'''{{{officer}}} before'''<br>{{{old}}}
| colspan="1" style="{{#if:{{{new|}}}||display:none;}};" valign="top" align="right" |'''{{{officer}}} after'''<br>{{{new}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
! 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|}}}
|}
|}
|}
|}
<includeonly>[[Category:Referendums (Aurora)]]</includeonly>
<includeonly>[[Category:Referendums (Aurora)]]</includeonly>
<noinclude>
<noinclude>
Example usage:<pre>
{{Referendum
{{Referendum
|color=black
|color=orange
|title1=3023 Turkish parliamentary election
|title1=3023 Turkish referendum
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|dateofelection=14 May 3023
|dateofelection=14 May 3023
|question=why?
|question=why?
|turnout=30.10%


|color1=blue
|start_timestamp = 2023-09-07T12:54:07
|choice1=GG Party
|end_timestamp = 2023-09-09T12:54:07
|votes1=Jeff
|ongoing = yes
|percentage1=35.61%
 
|totalvotes=100
|voters=200
 
|color1=green
|choice1=Yes1
|votes1=33


|map_image=[[File:Turkeymap.jpg|360px]]
|color2=blue
|map_caption=Map Caption
|choice2=Yes2
|officer=Speaker of the Assembly
|votes2=37
|old=Example1
|new=Example2
|previous=3022
|next=3024
}}
Example usage:<pre>
{{Referendum
|color=black
|title1=3023 Turkish parliamentary election
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|dateofelection=14 May 3023
|question=why?
|turnout=30.10%


|color1=blue
|color3=red
|choice1=GG Party
|choice3=No
|votes1=Jeff
|votes3=30
|percentage1=35.61%


|map_image=[[File:Turkeymap.jpg|360px]]
|map_image=[[File:Turkeymap.jpg|360px]]
|map_caption=Map Caption
|map_caption=Map Caption
|officer=Speaker of the Assembly
|old=Example1
|new=Example2
|previous=3022
|next=3024
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 16:56, 13 February 2024

Referendum
Completion rate
as of 23:21 GMT
Choice Votes %
%
%
%
%
%
Total votes 100%
Registered voters/turnout %
{{{map_image}}}


Example usage:

{{Referendum
|color=orange
|title1=3023 Turkish referendum
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|dateofelection=14 May 3023
|question=why?

|start_timestamp = 2023-09-07T12:54:07
|end_timestamp = 2023-09-09T12:54:07
|ongoing = yes

|totalvotes=100
|voters=200

|color1=green
|choice1=Yes1
|votes1=33

|color2=blue
|choice2=Yes2
|votes2=37

|color3=red
|choice3=No
|votes3=30

|map_image=[[File:Turkeymap.jpg|360px]]
|map_caption=Map Caption
}}