Template:Infobox referendum: Difference between revisions

From RoPlay
Jump to navigation Jump to search
(Created page with "{| 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" |} <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 }} Example usage:<pre> {{Infobox referendum }} </pre> Categ...")
 
No edit summary
 
(76 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>
{| border="0" cellpadding="1" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
|- style="text-align:center;"
! colspan="3" style=" padding-top:4px;padding-bottom:4px;" | {{{flag|}}}
|-
! 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:{{{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="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#bbbdc0; height: 0.1px;"  |
|-
|<div style="background-color: #FEFEFE; border: 2px solid #A2A9B1; padding: 15px 15px; margin-top: 3px; font-size: 14px">{{{question|}}}</div>
|-
! 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'''
| colspan="1" style="text-align:center;{{#if:{{{turnout|}}}| |display:none;}}" |{{{turnout|}}}
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{turnout|}}}{{{needed|}}}{{{seatsup|}}}| |display:none;}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;" |
|-
|}
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="text-align:center; border:1px;border-collapse:collapse;"
|
{| class="wikitable" style="margin-left: auto; margin-right: auto;width:99%;"
|-
! '''Choice''' !! '''Votes''' !! '''%'''
|- style = "border-left: 4px solid {{{option_1_colour|#999}}}"
| {{{option_1|}}} || {{{option_1_votes|}}} || {{{option_1_percentage|}}}
|- style = "border-left: 4px solid {{{option_2_colour|#999}}}"
| {{{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|}}}
|}
|}
{| align="center" border="0" cellpadding="1" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
{{#if:{{{map_image<includeonly>|</includeonly>}}} |
{{!}} colspan="3" style="{{#if:{{{map_image|}}}| |display:none;}}text-align:center;background-color:#;" {{!}}{{{map_image}}}
}}
|-
| colspan="3" style="{{#if:{{{map_caption|}}}| }}" class="infoboxcell" valign="top" align="middle" |{{{map_caption|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
|-
! colspan="3" style="{{#if:{{{map_image|}}}{{{map_caption|}}}| |display:none;}}{{#if:{{{old|}}}{{{new|}}}| |display:none;}}{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#e9e9e9;" |
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999; {{#if:{{{new|}}}{{{old|}}}|display:none;|}};"
|}
{| align="center" border="0" cellpadding="5" cellspacing="1" width="100%" style="border-collapse:collapse; text-align:center; border:0px;"
|-
| colspan="1" style="{{#if:{{{old|}}}||display:none;}};"  valign="top" align="left" |'''{{{officer}}} before'''<br>{{{old}}}
| 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;"
|}
|}
|}
|}
<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
|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%
}}
}}
</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%
}}