Template:Infobox referendum: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(Undo revision 22244 by Asmo (talk))
Tag: Undo
(test1)
 
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
| bodystyle = width:24em
| bodystyle = background:#ffffff; border-collapse:collapse; {{#switch: {{{float}}}
| headerstyle = background:#efefef;
| left = margin: 0.5em 1em 0.5em 0; float:left; clear:left;

| none = float:none; clear:none; margin:0.5em 0.5em 0.5em 0
| title = {{{name|}}}
| right

| #default =
| subheader1 = {{#if:{{{flag_image|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}<hr />
|{{#if:{{{country|}}}
|{{flagdeco|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}}<hr />
}}
}}
}}
| abovestyle = background-color:#eeeeee; font-size:135%; border-bottom: #aaa 1px solid; padding:0.25em;
| above = {{{name|}}}
| headerstyle = background-color:#ccc;
| subheaderstyle = padding:0.2em
| subheader = {{{title|}}}


| subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}|
| datastyle = padding:0.2em
{{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%;
| left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}}
| center = {{#if:{{{date|}}}|'''{{{date}}}'''}}
| right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}}
}}<hr />
}}

| subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=#FEFEFE|border color=#A2A9B1|border size=2px|width=24em}}}}

| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}
| imagestyle = border-bottom: 1px solid #CCC
| imagestyle = border-bottom: 1px solid #A2A9B1


| label1 = Location
| label1 = Location
| class1 = location
| data1 = {{{location|}}}
| data1 = {{{location|}}}


| label2 = Date
| label2 = Voting system
| data2 = {{{date|}}}
| data2 = {{{voting_system|}}}


| label3 = {{#if:{{{votes_counted|}}}|Votes&nbsp;counted|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}}
| label3 = Voting system
| data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#689AC4|width=125}}}} {{#if:{{{last_update|}}}|<small>'''as of {{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''</small>}}
| data3 = {{{voting_system|}}}


|label4 = Outcome
| data4 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }}
|data4 = {{{outcome|}}}

|label5 = Website
|data5 = {{{website|}}}

|header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Results}}

| data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }}
}}
}}


| data5 = {{#if:{{{map|}}}|{{Infobox referendum/map
| data8 = {{#if:{{{map|}}}|<hr />{{#if:{{{map|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=260px|alt={{{map_alt|}}}}}
|map = {{{map}}}
|{{{map}}}
|map_header = Results by {{#if:{{{mapdivision|}}} | {{{mapdivision}}} | county }}
}}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div>
|map_caption = {{{mapcaption|}}}
}}
|detailed_legend = {{{detailed_legend|}}}
|legend_yes={{{legend_yes|#24B14C}}}
|legend_no={{{legend_no|#DF0A24}}}
|yes_text = {{{yes_text|Yes}}}
|no_text = {{{no_text|No}}}
}}}}


| data6 = {{#if:{{{map2|}}}|{{Infobox referendum/map
| data9 = {{#if:{{{map2|}}}|<hr />{{#if:{{{map2|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}}
|map = {{{map2}}}
|{{{map2}}}
|map_header = Results by {{#if:{{{mapdivision2|}}} | {{{mapdivision2}}} | county }}
}}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div>
|map_caption = {{{mapcaption2|}}}
}}
|detailed_legend = {{{detailed_legend2|}}}
|legend_yes={{{legend_yes2|#24B14C}}}
|legend_no={{{legend_no2|#DF0A24}}}
|yes_text = {{{yes_text2|Yes}}}
|no_text = {{{no_text2|No}}}
}}}}


| header7 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}}
| header10 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}}
| data8 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box
| data11 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box
| border_width = 0
| border_width = 0
| background-color = transparent
| background-color = transparent
| width = {{{width|240px}}}
| width = {{{width|300px}}}
| barwidth = {{{barwidth|60px}}}
| barwidth = {{{barwidth|80px}}}
| bars=
| bars=
{{bar percent|barwidth={{{barwidth|60px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color|green}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}}
{{bar percent|barwidth={{{barwidth|60px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color|green}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}}
Line 67: Line 73:
}}|}}
}}|}}


