Template:Infobox referendum: Difference between revisions

From RoPlay
Jump to navigation Jump to search
No edit summary
No edit summary
 
(65 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em;width:350px;min-width:350px; background: border-collapse:collapse; border:1px solid #A2A9B1; font-size:smaller; line-height:1.5"
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em;width:350px;min-width:350px; background: border-collapse:collapse; font-size:smaller; line-height:1.5"
! <font style="text-align:center; font-size:130%;">{{{name|{{PAGENAME}}}}}</font>
|-
|-
{| cellspacing="1" cellpadding="1" style="background-color: #F8F9FA; float:right; clear:right; margin: 0 0 .5em 1em;width:350px;min-width:350px; background: border-collapse:collapse; border:1px solid #A2A9B1; font-size:smaller; line-height:1.5"
|<div>
|<div>
{| border="0" cellpadding="1" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
{| border="0" cellpadding="1" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
|-
! colspan="3" style="text-align:center; background:#e9e9e9; font-size:160%;" |{{{name|<font>{{{title1|{{PAGENAME}}}}}</font>}}}
|- style="text-align:center;"
|- style="text-align:center;"
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}}{{#if:{{{flag|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;padding-bottom:1px;"  |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#bbbdc0; height: 0.1px;"  |
|-
|-
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:left; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{#if:{{{previous|}}}|← {{{previous|}}}|}}
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{date|}}}| |display:none;}} text-align:center;font-weight:normal;color:#000000;line-height:130%;width:34%;padding-top:8px;padding-bottom:8px; background:;"|{{#if:{{{date|}}}|'''{{{date|}}}'''|}}
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:center;font-weight:normal;color:#000000;line-height:130%;width:34%;padding-top:10px;padding-bottom:10px; background:;"|{{#if:{{{dateofelection|}}}|'''{{{dateofelection|}}}'''|}}
! colspan="1" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} text-align:right; font-weight:normal; color:#000000; line-height:130%; width: 33%; background:;" |{{#if:{{{next|}}}|{{{next|}}} →|}}
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; {{#if:{{{previous|}}}{{{dateofelection|}}}{{{next|}}}| |display:none;}} color:#FFFFFF; background:#e9e9e9;"  |
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#bbbdc0; height: 0.1px;"  |
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{seatsup|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
|<div style="background-color: #FEFEFE; border: 2px solid #A2A9B1; padding: 15px 15px; margin-top: 3px; font-size: 14px">{{{question|}}}</div>
|-
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{needed|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{needed|}}}
! style="white-space:nowrap; background-color: #EFEFEF; margin-top: 5px; font-size: 14px" | '''Results'''
|-
|-
! style="width:text-align:left;5em;white-space:nowrap;{{#if:{{{turnout|}}}| |display:none;}}" | '''Turnout'''
! style="width:text-align:left;5em;white-space:nowrap;{{#if:{{{turnout|}}}| |display:none;}}" | '''Turnout'''
Line 30: Line 28:
{| class="wikitable" style="margin-left: auto; margin-right: auto;width:99%;"
{| class="wikitable" style="margin-left: auto; margin-right: auto;width:99%;"
|-
|-
! Choice !! Votes !! %
! '''Choice''' !! '''Votes''' !! '''%'''
|- style = "border-left: 4px solid {{{yes_colour|}}}"
|- style = "border-left: 4px solid {{{option_1_colour|#999}}}"
| [[File:Yes tick.png|14px]] '''Yes''' || {{{yes|}}} || {{{yes_percentage|}}}
| {{{option_1|}}} || {{{option_1_votes|}}} || {{{option_1_percentage|}}}
|- style = "border-left: 4px solid {{{no_colour|}}}"
|- style = "border-left: 4px solid {{{option_2_colour|#999}}}"
| [[File:No tick.png|14px]] '''No''' || {{{no|}}} || {{{no_percentage|}}}
| {{{option_2}}} || {{{option_2_votes|}}} || {{{option_2_percentage|}}}
 
|- style = "{{#if:{{{option_3|}}}|display: none;| |}} border-left: 4px solid {{{option_3_colour|#999}}}"
| {{{option_3|}}} || {{{option_3_votes|}}} || {{{option_3_percentage|}}}
|- style = "{{#if:{{{option_4|}}}|display: none;| |}} border-left: 4px solid {{{option_4_colour|#999}}}"
| {{{option_4|}}} || {{{option_4_votes|}}} || {{{option_4_percentage|}}}
 
|- style = "border-left: 4px solid #999; background-color: #EEEEEE;"
| Valid votes || {{{valid_votes|}}} || {{{valid_votes_percentage|}}}
|- style = "border-left: 4px solid #999; background-color: #EEEEEE;"
| Invalid or blank votes || {{{invalid_votes|}}} || {{{invalid_votes_percentage|}}}
|- style = "border-left: 4px solid #999; background-color: #EEEEEE;"
| '''Total votes''' || '''{{{total_votes|}}}''' || '''100%'''
|- style = "border-left: 4px solid #999; background-color: #EEEEEE;"
| Registered voters/turnout || {{{registered_voters_turnout|}}} || {{{registered_voters_turnout_percentage|}}}
|}
|}
|}
|}
Line 57: Line 69:
| colspan="1" style="{{#if:{{{new|}}}||display:none;}};" valign="top" align="right" |'''{{{officer}}} after'''<br>{{{new}}}
| colspan="1" style="{{#if:{{{new|}}}||display:none;}};" valign="top" align="right" |'''{{{officer}}} after'''<br>{{{new}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|}
|}
|}
|}
|}
<noinclude>
<noinclude>
For if the other election templates dont work. This one holds up to 12 parties! Can be used for mearly any election. Template is below with values shown here.
{{Infobox referendum
{{Infobox referendum
|name=Example referendum
|country=Link to country
|flag=[[File:Falkland Islands.png|border|60px]]
|date=10-13th March 2013
|question = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting
|option_1=[[File:Yes tick.png|14px]] '''Yes'''
|option_1_votes=1500
|option_1_percentage=50%
|option_1_colour=#23c
|option_2=[[File:No tick.png|14px]] '''No'''
|option_2_votes=1500
|option_2_percentage=50%
|option_2_colour=#c82
|option_3=Unsure
|option_3_votes=1500
|option_3_percentage=50%
|option_3_colour=#cdc
|valid_votes = 1,516
|valid_votes_percentage = 99.87%
|invalid_votes = 2
|invalid_votes_percentage =0.13%
|total_votes = 1,518
|registered_voters_turnout = 1650
|registered_voters_turnout_percentage = 92%
}}
}}
Example usage:<pre>
Example usage:<pre>
{{Infobox referendum
{{Infobox referendum
|yes=1500
|name=Example referendum
|yes_percentage=50%
|country=Link to country
|yes_colour=#23c
|flag=[[File:Falkland Islands.png|border|60px]]
|no=1500
|date=10-13th March 2013
|no_percentage=50%
|question = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting
|no_colour=#c82
 
|option_1=[[File:Yes tick.png|14px]] '''Yes'''
|option_1_votes=1500
|option_1_percentage=50%
|option_1_colour=#23c
 
|option_2=[[File:No tick.png|14px]] '''No'''
|option_2_votes=1500
|option_2_percentage=50%
|option_2_colour=#c82
 
|option_3=Unsure
|option_3_votes=1500
|option_3_percentage=50%
|option_3_colour=#cdc
 
|valid_votes = 1,516
|valid_votes_percentage = 99.87%
|invalid_votes = 2
|invalid_votes_percentage =0.13%
 
|total_votes = 1,518
|registered_voters_turnout = 1650
|registered_voters_turnout_percentage = 92%
}}
}}
</pre>
</pre>

