Template:Referendum: Difference between revisions

From EarthMC
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 31: Line 31:
|-
|-
! 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|}}} || style="text-align:right;" | {{{votes1|}}} || style="text-align:right;" | {{{percentage1|}}}
| style="text-align:left;" | {{{choice1|}}} || style="text-align:right;" | {{{votes1|}}} || style="text-align:right;" | {{#expr: ({{{votes1|}}} / {{{totalvotes|}}}) * 100 round 2}}%
|- style = "{{#if:{{{choice2|}}}{{{votes2|}}}{{{percentage2|}}}| |display:none;}} border-left: 4px solid {{{color2|}}}"
|- 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|}}}
| style="text-align:left;" | {{{choice2|}}} || style="text-align:right;" | {{{votes2|}}} || style="text-align:right;" | {{#expr: ({{{votes2|}}} / {{{totalvotes|}}}) * 100 round 2}}%
|- style = "{{#if:{{{choice3|}}}{{{votes3|}}}{{{percentage3|}}}| |display:none;}} border-left: 4px solid {{{color3|}}}"
|- 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|}}}
| style="text-align:left;" | {{{choice3|}}} || style="text-align:right;" | {{{votes3|}}} || style="text-align:right;" | {{#expr: ({{{votes3|}}} / {{{totalvotes|}}}) * 100 round 2}}%
|- style = "{{#if:{{{choice4|}}}{{{votes4|}}}{{{percentage4|}}}| |display:none;}} border-left: 4px solid {{{color4|}}}"
|- 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|}}}
| style="text-align:left;" | {{{choice4|}}} || style="text-align:right;" | {{{votes4|}}} || style="text-align:right;" | {{#expr: ({{{votes4|}}} / {{{totalvotes|}}}) * 100 round 2}}%
|- style = "{{#if:{{{choice5|}}}{{{votes5|}}}{{{percentage5|}}}| |display:none;}} border-left: 4px solid {{{color5|}}}"
|- 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|}}}
| style="text-align:left;" | {{{choice5|}}} || style="text-align:right;" | {{{votes5|}}} || style="text-align:right;" | {{#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;" | 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|}}}
| style="background:#EEEEEE;text-align:left;" | Registered voters/turnout || style="background:#EEEEEE;text-align:right;" | {{{voters|}}} || style="background:#EEEEEE;text-align:right;" |{{{turnout|{{#expr: ({{{totalvotes|}}} / {{{voters|}}}) * 100 round 2}}%}}}
|}
|}
|}
|}
Line 63: Line 63:
<noinclude>
<noinclude>
{{Referendum
{{Referendum
|color=black
|color=orange
|title1=3023 Turkish referendum
|title1=3023 Turkish referendum
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
Line 71: Line 71:
|totalvotes=100
|totalvotes=100
|voters=200
|voters=200
|turnout=50.00%


|color1=green
|color1=green
|choice1=Yes1
|choice1=Yes1
|votes1=33
|votes1=33
|percentage1=33.00%


|color2=blue
|color2=blue
|choice2=Yes2
|choice2=Yes2
|votes2=37
|votes2=37
|percentage2=37.00%


|color3=red
|color3=red
|choice3=No
|choice3=No
|votes3=30
|votes3=30
|percentage3=30.00%


|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
}}
}}
Example usage:<pre>
Example usage:<pre>
{{Referendum
{{Referendum
|color=black
|color=orange
|title1=3023 Turkish referendum
|title1=3023 Turkish referendum
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
|flag=[[File:Adsadsdsdasasdsdads.png|50px|link=Aurora:Turkey]]
Line 106: Line 97:
|totalvotes=100
|totalvotes=100
|voters=200
|voters=200
|turnout=50.00%


|color1=green
|color1=green
|choice1=Yes1
|choice1=Yes1
|votes1=33
|votes1=33
|percentage1=33.00%


|color2=blue
|color2=blue
|choice2=Yes2
|choice2=Yes2
|votes2=37
|votes2=37
|percentage2=37.00%


|color3=red
|color3=red
|choice3=No
|choice3=No
|votes3=30
|votes3=30
|percentage3=30.00%


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

Revision as of 13:03, 6 September 2023

Referendum
Choice Votes %
Expression error: Unexpected / operator.%
Expression error: Unexpected / operator.%
Expression error: Unexpected / operator.%
Expression error: Unexpected / operator.%
Expression error: Unexpected / operator.%
Total votes 100%
Registered voters/turnout Expression error: Unexpected / operator.%
{{{map_image}}}


3023 Turkish referendum
Adsadsdsdasasdsdads.png
14 May 3023
why?
Choice Votes %
Yes1 33 33%
Yes2 37 37%
No 30 30%
Expression error: Unexpected / operator.%
Expression error: Unexpected / operator.%
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
}}