Template:Infobox election/row: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
undoing revisions that broke template Tag: Manual revert |
||
| (15 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
{{#if:{{{divider|}}}|{{#if:{{{party1|}}}{{{color1|}}}{{{leader1|}}}{{{party2|}}}{{{color2|}}}{{{leader2|}}}{{{party3|}}}{{{color3|}}}{{{leader3|}}}|{{!}} colspan=4 {{! | {{#if:{{{divider|}}}|{{#if:{{{party1|}}}{{{color1|}}}{{{leader1|}}}{{{party2|}}}{{{color2|}}}{{{leader2|}}}{{{party3|}}}{{{color3|}}}{{{leader3|}}}|{{!}} colspan=4 {{!}} }} }} | ||
|- style="display:none" | |- style="display:none" | ||
{{#ifeq:{{{ongoing|}}}|yes||{{#switch:{{{type|}}} | {{#ifeq:{{{ongoing|}}}|yes||{{#switch:{{{type|}}} | ||
| Line 10: | Line 10: | ||
! style="text-align:center" {{!}} {{#if:{{{party1|}}}| {{{header1|}}} }} | ! style="text-align:center" {{!}} {{#if:{{{party1|}}}| {{{header1|}}} }} | ||
! style="text-align:center" {{!}} {{#if:{{{party2|}}}| {{{header2|}}} }} | ! style="text-align:center" {{!}} {{#if:{{{party2|}}}| {{{header2|}}} }} | ||
}} | }} | ||
| #default = | | #default = | ||
| Line 17: | Line 16: | ||
{{#if:{{{party1|}}}{{{color1|}}}{{{image1|}}}{{{party2|}}}{{{color2|}}}{{{image2|}}}{{{party3|}}}{{{color3|}}}{{{image3|}}}|<!-- Images --> | {{#if:{{{party1|}}}{{{color1|}}}{{{image1|}}}{{{party2|}}}{{{color2|}}}{{{image2|}}}{{{party3|}}}{{{color3|}}}{{{image3|}}}|<!-- Images --> | ||
{{!}} | {{!}} | ||
{{!}} style="text-align:center;{{#if:{{{party1|}}}{{{color1|}}}||width:0;}}{{#if:{{{color1|}}}|border-bottom: 6px solid #{{{color1}}}|{{#ifeq: {{{party_color}}} | {{!}} style="text-align:center;{{#if:{{{party1|}}}{{{color1|}}}||width:0;}}{{#if:{{{color1|}}}|border-bottom: 6px solid #{{{color1}}}|{{#ifeq: {{{party_color}}}||{{#if:{{{party1|}}}|{{#ifexist:Template:{{{party1}}}/meta/color|border-bottom: 6px solid {{Template:{{{party1}}}/meta/color}} }}}}}}}}" {{!}} {{{image1|}}} | ||
{{!}} style="text-align:center;{{#if:{{{party2|}}}{{{color2|}}}||width:0;}}{{#if:{{{color2|}}}|border-bottom: 6px solid #{{{color2}}}|{{#ifeq: {{{party_color}}} | {{!}} style="text-align:center;{{#if:{{{party2|}}}{{{color2|}}}||width:0;}}{{#if:{{{color2|}}}|border-bottom: 6px solid #{{{color2}}}|{{#ifeq: {{{party_color}}}||{{#if:{{{party2|}}}|{{#ifexist: Template:{{{party2}}}/meta/color|border-bottom: 6px solid {{Template:{{{party2}}}/meta/color}} }}}}}}}}"{{!}} {{{image2|}}}}} | ||
{{#if:{{{col3|}}}|{{!}} style="text-align:center;{{#if:{{{party3|}}}{{{color3|}}}||width:0;}}{{#if:{{{color3|}}}|border-bottom: 6px solid #{{{color3}}}|{{#ifeq: {{{party_color}}} | {{#if:{{{col3|}}}|{{!}} style="text-align:center;{{#if:{{{party3|}}}{{{color3|}}}||width:0;}}{{#if:{{{color3|}}}|border-bottom: 6px solid #{{{color3}}}|{{#ifeq: {{{party_color}}}||{{#if:{{{party3|}}}|{{#ifexist: Template:{{{party3}}}/meta/color|border-bottom: 6px solid {{Template:{{{party3}}}/meta/color}} }}}}}}}}"{{!}} {{{image3|}}} | ||
}} | }} | ||
|- | |- | ||
| Line 546: | Line 545: | ||
{{documentation|content= | {{documentation|content= | ||
This is a subtemplate of [[template:infobox election]] used to generate the candidate block rows. It should not be used directly. | This is a subtemplate of [[template:infobox election]] used to generate the candidate block rows. It should not be used directly. | ||
}}</noinclude> | }}</noinclude><noinclude>[[Category: Infobox templates]][[Category: Politics templates]]</noinclude> | ||
Latest revision as of 16:09, 5 January 2024
This is a subtemplate of template:infobox election used to generate the candidate block rows. It should not be used directly.
| Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |