Template:Infobox General Assembly election: Difference between revisions

From TLAwiki
Content added Content deleted
No edit summary
No edit summary
Line 132: Line 132:
}}}}
}}}}
}}
}}
{{!)}} <!--
{{!)}}
</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>

Revision as of 13:04, 14 June 2021

Template documentation[create]