Difference between revisions of "Template:Infobox election/row"
Jump to navigation
Jump to search
imported>Frietjes (wrap) |
imported>Frietjes (avoid generating "border-bottom: 6px solid -;" when color is blank and party/meta/color template does not exist) |
||
| Line 17: | Line 17: | ||
{{#if:{{{party1|}}}{{{color1|}}}|<!-- Images --> | {{#if:{{{party1|}}}{{{color1|}}}|<!-- Images --> | ||
{{!}} | {{!}} | ||
| − | {{!}} style="text-align:center; | + | {{!}} style="text-align:center; {{#if:{{{color1|}}}|border-bottom: 6px solid #{{{color1}}}|{{#ifeq: {{{party_color}}}|no||{{#ifexist:Template:{{{party1|}}}/meta/color|border-bottom: 6px solid {{Template:{{{party1|}}}/meta/color}} }}}}}}" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|suppressplaceholder=yes}} |
| − | {{#if:{{{party2|}}}{{{color2|}}}|{{!}} style="text-align:center; | + | {{#if:{{{party2|}}}{{{color2|}}}|{{!}} style="text-align:center; {{#if:{{{color2|}}}|border-bottom: 6px solid #{{{color2}}}|{{#ifeq: {{{party_color}}}|no||{{#ifexist: Template:{{{party2|}}}/meta/color|border-bottom: 6px solid {{Template:{{{party2|}}}/meta/color}} }}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|suppressplaceholder=yes}} }} |
| − | {{#if:{{{party3|}}}{{{color3|}}}|{{!}} style="text-align:center; | + | {{#if:{{{party3|}}}{{{color3|}}}|{{!}} style="text-align:center; {{#if:{{{color3|}}}|border-bottom: 6px solid #{{{color3}}}|{{#ifeq: {{{party_color}}}|no||{{#ifexist: Template:{{{party3|}}}/meta/color|border-bottom: 6px solid {{Template:{{{party3|}}}/meta/color}} }}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|suppressplaceholder=yes}} }} |
}} | }} | ||
|- | |- | ||
Revision as of 00:25, 16 April 2015
File:Test Template Info-Icon - Version (2).svg Template documentation
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 (edit | diff) and testcases (create) pages. Subpages of this template. |