Template:Referendum: Difference between revisions
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 17:34, 7 September 2023
| ||||||||||||||||
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
}}