Templat:Infobox legislative election: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Pierrewee (bicara | kontrib)
Tidak ada ringkasan suntingan
Sandandstones (bicara | kontrib)
kTidak ada ringkasan suntingan
 
(4 revisi perantara oleh 2 pengguna tidak ditampilkan)
Baris 182:
| seats = {{{seats15|}}}
| seats_before = {{{seats15_before|}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party16|}}}|! {{Infobox legislative election/row
| party = {{{party16|}}}
| party_leader = {{{party_leader16|}}}
| colour = {{If empty|{{{colour16|}}}|{{{color16|}}}}}
| percentage = {{{percentage16|}}}
| seats = {{{seats16|}}}
| seats_before = {{{seats16_before|}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
}}}}
| {{#if:{{{party17|}}}|! {{Infobox legislative election/row
| party = {{{party17|}}}
| party_leader = {{{party_leader17|}}}
| colour = {{If empty|{{{colour17|}}}|{{{color17|}}}}}
| percentage = {{{percentage17|}}}
| seats = {{{seats17|}}}
| seats_before = {{{seats17_before|}}}
| ongoing = {{{ongoing|}}}
| first_election = {{{first_election|}}}
Baris 196 ⟶ 216:
{{#if:{{{before_election|}}}{{{after_election|}}}|<table style="width: 100%; border-spacing: 0;">
<tr>
<th {{#if:{{{before_image|}}}|colspan="2"}} scope="col" style="width:50%; text-align:left;">{{#if:{{{before_election|}}}|{{#ifeq:{{{ongoing|}}}|yes|Petahana {{{title}}}|{{{title}}} sebelumnya}}}}</th>
<th {{#if:{{{after_image|}}}|colspan="2"}} scope="col" style="width:50%; text-align:right;">{{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{after_election|}}}|{{If empty|{{{posttitle|}}}|{{Delink|1={{{title}}}}} sesudahnya}}}}}}</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="text-align:left; width: 50%;">{{{before_election|}}}{{#if:{{{before_party|}}}|<br />{{Infobox election/shortname|name={{{before_party}}}}}}}</td>
<td style="text-align:right; width: 50%;">{{#ifeq:{{{ongoing|}}}|yes||{{#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>}}