Template:Infobox election/row: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
m (... should work :D)
 
Line 16: Line 16:
|-
|-
{{#if:{{{party1|}}}{{{color1|}}}{{{image1|}}}{{{party2|}}}{{{color2|}}}{{{image2|}}}{{{party3|}}}{{{color3|}}}{{{image3|}}}|<!-- Images  -->
{{#if:{{{party1|}}}{{{color1|}}}{{{image1|}}}{{{party2|}}}{{{color2|}}}{{{image2|}}}{{{party3|}}}{{{color3|}}}{{{image3|}}}|<!-- Images  -->
{{#if:{{{filler|}}}|
! <br />{{{filler}}}
|
{{!}} &nbsp;
{{!}} &nbsp;
{{!}} style="text-align:center;{{#if:{{{party1|}}}{{{color1|}}}||width:0;}}{{#if:{{{color1|}}}|border-bottom: 6px solid #{{{color1}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party1|}}}|{{#ifexist:Template:{{{party1}}}/meta/color|border-bottom: 6px solid {{Template:{{{party1}}}/meta/color}} }}}}}}}}" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{if empty|{{{image1_size|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image1_upright|}}}|{{{image_upright|}}}|{{#if:{{both|{{{col3|}}}|{{{image3|}}}}}|0.5|0.75}}}}|suppressplaceholder=yes}}
}}
{{!}} style="text-align:center;{{#if:{{{party2|}}}{{{color2|}}}||width:0;}}{{#if:{{{color2|}}}|border-bottom: 6px solid #{{{color2}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party2|}}}|{{#ifexist: Template:{{{party2}}}/meta/color|border-bottom: 6px solid {{Template:{{{party2}}}/meta/color}} }}}}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{if empty|{{{image2_size|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image2_upright|}}}|{{{image_upright|}}}|{{#if:{{both|{{{col3|}}}|{{{image3|}}}}}|0.5|0.75}}}}|suppressplaceholder=yes}}
{{!}} 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}};}}}}}}}}" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{if empty|{{{image1_size|}}}|{{{image_size|}}}}}|alt={{{alt1|}}}|upright={{if empty|{{{image1_upright|}}}|{{{image_upright|}}}|{{#if:{{both|{{{col3|}}}|{{{image3|}}}}}|0.5|0.75}}}}|suppressplaceholder=yes|class={{#if:{{{pageimage1|}}}||notpageimage}}}}
{{#if:{{{col3|}}}|{{!}} style="text-align:center;{{#if:{{{party3|}}}{{{color3|}}}||width:0;}}{{#if:{{{color3|}}}|border-bottom: 6px solid #{{{color3}}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party3|}}}|{{#ifexist: Template:{{{party3}}}/meta/color|border-bottom: 6px solid {{Template:{{{party3}}}/meta/color}} }}}}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|size={{if empty|{{{image3_size|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image3_upright|}}}|{{{image_upright|}}}|0.5}}|suppressplaceholder=yes}}}}
{{!}} 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}};}}}}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{if empty|{{{image2_size|}}}|alt={{{alt2|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image2_upright|}}}|{{{image_upright|}}}|{{#if:{{both|{{{col3|}}}|{{{image3|}}}}}|0.5|0.75}}}}|suppressplaceholder=yes|class={{#if:{{{pageimage2|}}}||notpageimage}}}}
{{#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}};}}}}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|alt={{{alt3|}}}|size={{if empty|{{{image3_size|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image3_upright|}}}|{{{image_upright|}}}|0.5}}|suppressplaceholder=yes|class={{#if:{{{pageimage3|}}}||notpageimage}}}}}}
}}
}}
|-
|-
Line 59: Line 63:
{{#if:{{{party1|}}}{{{party2|}}}{{{party3|}}}|<!-- Party name  -->
{{#if:{{{party1|}}}{{{party2|}}}{{{party3|}}}|<!-- Party name  -->
! style="width:75px;text-align:left" {{!}} Party
! style="width:75px;text-align:left" {{!}} Party
{{!}} style="{{#if:{{{party1|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party_name}}}|name={{{party1|}}}}}
{{!}} style="{{#if:{{{party1|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party1_name}}}|name={{{party1|}}}}}
{{!}} style="{{#if:{{{party2|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party_name}}}|name={{{party2|}}}}}
{{!}} style="{{#if:{{{party2|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party2_name}}}|name={{{party2|}}}}}
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{party3|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party_name}}}|name={{{party3|}}}}}}}
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{party3|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party3_name}}}|name={{{party3|}}}}}}}
}}
}}
|-
|-
{{#if:{{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}}|<!-- Alliance name  -->
{{#if:{{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}}|<!-- Alliance name  -->
! style="text-align:left" {{!}} Alliance
! style="text-align:left" {{!}} Alliance
{{!}} style="{{#if:{{{alliance1|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance_name}}}|name={{{alliance1|}}}}}
{{!}} style="{{#if:{{{alliance1|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance1_name}}}|name={{{alliance1|}}}}}
{{!}} style="{{#if:{{{alliance2|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance_name}}}|name={{{alliance2|}}}}}
{{!}} style="{{#if:{{{alliance2|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance2_name}}}|name={{{alliance2|}}}}}
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{alliance3|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance_name}}}|name={{{alliance3|}}}}}}}
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{alliance3|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance3_name}}}|name={{{alliance3|}}}}}}}
}}
}}
|-<!-- Home state  -->
|-<!-- Home state  -->
Line 543: Line 547:
{{!}} style="{{#if:{{{6data2|}}}|width:75px;}}text-align:center" {{!}} {{{6data2|}}}
{{!}} style="{{#if:{{{6data2|}}}|width:75px;}}text-align:center" {{!}} {{{6data2|}}}
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{6data3|}}}|width:75px;}}text-align:center" {{!}} {{{6data3|}}}}}
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{6data3|}}}|width:75px;}}text-align:center" {{!}} {{{6data3|}}}}}
}}</includeonly><noinclude>
}}</includeonly>
<noinclude>
{{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>

Latest revision as of 19:44, 28 October 2022