Template:Referendum: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
|- | |- | ||
| colspan="1" style="width:33%;{{#if:{{{ongoing|}}}||display:none;}}" | '''Completion rate''' | | 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 }}%}}|}} | | 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;}}" |{{{resulttable|}}} |
Revision as of 19:47, 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? |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 }}