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
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; 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"
|-
! colspan="3" style="text-align:center; background:#e9e9e9; font-size:160%;" |{{{name|<font>{{{title1|{{PAGENAME}}}}}</font>}}}
|- style="text-align:center;"
! 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="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:{{{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;| |}} {{#if:{{{seatsup|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{seatsup|}}}
|-
! colspan="3" style="{{#if:{{{hideb|}}}|display: none;| |}} {{#if:{{{needed|}}}|}} text-align:center; font-weight:normal; color:#000000; background:;" |{{{needed|}}}
|-
! 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%;"
|-
! Party !! Leader !! % !! Seats !! +/–
|- style = "{{#if:{{{party1|}}}{{{name1|}}}{{{percentage1|}}}{{{seatswon1|}}}{{{seatchange1|}}}| |display:none;}} border-left: 4px solid {{{color1|}}}"
| yes1 || yes2 || yes3 || yes4 || yes5
|}
|}
{| 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>
Line 8: Line 63:
Example usage:<pre>
Example usage:<pre>
{{Infobox referendum
{{Infobox referendum
|yes=1500
|yes_percentage=50%
|no=1500
|no_percentage=50%
}}
}}
</pre>
</pre>

Revision as of 18:16, 22 September 2024

Infobox referendum
Turnout
Party Leader % Seats +/–
yes1 yes2 yes3 yes4 yes5
{{{map_image}}}
{{{officer}}} before
{{{old}}}
{{{officer}}} after
{{{new}}}

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
Turnout
Party Leader % Seats +/–
yes1 yes2 yes3 yes4 yes5
{{{officer}}} before
{{{old}}}
{{{officer}}} after
{{{new}}}

Example usage:

{{Infobox referendum
|yes=1500
|yes_percentage=50%
|no=1500
|no_percentage=50%
}}