Template:Infobox elections: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Undo revision 312235 by Kemal HagemaruFRP (talk))
No edit summary
Line 6: Line 6:
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 {{!}}
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 {{!}}
{| cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
{| cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
{{!}}style="width: 25%;" align="left" {{!}}{{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}}&nbsp;←<br
{{!}}style="width: 25%;" align="left" {{!}}{{#if:{{{previous_year|}}}|{{#if:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}}&nbsp;←<br
/>}}{{#ifexist:{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|[[{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|members]]{{#if:{{{previous_year|}}}||&nbsp;←}}}}
/>}}{{#ifexist:{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|[[{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|members]]{{#if:{{{previous_year|}}}||&nbsp;←}}}}
{{!}}style="width: 50%;" align="center" {{!}}{{#if:{{{election_date|}}}|'''{{{election_date}}}'''<br />}}{{#if:{{{elected_mps|}}}|{{{elected_mps}}}}}
{{!}}style="width: 50%;" align="center" {{!}}{{#if:{{{election_date|}}}|'''{{{election_date}}}'''<br />}}{{#if:{{{elected_mps|}}}|{{{elected_mps}}}}}
{{!}}style="width: 25%;" align="right" {{!}}{{#if:{{{next_year|}}}|→&nbsp;{{#ifexist:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}<br
{{!}}style="width: 25%;" align="right" {{!}}{{#if:{{{next_year|}}}|→&nbsp;{{#if:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}<br
/>}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→&nbsp;}}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}}
/>}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→&nbsp;}}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}}
|}
|}

Revision as of 13:18, 4 January 2024

[create] Template documentation