Template:Referendum: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 26: Line 26:
|}
|}
{| 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;"
| style="{{#if:{{{resulttable|}}}||display:none;}}" |{{{resulttable|}}}
|-
| style="{{#if:{{{resulttable|}}}|display:none;|}}" |  
| 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%;"
|-
|-
Line 42: Line 47:
| style="text-align:left;" | {{{choice5|}}} || style="text-align:right;" | {{{votes5|}}} || style="text-align:right;" | {{{percentage5|{{#iferror: {{#expr: ({{{votes5|}}} / {{{totalvotes|}}}) * 100 round 2}} }}%}}}
| 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 = "{{#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;" | 100%
| 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 = "{{#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}} }}%}}}
| 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 62: Line 67:
<includeonly>[[Category:Referendums (Aurora)]]</includeonly>
<includeonly>[[Category:Referendums (Aurora)]]</includeonly>
<noinclude>
<noinclude>
Example usage:<pre>
{{Referendum
{{Referendum
|color=orange
|color=orange
Line 69: Line 75:
|question=why?
|question=why?


|totalvotes=100
|start_timestamp = 2023-09-07T12:54:07
|voters=200
|end_timestamp = 2023-09-09T12:54:07
 
|ongoing = yes
|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
}}
Example usage:<pre>
{{Referendum
|color=orange
|title1=3023 Turkish referendum
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|dateofelection=14 May 3023
|question=why?


|totalvotes=100
|totalvotes=100

Latest revision as of 16:56, 13 February 2024

Referendum
Completion rate
as of 07:18 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
}}