Template:Infobox elections: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
(Undo revision 312418 by Kemal HagemaruFRP (talk)) Tag: Undo |
||
(6 intermediate revisions by one other user not shown) | |||
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|}}}|{{# | {{!}}style="width: 25%;" align="left" {{!}}{{#if:{{{previous_year|}}}|{{#if:{{{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%;" 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|}}}|→ {{# | {{!}}style="width: 25%;" align="right" {{!}}{{#if:{{{next_year|}}}|→ {{#if:{{{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]]}} | ||
|} | |} | ||
Line 1,025: | Line 1,025: | ||
{{#if:{{{party7|}}}| | {{#if:{{{party7|}}}| | ||
! align="left" {{!}} }} | ! align="left" {{!}} }} | ||
{{#if:{{{party7|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{ | {{#if:{{{party7|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{party3|}}}|Seventh party|Fifth party}} }} }} | ||
{{#if:{{{party8|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{ | {{#if:{{{party8|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{party3|}}}|Eighth party|Sixth party}} }} }} | ||
{{#if:{{{party9|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||Ninth party}} }} | {{#if:{{{party9|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||Ninth party}} }} | ||
| #default = | | #default = | ||
Line 1,073: | Line 1,073: | ||
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{party_name|}}}| no={{#if:{{{party7|}}}|{{{party7}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party7}}}|[[{{{party7}}}|{{Template: {{{party7}}}/meta/shortname}}]]}} }} }} | {{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{party_name|}}}| no={{#if:{{{party7|}}}|{{{party7}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party7}}}|[[{{{party7}}}|{{Template: {{{party7}}}/meta/shortname}}]]}} }} }} | ||
{{#if:{{{party8|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{party_name|}}}| no={{#if:{{{party8|}}}|{{{party8}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party8}}}|[[{{{party8}}}|{{Template: {{{party8}}}/meta/shortname}}]]}} }} }} | {{#if:{{{party8|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{party_name|}}}| no={{#if:{{{party8|}}}|{{{party8}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party8}}}|[[{{{party8}}}|{{Template: {{{party8}}}/meta/shortname}}]]}} }} }} | ||
{{#if:{{{party9|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{party_name|}}}| no={{#if:{{{party9|}}}|{{{party9}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party9}}}|[[{{{party9}}}|{{Template: {{{ | {{#if:{{{party9|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{party_name|}}}| no={{#if:{{{party9|}}}|{{{party9}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party9}}}|[[{{{party9}}}|{{Template: {{{party9}}}/meta/shortname}}]]}} }} }} | ||
|- | |- | ||
{{#if:{{{alliance7|}}}|<!-- Alliance name 4, 5, 6 --> | {{#if:{{{alliance7|}}}|<!-- Alliance name 4, 5, 6 --> |
Latest revision as of 00:10, 6 January 2024
[create] Template documentation
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |