Template:Infobox General Assembly election: Difference between revisions

From TLAwiki
Content added Content deleted
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 33: Line 33:
{{!-}} class="nowrap"
{{!-}} class="nowrap"
! Candidate
! Candidate
! Votes
{{#switch:{{{ongoing|}}}|counting|yes=
{{#ifeq:{{{first_election|}}}|yes||! {{#ifeq:{{{ongoing|}}}|counting|Seats before|Current seats}}}}
|#default=
! Vote
! Status
! Status
{{#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|}}}
| candidate = {{{candidate1|}}}
| candidate = {{{candidate1|}}}
| vote = {{{vote1|}}}
| votes = {{{votes1|}}}
| status = {{{status1|}}}
| status = {{{status1|}}}
}}
}}
| {{#if:{{{party2|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate2|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading2|}}}
| heading = {{{heading2|}}}
| candidate = {{{candidate2|}}}
| candidate = {{{candidate2|}}}
| vote = {{{vote2|}}}
| votes = {{{votes2|}}}
| status = {{{status2|}}}
| status = {{{status2|}}}
}}}}
}}}}
| {{#if:{{{party3|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate3|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading3|}}}
| heading = {{{heading3|}}}
| candidate = {{{candidate3|}}}
| candidate = {{{candidate3|}}}
| vote = {{{vote3|}}}
| votes = {{{votes3|}}}
| status = {{{status3|}}}
| status = {{{status3|}}}
}}}}
}}}}
| {{#if:{{{party4|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate4|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading4|}}}
| heading = {{{heading4|}}}
| candidate = {{{candidate4|}}}
| candidate = {{{candidate4|}}}
| vote = {{{vote4|}}}
| votes = {{{votes4|}}}
| status = {{{status4|}}}
| status = {{{status4|}}}
}}}}
}}}}
| {{#if:{{{party5|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate5|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading5|}}}
| heading = {{{heading5|}}}
| candidate = {{{candidate5|}}}
| candidate = {{{candidate5|}}}
| vote = {{{vote5|}}}
| votes = {{{votes5|}}}
| status = {{{status5|}}}
| status = {{{status5|}}}
}}}}
}}}}
| {{#if:{{{party6|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate6|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading6|}}}
| heading = {{{heading6|}}}
| candidate = {{{candidate6|}}}
| candidate = {{{candidate6|}}}
| vote = {{{vote6|}}}
| votes = {{{votes6|}}}
| status = {{{status6|}}}
| status = {{{status6|}}}
}}}}
}}}}
| {{#if:{{{party7|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate7|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading7|}}}
| heading = {{{heading7|}}}
| candidate = {{{candidate7|}}}
| candidate = {{{candidate7|}}}
| vote = {{{vote7|}}}
| votes = {{{votes7|}}}
| status = {{{status7|}}}
| status = {{{status7|}}}
}}}}
}}}}
| {{#if:{{{party8|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate8|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading8|}}}
| heading = {{{heading8|}}}
| candidate = {{{candidate8|}}}
| candidate = {{{candidate8|}}}
| vote = {{{vote8|}}}
| votes = {{{votes8|}}}
| status = {{{status8|}}}
| status = {{{status8|}}}
}}}}
}}}}
| {{#if:{{{party9|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate9|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading9|}}}
| heading = {{{heading9|}}}
| candidate = {{{candidate9|}}}
| candidate = {{{candidate9|}}}
| vote = {{{vote9|}}}
| votes = {{{votes9|}}}
| status = {{{status9|}}}
| status = {{{status9|}}}
}}}}
}}}}
| {{#if:{{{party10|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate10|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading10|}}}
| heading = {{{heading10|}}}
| candidate = {{{candidate10|}}}
| candidate = {{{candidate10|}}}
| vote = {{{vote10|}}}
| votes = {{{votes10|}}}
| status = {{{status10|}}}
| status = {{{status10|}}}
}}}}
}}}}
| {{#if:{{{party11|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate11|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading11|}}}
| heading = {{{heading11|}}}
| candidate = {{{candidate11|}}}
| candidate = {{{candidate11|}}}
| vote = {{{vote11|}}}
| votes = {{{votes11|}}}
| status = {{{status11|}}}
| status = {{{status11|}}}
}}}}
}}}}
| {{#if:{{{party12|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate12|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading12|}}}
| heading = {{{heading12|}}}
| candidate = {{{candidate12|}}}
| candidate = {{{candidate12|}}}
| vote = {{{vote12|}}}
| votes = {{{votes12|}}}
| status = {{{status12|}}}
| status = {{{status12|}}}
}}}}
}}}}
| {{#if:{{{party13|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate13|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading13|}}}
| heading = {{{heading13|}}}
| candidate = {{{candidate13|}}}
| candidate = {{{candidate13|}}}
| vote = {{{vote13|}}}
| votes = {{{votes13|}}}
| status = {{{status13|}}}
| status = {{{status13|}}}
}}}}
}}}}
| {{#if:{{{party14|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate14|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading14|}}}
| heading = {{{heading14|}}}
| candidate = {{{candidate14|}}}
| candidate = {{{candidate14|}}}
| vote = {{{vote14|}}}
| votes = {{{votes14|}}}
| status = {{{status14|}}}
| status = {{{status14|}}}
}}}}
}}}}
| {{#if:{{{party15|}}}|! {{Infobox legislative election/row
| {{#if:{{{candidate15|}}}|! {{Infobox General Assembly election/row
| heading = {{{heading15|}}}
| heading = {{{heading15|}}}
| candidate = {{{candidate15|}}}
| candidate = {{{candidate15|}}}
| vote = {{{vote15|}}}
| votes = {{{votes15|}}}
| status = {{{status15|}}}
| status = {{{status15|}}}
}}}}
}}}}
}}
}}
{{!)}} <!--
{{!)}}
}}
-->{{infobox|child=yes
</includeonly><noinclude>
| 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]