"ഫലകം:Infobox election" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

line breaks in table cells are bad a11y-wise; split seats to a new line. this means moving it out of the lavender header but that's unavoidable
avoid line break in table cell for map caption, make ongoing footer conditional
വരി 928:
| #default= }}
|-
{{#if: {{{map_image|}}} |
{{!}} colspan=5 style="text-align: center"{{!}} [[Image: {{{map_image}}}|{{#if: {{{map_size|}}} |{{{map_size}}}|300px}}|]]
{{PAGENAME!}}]]<br />-
<small>{{#if:{{{map_caption|}}}</small>|
{{!}} colspan=5 style="text-align: center" {{!}} <small>{{{map_caption|}}}</small>
{{!}}-
}}
}}
|-
{{!}}colspan=5{{!}}{{#switchif: {{{ongoing|}}} | yes= | no=
{{!}} colspan=5 {{!}} {{#switch: {{{ongoing}}}
<div width="50%" style="text-align: left; text-size: 80%;background-color: none; float: left">'''{{#if: {{{title|}}}|Incumbent {{{title}}}'''<br />{{{before_election}}}<br />{{#if: {{{before_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{before_party}}}|[[{{{before_party}}}|{{Template: {{{before_party}}}/meta/shortname}}]]}}}}}}</div>
| yes=
| no= <div width="50%" style="text-align: left; text-size: 80%;background-color: none; float: left">'''{{#if: {{{title|}}}|Incumbent {{{title}}}'''<br />{{{before_election}}}<br />{{#if: {{{before_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{before_party}}}|[[{{{before_party}}}|{{Template: {{{before_party}}}/meta/shortname}}]]}}}}}}</div>
<div width="50%" style="text-align: right; text-size: 80%;background-color: none; float: right">'''{{#if: {{{title|}}}|{{#if: {{{posttitle|}}}|{{{posttitle}}}|{{{title}}}-elect}}'''<br />{{#if: {{{after_election|}}}|{{{after_election}}}|}}<br />{{#if: {{{after_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{after_party}}}|[[{{{after_party}}}|{{Template: {{{after_party}}}/meta/shortname}}]]}}|}}}}</div>
}}
}}
|}<noinclude>{{doc}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
"https://ml.wikipedia.org/wiki/ഫലകം:Infobox_election" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്