| header9 = {{{part2_subject|}}}
| header12 = {{{part2_subject|}}}
| data10 = {{#if:{{{part2_subject|}}}|{{bar box
| data13 = {{#if:{{{part2_subject|}}}|{{bar box
| border_width = 0
| border_width = 0
| background-color = transparent
| background-color = transparent
| width = {{{width|240px}}}
| width = {{{width|300px}}}
| barwidth = {{{barwidth|60px}}}
| barwidth = {{{barwidth|80px}}}
| bars=
| bars=
{{bar percent|barwidth={{{barwidth|60px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|green}}}|{{{part2_percentage1|}}}}}
{{bar percent|barwidth={{{barwidth|60px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|green}}}|{{{part2_percentage1|}}}}}
Line 82: Line 88:
}}|}}
}}|}}


| header11 = {{{part3_subject|}}}
| header14 = {{{part3_subject|}}}
| data12 = {{#if:{{{part3_subject|}}}|{{bar box
| data15 = {{#if:{{{part3_subject|}}}|{{bar box
| border_width = 0
| border_width = 0
| background-color = transparent
| background-color = transparent
| width = {{{width|240px}}}
| width = {{{width|300px}}}
| barwidth = {{{barwidth|60px}}}
| barwidth = {{{barwidth|80px}}}
| bars=
| bars=
{{bar percent|barwidth={{{barwidth|60px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color|green}}}|{{{part3_percentage1|}}}}}
{{bar percent|barwidth={{{barwidth|60px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color|green}}}|{{{part3_percentage1|}}}}}
Line 97: Line 103:
}}|}}
}}|}}


| header13 = {{{part4_subject|}}}
| header16 = {{{part4_subject|}}}
| data14 = {{#if:{{{part4_subject|}}}|{{bar box
| data17 = {{#if:{{{part4_subject|}}}|{{bar box
| border_width = 0
| border_width = 0
| background-color = transparent
| background-color = transparent
| width = {{{width|240px}}}
| width = {{{width|300px}}}
| barwidth = {{{barwidth|60px}}}
| barwidth = {{{barwidth|80px}}}
| bars=
| bars=
{{bar percent|barwidth={{{barwidth|60px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color|green}}}|{{{part4_percentage1|}}}}}
{{bar percent|barwidth={{{barwidth|60px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color|green}}}|{{{part4_percentage1|}}}}}
Line 112: Line 118:
}}|}}
}}|}}


| belowstyle = text-align:left; background:#fafafa; border-top: #aaa 1px solid; padding:0.2em;
|label15 = Outcome
| below = {{#if:{{{notes|}}}|<small>{{{notes}}}</small>}}
|data15 = {{{outcome|}}}


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| name | country | title | flag_year | flag_image | date | previous_year | previous_referendum | next_year | next_referendum | question | image | image_width | image_alt | caption | location | voting_system | votes_counted | last_update | time_zone | outcome | website | yes_text | yes | no_text | no | blanktype | blank | othertype | other | invalid | total | totalref | electorate | voter_registration | turnoutpct | map | map_size | map_alt | mapdivision | map_division | map_caption | map2 | map_size2 | map_alt2 | mapdivision2 | map_division2 | mapcaption2 | width | barwidth | part1_subject | part1_choice1 | part1_percentage1 | part1_color1 | part1_choice2 | part1_percentage2 | part1_color2 | part1_choice3 | part1_percentage3 | part1_color3 | part1_choice4 | part1_percentage4 | part1_color4 | part1_choice5 | part1_percentage5 | part1_color5 | part1_caption | part2_subject | part2_choice1 | part2_percentage1 | part2_color1 | part2_choice2 | part2_percentage2 | part2_color2 | part2_choice3 | part2_percentage3 | part2_color3 | part2_choice4 | part2_prcentage4 | part2_color4 | part2_choice5 | part2_percentage5 | part2_color5 | part2_caption | notes }}</includeonly><noinclude>
| belowstyle = text-align:left; background:#fafafa; border-top: #aaa 1px solid; padding:0.2em;
{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
| below = {{br separated entries
| 1 = {{#if:{{{website|}}}|'''Website''': {{{website}}}}}
| 2 = {{{notes|}}}
}}
}}</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 06:23, 18 July 2021