Template:Referendum: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 42: Line 42:
| 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}} }}%}}}

Revision as of 18:34, 7 September 2023

Referendum
Choice Votes %
%
%
%
%
%
Total votes 100%
Registered voters/turnout %
{{{map_image}}}


3023 Turkish referendum
Adsadsdsdasasdsdads.png
14 May 3023
why?
Choice Votes %
Yes1 33 33%
Yes2 37 37%
No 30 30%
%
%
Total votes 100 100%
Registered voters/turnout 200 50%
Turkeymap.jpg
Map Caption

Example usage:

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

|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
}}