Template:Infobox political party: Difference between revisions

simplify and semantically improve code of "below" section, thereby replacing Template:Infobox political party/div; no visible changes intended
(rolling back, doesn't seem to have changed anything)
(simplify and semantically improve code of "below" section, thereby replacing Template:Infobox political party/div; no visible changes intended)
Line 268:
 
| belowstyle = padding-top:0;
| below = {{Infobox political party/div#if:{{{state|colorcode={{{colorcodecountry|}}}}}}
| {{ubl |style=line-height:1.3em; padding-top:0.3em; border-top:{{#if:{{{colorcode|}}}|2|1}}px solid {{{colorcode|#aaa}}};
|text={{#if:{{{state|{{{country|}}}}}}
| {{#ifexist: {{#if:{{{country_dab1|}}} |{{{country_dab1}}} |Politics of {{{state|{{{country}}}}}} }}
| {{#ififexist: {{{country_dab1|}}} | [[{{{country_dab1}}}|Politics of {{{state|{{{country}}}}}}]] }}
| {{#ifexist: Politics of {{{state| [[{{{country_dab1country}}}}}} | [[Politics of {{{state|{{{country}}}}}}]]<br/> }}
| [[Politics of {{{state|{{{country}}}}}}]]<br/>
| {{#if:{{{parties_dab1|}} }}<!--
--> | {{#ifexist: {{#if:{{{parties_dab1|}}} | [[{{{parties_dab1}}} |List of politicalPolitical parties in {{{state|{{{country}}}}}}]] }}
| [[{{#ififexist: List of political parties in {{{parties_dab1|}}} state|{{{parties_dab1country}}}}}} | [[List of political parties in {{{state|{{{country}}}}}}}}|Political parties]]<br/> }}
}}<!--
-->{{#ifexist:| {{#if:{{{elections_dab1|}}} |{{{elections_dab1}}} |Elections in {{{state|{{{country}}}}}} }}
| [[{{#ififexist: {{{elections_dab1|}}} | [[{{{elections_dab1}}} |Elections]] in {{{state|{{{country}}}}}}}}|Elections]]
| {{#ifexist: Elections in {{{state|{{{country}}}}}} | [[Elections in {{{state|{{{country}}}}}}|Elections]]}}
}}<!--
-->{{#if:{{{country2|} }}
| <hr/>}}<!--
 
-->{{#ifexist: {{#if:{{{country_dab2|}}} |{{{country_dab2}}} |Politics of {{{country2}}} }}
| -->{{#if:{{{country_dab2country2|}}}
| {{ubl |style=line-height:1.3em; margin-top:0.2em; padding-top:0.2em; border-top: 1px solid #aaa;
| [[{{{country_dab2}}}|Politics of {{{country2}}}]]
| [[Politics of {{#if:{country2{{country_dab2|}}}]]<br/>
| {{#ifexist: {{{country_dab2|}}} | [[{{{country_dab2}}}|Politics of {{{country2}}}]] }}<!--
| -->{{#ifexist: {{#if:{{{parties_dab2|}}}Politics of |{{{parties_dab2country2}}} |List [[Politics of political parties in {{{country2}}}]] }}
}}
| [[{{#if:{{{parties_dab2|}}} |{{{parties_dab2}}} |List of political parties in {{{country2}}}}}|Political parties]]<br/>
| {{#if:{{{parties_dab1|}}}<!--
| -->{{#ifexist: {{#if:{{{elections_dab2parties_dab2|}}} | [[{{{elections_dab2parties_dab2}}} |ElectionsPolitical in {{{country2}}}parties]] }}
| {{#ifexist: List of political parties in | [[{{#if:{{{elections_dab2|country2}}} |{{{elections_dab2}}} |Elections[[List of political parties in {{{country2}}}}}|ElectionsPolitical parties]] }}
}} }} }}<!--
--> | {{#if:{{{footnoteselections_dab1|}}} |<hr/>{{{footnotes|}}} }}
| {{#ifexist: {{{elections_dab2}}} | [[{{{elections_dab2}}}|Elections]] }}
}}
| -->{{#ifexist: {{#if:{{{country_dab2|}}}Elections in |{{{country_dab2country2}}} |Politics of[[Elections in {{{country2}}} |Elections]]}}
}}
}} }} }}<!--
-->{{#if:{{{footnotes|}}} |<hr/>{{{footnotes}}} }}
 
}}{{main other
Anonymous user