Template:Infobox election/row: Difference between revisions
Jump to navigation
Jump to search
w>Matt Fitzpatrick m (accessibility - blank "filler" should not be a table header) |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
{{!}} | {{!}} | ||
}} | }} | ||
{{!}} style="text-align:center;{{#if:{{{party1|}}}{{{color1|}}}||width:0;}}{{#if:{{{color1|}}}|border-bottom: 6px solid #{{{color1}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party1|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party1}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party1}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}" {{!}} {{ | {{!}} style="text-align:center;{{#if:{{{party1|}}}{{{color1|}}}||width:0;}}{{#if:{{{color1|}}}|border-bottom: 6px solid #{{{color1}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party1|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party1}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party1}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}" {{!}} {{Avatar|{{{image1}}}|100}} | ||
{{!}} style="text-align:center;{{#if:{{{party2|}}}{{{color2|}}}||width:0;}}{{#if:{{{color2|}}}|border-bottom: 6px solid #{{{color2}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party2|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party2}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party2}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}"{{!}} {{# | {{!}} style="text-align:center;{{#if:{{{party2|}}}{{{color2|}}}||width:0;}}{{#if:{{{color2|}}}|border-bottom: 6px solid #{{{color2}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party2|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party2}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party2}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}"{{!}} {{#if:{{{image2|}}}|{{Avatar|{{{image2}}}|100}}}} | ||
{{#if:{{{col3|}}}|{{!}} style="text-align:center;{{#if:{{{party3|}}}{{{color3|}}}||width:0;}}{{#if:{{{color3|}}}|border-bottom: 6px solid #{{{color3}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party3|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party3}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party3}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}"{{!}} {{ | {{#if:{{{col3|}}}|{{!}} style="text-align:center;{{#if:{{{party3|}}}{{{color3|}}}||width:0;}}{{#if:{{{color3|}}}|border-bottom: 6px solid #{{{color3}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party3|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party3}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party3}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}"{{!}} {{Avatar|{{{image3}}}|100}}}} | ||
}} | }} | ||
|- | |- | ||
Line 76: | Line 76: | ||
|-<!-- Home state --> | |-<!-- Home state --> | ||
{{#if:{{{home_state1|}}}{{{home_state2|}}}{{{home_state3|}}}| | {{#if:{{{home_state1|}}}{{{home_state2|}}}{{{home_state3|}}}| | ||
! style="text-align:left" {{!}} Designation | |||
! style="text-align:left" {{!}} | |||
{{!}} style="{{#if:{{{home_state1|}}}|width:75px;}}text-align:center" {{!}} {{{home_state1|}}} | {{!}} style="{{#if:{{{home_state1|}}}|width:75px;}}text-align:center" {{!}} {{{home_state1|}}} | ||
{{!}} style="{{#if:{{{home_state2|}}}|width:75px;}}text-align:center" {{!}} {{{home_state2|}}} | {{!}} style="{{#if:{{{home_state2|}}}|width:75px;}}text-align:center" {{!}} {{{home_state2|}}} | ||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{home_state3|}}}|width:75px;}}text-align:center" {{!}} {{{home_state3|}}}}} | {{#if:{{{col3|}}}|{{!}} style="{{#if:{{{home_state3|}}}|width:75px;}}text-align:center" {{!}} {{{home_state3|}}}}} | ||
}} | }} | ||
|-<!-- Running mate --> | |-<!-- Running mate --> | ||
{{#if:{{{running_mate1|}}}{{{running_mate2|}}}{{{running_mate3|}}}| | {{#if:{{{running_mate1|}}}{{{running_mate2|}}}{{{running_mate3|}}}| | ||
! style="text-align:left" {{!}} | ! style="text-align:left" {{!}} Department | ||
{{!}} style="{{#if:{{{running_mate1|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate1|}}} | {{!}} style="{{#if:{{{running_mate1|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate1|}}} | ||
{{!}} style="{{#if:{{{running_mate2|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate2|}}} | {{!}} style="{{#if:{{{running_mate2|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate2|}}} | ||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{running_mate3|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate3|}}}}} | {{#if:{{{col3|}}}|{{!}} style="{{#if:{{{running_mate3|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate3|}}}}} | ||
}} | }} | ||
|-<!-- Electoral vote --> | |-<!-- Electoral vote --> |