Template:Infobox General Assembly election: Difference between revisions

From TLAwiki
Content added Content deleted
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 32: Line 32:
{{(!}} class="wikitable" style="width: 100%; margin:0;"
{{(!}} class="wikitable" style="width: 100%; margin:0;"
{{!-}} class="nowrap"
{{!-}} class="nowrap"
! Candidate
! Party
! Leader
! Votes
! Status
{{#switch:{{{ongoing|}}}|counting|yes=
{{#ifeq:{{{first_election|}}}|yes||! {{#ifeq:{{{ongoing|}}}|counting|Seats before|Current seats}}}}
|#default=
! <abbr title="Percentage vote share">%</abbr>
! Seats
{{#ifeq:{{{first_election|}}}|yes||! <abbr title="Seat difference">±</abbr>}}
}}
}}
{{!-}}
{{!-}}
{{Alternating rows table section|es=background: #f2f2f2;
{{Alternating rows table section|es=background: #f2f2f2;
|! {{Infobox legislative election/row
|! {{Infobox General Assembly election/row
| heading = {{{heading1|}}}
| heading = {{{heading1|}}}
| party = {{{party1|}}}
| candidate = {{{candidate1|}}}
| party_leader = {{If empty|{{{party_leader1|}}}|{{{leader1|}}}}}
| votes = {{{votes1|}}}
| colour = {{If empty|{{{colour1|}}}|{{{color1|}}}}}
| status = {{{status1|}}}
| percentage = {{{percentage1|}}}
| seats = {{{seats1|}}}
| seats_before = {{If empty|{{{seats1_before|}}}|{{{last_election1|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}
}}
| {{#if:{{{party2|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate2|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading2|}}}
| heading = {{{heading2|}}}
| party = {{{party2|}}}
| candidate = {{{candidate2|}}}
| party_leader = {{If empty|{{{party_leader2|}}}|{{{leader2|}}}}}
| votes = {{{votes2|}}}
| colour = {{If empty|{{{colour2|}}}|{{{color2|}}}}}
| status = {{{status2|}}}
| percentage = {{{percentage2|}}}
| seats = {{{seats2|}}}
| seats_before = {{If empty|{{{seats2_before|}}}|{{{last_election2|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party3|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate3|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading3|}}}
| heading = {{{heading3|}}}
| party = {{{party3|}}}
| candidate = {{{candidate3|}}}
| party_leader = {{If empty|{{{party_leader3|}}}|{{{leader3|}}}}}
| votes = {{{votes3|}}}
| colour = {{If empty|{{{colour3|}}}|{{{color3|}}}}}
| status = {{{status3|}}}
| percentage = {{{percentage3|}}}
| seats = {{{seats3|}}}
| seats_before = {{If empty|{{{seats3_before|}}}|{{{last_election3|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party4|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate4|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading4|}}}
| heading = {{{heading4|}}}
| party = {{{party4|}}}
| candidate = {{{candidate4|}}}
| party_leader = {{If empty|{{{party_leader4|}}}|{{{leader4|}}}}}
| votes = {{{votes4|}}}
| colour = {{If empty|{{{colour4|}}}|{{{color4|}}}}}
| status = {{{status4|}}}
| percentage = {{{percentage4|}}}
| seats = {{{seats4|}}}
| seats_before = {{If empty|{{{seats4_before|}}}|{{{last_election4|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party5|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate5|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading5|}}}
| heading = {{{heading5|}}}
| party = {{{party5|}}}
| candidate = {{{candidate5|}}}
| party_leader = {{If empty|{{{party_leader5|}}}|{{{leader5|}}}}}
| votes = {{{votes5|}}}
| colour = {{If empty|{{{colour5|}}}|{{{color5|}}}}}
| status = {{{status5|}}}
| percentage = {{{percentage5|}}}
| seats = {{{seats5|}}}
| seats_before = {{If empty|{{{seats5_before|}}}|{{{last_election5|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party6|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate6|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading6|}}}
| heading = {{{heading6|}}}
| party = {{{party6|}}}
| candidate = {{{candidate6|}}}
| party_leader = {{If empty|{{{party_leader6|}}}|{{{leader6|}}}}}
| votes = {{{votes6|}}}
| colour = {{If empty|{{{colour6|}}}|{{{color6|}}}}}
| status = {{{status6|}}}
| percentage = {{{percentage6|}}}
| seats = {{{seats6|}}}
| seats_before = {{If empty|{{{seats6_before|}}}|{{{last_election6|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party7|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate7|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading7|}}}
| heading = {{{heading7|}}}
| party = {{{party7|}}}
| candidate = {{{candidate7|}}}
| party_leader = {{If empty|{{{party_leader7|}}}|{{{leader7|}}}}}
| votes = {{{votes7|}}}
| colour = {{If empty|{{{colour7|}}}|{{{color7|}}}}}
| status = {{{status7|}}}
| percentage = {{{percentage7|}}}
| seats = {{{seats7|}}}
| seats_before = {{If empty|{{{seats7_before|}}}|{{{last_election7|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party8|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate8|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading8|}}}
| heading = {{{heading8|}}}
| party = {{{party8|}}}
| candidate = {{{candidate8|}}}
| party_leader = {{If empty|{{{party_leader8|}}}|{{{leader8|}}}}}
| votes = {{{votes8|}}}
| colour = {{If empty|{{{colour8|}}}|{{{color8|}}}}}
| status = {{{status8|}}}
| percentage = {{{percentage8|}}}
| seats = {{{seats8|}}}
| seats_before = {{If empty|{{{seats8_before|}}}|{{{last_election8|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party9|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate9|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading9|}}}
| heading = {{{heading9|}}}
| party = {{{party9|}}}
| candidate = {{{candidate9|}}}
| party_leader = {{If empty|{{{party_leader9|}}}|{{{leader9|}}}}}
| votes = {{{votes9|}}}
| colour = {{If empty|{{{colour9|}}}|{{{color9|}}}}}
| status = {{{status9|}}}
| percentage = {{{percentage9|}}}
| seats = {{{seats9|}}}
| seats_before = {{If empty|{{{seats9_before|}}}|{{{last_election9|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party10|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate10|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading10|}}}
| heading = {{{heading10|}}}
| party = {{{party10|}}}
| candidate = {{{candidate10|}}}
| party_leader = {{If empty|{{{party_leader10|}}}|{{{leader10|}}}}}
| votes = {{{votes10|}}}
| colour = {{If empty|{{{colour10|}}}|{{{color10|}}}}}
| status = {{{status10|}}}
| percentage = {{{percentage10|}}}
| seats = {{{seats10|}}}
| seats_before = {{If empty|{{{seats10_before|}}}|{{{last_election10|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party11|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate11|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading11|}}}
| heading = {{{heading11|}}}
| party = {{{party11|}}}
| candidate = {{{candidate11|}}}
| party_leader = {{If empty|{{{party_leader11|}}}|{{{leader11|}}}}}
| votes = {{{votes11|}}}
| colour = {{If empty|{{{colour11|}}}|{{{color11|}}}}}
| status = {{{status11|}}}
| percentage = {{{percentage11|}}}
| seats = {{{seats11|}}}
| seats_before = {{If empty|{{{seats11_before|}}}|{{{last_election11|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party12|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate12|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading12|}}}
| heading = {{{heading12|}}}
| party = {{{party12|}}}
| candidate = {{{candidate12|}}}
| party_leader = {{If empty|{{{party_leader12|}}}|{{{leader12|}}}}}
| votes = {{{votes12|}}}
| colour = {{If empty|{{{colour12|}}}|{{{color12|}}}}}
| status = {{{status12|}}}
| percentage = {{{percentage12|}}}
| seats = {{{seats12|}}}
| seats_before = {{If empty|{{{seats12_before|}}}|{{{last_election12|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party13|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate13|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading13|}}}
| heading = {{{heading13|}}}
| party = {{{party13|}}}
| candidate = {{{candidate13|}}}
| party_leader = {{If empty|{{{party_leader13|}}}|{{{leader13|}}}}}
| votes = {{{votes13|}}}
| colour = {{If empty|{{{colour13|}}}|{{{color13|}}}}}
| status = {{{status13|}}}
| percentage = {{{percentage13|}}}
| seats = {{{seats13|}}}
| seats_before = {{If empty|{{{seats13_before|}}}|{{{last_election13|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party14|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate14|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading14|}}}
| heading = {{{heading14|}}}
| party = {{{party14|}}}
| candidate = {{{candidate14|}}}
| party_leader = {{If empty|{{{party_leader14|}}}|{{{leader14|}}}}}
| votes = {{{votes14|}}}
| colour = {{If empty|{{{colour14|}}}|{{{color14|}}}}}
| status = {{{status14|}}}
| percentage = {{{percentage14|}}}
| seats = {{{seats14|}}}
| seats_before = {{If empty|{{{seats14_before|}}}|{{{last_election14|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
| {{#if:{{{party15|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate15|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading15|}}}
| heading = {{{heading15|}}}
| party = {{{party15|}}}
| candidate = {{{candidate15|}}}
| party_leader = {{If empty|{{{party_leader15|}}}|{{{leader15|}}}}}
| votes = {{{votes15|}}}
| colour = {{If empty|{{{colour15|}}}|{{{color15|}}}}}
| status = {{{status15|}}}
| percentage = {{{percentage15|}}}
| seats = {{{seats15|}}}
| seats_before = {{If empty|{{{seats15_before|}}}|{{{last_election15|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party16|}}}|! {{Infobox legislative election/row
| heading = {{{heading16|}}}
| party = {{{party16|}}}
| party_leader = {{If empty|{{{party_leader16|}}}|{{{leader16|}}}}}
| colour = {{If empty|{{{colour16|}}}|{{{color16|}}}}}
| percentage = {{{percentage16|}}}
| seats = {{{seats16|}}}
| seats_before = {{If empty|{{{seats16_before|}}}|{{{last_election16|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party17|}}}|! {{Infobox legislative election/row
| heading = {{{heading17|}}}
| party = {{{party17|}}}
| party_leader = {{If empty|{{{party_leader17|}}}|{{{leader17|}}}}}
| colour = {{If empty|{{{colour17|}}}|{{{color17|}}}}}
| percentage = {{{percentage17|}}}
| seats = {{{seats17|}}}
| seats_before = {{If empty|{{{seats17_before|}}}|{{{last_election17|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party18|}}}|! {{Infobox legislative election/row
| heading = {{{heading18|}}}
| party = {{{party18|}}}
| party_leader = {{If empty|{{{party_leader18|}}}|{{{leader18|}}}}}
| colour = {{If empty|{{{colour18|}}}|{{{color18|}}}}}
| percentage = {{{percentage18|}}}
| seats = {{{seats18|}}}
| seats_before = {{If empty|{{{seats18_before|}}}|{{{last_election18|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party19|}}}|! {{Infobox legislative election/row
| heading = {{{heading19|}}}
| party = {{{party19|}}}
| party_leader = {{If empty|{{{party_leader19|}}}|{{{leader19|}}}}}
| colour = {{If empty|{{{colour19|}}}|{{{color19|}}}}}
| percentage = {{{percentage19|}}}
| seats = {{{seats19|}}}
| seats_before = {{If empty|{{{seats19_before|}}}|{{{last_election19|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party20|}}}|! {{Infobox legislative election/row
| heading = {{{heading20|}}}
| party = {{{party20|}}}
| party_leader = {{If empty|{{{party_leader20|}}}|{{{leader20|}}}}}
| colour = {{If empty|{{{colour20|}}}|{{{color20|}}}}}
| percentage = {{{percentage20|}}}
| seats = {{{seats20|}}}
| seats_before = {{If empty|{{{seats20_before|}}}|{{{last_election20|}}}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
}}}}
}}
}}
{{!)}}
{{!)}}
}}
<div class="nowrap" style="width:100%;font-style: italic; padding:0.3em;">{{#switch:{{{ongoing|}}}|counting|yes=|#default=This lists candidates that were elected. See the complete results [[#{{{results_sec|Results#General Assembly}}}|below]].}}</div><!--
</includeonly><noinclude>
-->{{infobox|child=yes
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|upright={{#if:{{{map_upright|}}}|{{{map_upright}}}|1.3}}|alt={{{map_alt|}}}}}
| imagestyle = border-top:1px #aaa solid; padding:0.3em 0.5em;
| caption = {{{map_caption|}}}
| belowstyle = border-top:1px #aaa solid; padding: 0.3em 0.5em;
| below =
{{#if:{{{before_election|}}}{{{after_election|}}}|<table style="width: 100%; border-spacing: 0;">
<tr>
<th {{#if:{{{before_image|}}}|colspan="2"}} scope="col" style="width:50%;">{{#if:{{{before_election|}}}|{{#switch:{{{ongoing|}}}|counting|yes=Incumbent {{{title}}}|#default={{{title}}} before}}}}</th>
<th {{#if:{{{after_image|}}}|colspan="2"}} scope="col" style="width:50%; text-align:right;">{{#switch:{{{ongoing|}}}|counting|yes=|#default={{#if:{{{after_election|}}}|{{If empty|{{{posttitle|}}}|{{Delink|1={{{title}}}}} after}}}}}}</th>
</tr>
<tr>{{#if:{{{before_image|}}}|
<td style="padding-right: 3px;">{{#invoke:InfoboxImage|InfoboxImage|image={{{before_image|}}}|size={{{before_image_size|}}}|sizedefault=x65px}}</td>}}
<td style="width: 50%;">{{{before_election|}}}{{#if:{{{before_party|}}}|<br />{{Infobox election/shortname|name={{{before_party}}}}}}}</td>
<td style="text-align:right; width: 50%;">{{#switch:{{{ongoing|}}}|counting|yes=|#default={{#if:{{{after_election|}}}|{{{after_election}}}{{#if:{{{after_party|}}}|<br />{{Infobox election/shortname|name={{{after_party}}}}}}}}}}}</td>{{#if:{{{after_image|}}}|
<td style="padding-left: 3px;">{{#invoke:InfoboxImage|InfoboxImage|image={{{after_image|}}}|size={{{after_image_size|}}}|sizedefault=x65px}}</td>}}
</tr>
</table>}} }}
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 13:20, 14 June 2021

Template documentation[create]