Difference between revisions of "Template:Infobox election/old"
Jump to navigation
Jump to search
imported>Frietjes (saving for comparison) |
imported>Jonesey95 m (Fix invalid self-closed HTML tag or other HTML Tidy-related tag error) |
||
| 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%;text-align:left;" class="noprint" {{!}}{{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}} ←<br | + | {{!}}style="width:25%;text-align:left;" class="noprint" {{!}}{{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}} ←<br/>}}{{#ifexist:{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|[[{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|members]]{{#if:{{{previous_year|}}}|| ←}}}} |
| − | />}}{{#ifexist:{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|[[{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|members]]{{#if:{{{previous_year|}}}|| ←}}}} | ||
{{!}}style="width:50%;text-align:center;" {{!}}{{#if:{{{election_date|}}}|'''{{{election_date}}}'''}}{{#if:{{{elected_mps|}}}|<div class="noprint">{{{elected_mps}}}</div>}} | {{!}}style="width:50%;text-align:center;" {{!}}{{#if:{{{election_date|}}}|'''{{{election_date}}}'''}}{{#if:{{{elected_mps|}}}|<div class="noprint">{{{elected_mps}}}</div>}} | ||
| − | {{!}}style="width:25%;text-align:right;" class="noprint" {{!}}{{#if:{{{next_year|}}}|→ {{#ifexist:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}<br | + | {{!}}style="width:25%;text-align:right;" class="noprint" {{!}}{{#if:{{{next_year|}}}|→ {{#ifexist:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}<br/>}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→ }}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}} |
| − | />}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→ }}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}} | ||
{{!}}} | {{!}}} | ||
{{!-}} | {{!-}} | ||
Revision as of 18:50, 30 January 2017
| 40x40px | This is an old version of {{infobox election}}, created to test differences after a major code update. This old version suffers from data alignment problems when a particular data item is not specified for all candidates. For an illustration of the differences, please see the testcases. |