Latest revision as of 20:47, 22 September 2024

Infobox referendum
Results
Turnout
Choice Votes %
{{{option_2}}}
Valid votes
Invalid or blank votes
Total votes ' 100%
Registered voters/turnout
{{{map_image}}}
{{{officer}}} before
{{{old}}}
{{{officer}}} after
{{{new}}}
Example referendum
10-13th March 2013
Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting
Results
Turnout
Choice Votes %
Yes 1500 50%
No 1500 50%
Unsure 1500 50%
Valid votes 1,516 99.87%
Invalid or blank votes 2 0.13%
Total votes 1,518 100%
Registered voters/turnout 1650 92%
{{{officer}}} before
{{{old}}}
{{{officer}}} after
{{{new}}}

Example usage:

{{Infobox referendum
|name=Example referendum
|country=Link to country
|flag=[[File:Falkland Islands.png|border|60px]]
|date=10-13th March 2013
|question = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting

|option_1=[[File:Yes tick.png|14px]] '''Yes'''
|option_1_votes=1500
|option_1_percentage=50%
|option_1_colour=#23c

|option_2=[[File:No tick.png|14px]] '''No'''
|option_2_votes=1500
|option_2_percentage=50%
|option_2_colour=#c82

|option_3=Unsure
|option_3_votes=1500
|option_3_percentage=50%
|option_3_colour=#cdc

|valid_votes = 1,516
|valid_votes_percentage = 99.87%
|invalid_votes = 2
|invalid_votes_percentage =0.13%

|total_votes = 1,518
|registered_voters_turnout = 1650
|registered_voters_turnout_percentage = 92%
}}