Template:Infobox officeholder: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
m (+missing <small>)
(wikified code (more robust) and modified spacing between sections)
Line 1: Line 1:
{| class="infobox" style="width:23em; font-size:90%; text-align:left;" <!--cellpadding="3"--><!--
{| class="infobox" style="width:23em; font-size:90%; text-align:left;" <!--cellpadding="3"-->


- - - Name - - - -->
<!----------Name---------->
|+ style="font-size:125%";"| '''{{{name|{{PAGENAME}}}}}'''<!--
|+ style="font-size:140%;"| '''{{{name|{{PAGENAME}}}}}'''
|-


- - - Image - - -
<!----------Image---------->
{{#if:{{{image|}}} |<!--then:-->
-->{{#if:{{{image|}}} |<!--then:--> <tr style="text-align:center;"><td colspan="2"> [[Image:{{{image}}}|{{#if:{{{imagesize|}}}|<!--then:-->{{{imagesize}}}|200px}}|{{PAGENAME}}]]<br/>
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{image}}}|{{#if:{{{imagesize|}}}|<!--then:-->{{{imagesize}}}|200px}}|{{PAGENAME}}]]<br/>
<small>{{{caption|}}}<small/></td></tr>}}<!--
<small>{{{caption|}}}<small/>
-->{{#if:{{{smallimage|}}} |<!--then:--> <tr style="text-align:center;"><td colspan="2"> [[Image:{{{smallimage}}}|{{PAGENAME}}]]<br/><small>{{{caption|}}}</small></td></tr>}}<!--
{{!-}}
}}
{{#if:{{{smallimage|}}} |<!--then:-->
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{smallimage}}}|{{PAGENAME}}]]<br/><small>{{{caption|}}}</small>
{{!-}}
}}


<!----------Office---------->
- - - Order - - -
-->{{#if:{{{order|}}} |<!--then:--> <tr style="text-align:center;"><th colspan="2"> {{{order}}}</th></tr>}}<!--
{{#if:{{{order|}}} |<!--then:-->
!colspan="2" style="text-align:center;"{{!}} {{{order}}}
{{!-}}
}}


- - - Term - - -
<!----------Term---------->
-->{{#if:{{{term_start|}}} |<!--then:-->
{{#if:{{{term_start|}}} |<!--then:-->
{{#if:{{{term_end|}}} |<!--then:--> <!--term has start and end-->
{{#if:{{{term_end|}}}
|<!--then:--> <!--term has start and end-->
<tr><td colspan="2" style="border-bottom:none; text-align:center;">'''In&nbsp;office'''<br>{{{term_start}}}&nbsp;&ndash;&nbsp;{{{term_end}}}</td></tr>
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In&nbsp;office'''<br>{{{term_start}}}&nbsp;&ndash;&nbsp;{{{term_end}}}<br>
|<!--else:--> <!--term is ongoing-->
{{!-}}
<tr><th colspan="2" style="text-align:center; background:#b0c4de;">[[Incumbent]]</th></tr>}}
{{#if:{{{term_end|}}} |<!--then:--> <!--(nothing)-->
|<!--else:--> <!--term is ongoing-->
{{!}}colspan="2" style="text-align:center; background:#b0c4de;"{{!}} [[Incumbent]]<br>
|<!--else:--> <tr><td>'''In&nbsp;office&nbsp;since'''<br>{{{term_start}}}</td></tr>}}
{{!-}}
}}<!--
}}
{{#if:{{{term_end|}}}
|<!--then:--> <!--(nothing; term has ended)-->
|<!--else:-->
{{!}} '''In&nbsp;office&nbsp;since'''<br>{{{term_start}}}<br>
{{!-}}
}}
{{!}} &nbsp; <!--(empty row to aid layout)-->
{{!-}}
}}


- - - Vice president/s, Vice prime minister/s, Deputy/ies - - -
<!----------Vice president/s, Vice prime minister/s, Deputy/ies---------->
-->{{#if:{{{vicepresident|}}} |<!--then:--> <tr><th>Vice&nbsp;President(s)&nbsp;&nbsp;</th><td>{{{vicepresident}}}</td></tr>}}<!--
{{#if:{{{vicepresident|}}} |<!--then:-->
! Vice&nbsp;President(s)&nbsp;&nbsp;
-->{{#if:{{{vice prime minister|}}} |<!--then:--> <tr><th><small>Vice&nbsp;Prime&nbsp;Minister(s)</small>&nbsp;&nbsp;</th><td>{{{vice prime minister}}}</td></tr>}}<!--
{{!}} {{{vicepresident}}}
-->{{#if:{{{deputy|}}} |<!--then:--> <tr><th>Deputy</th><td>{{{deputy}}}</td></tr>}}<!--
{{!-}}
}}
{{#if:{{{vice prime minister|}}} |<!--then:-->
! Vice&nbsp;[[Prime minister|PM]](s)&nbsp;&nbsp;
{{!}} {{{vice prime minister}}}
{{!-}}
}}
{{#if:{{{deputy|}}} |<!--then:-->
! Deputy
{{!}} {{{deputy}}}
{{!-}}
}}


- - - Predecessor/Successor - - -
<!----------Predecessor/Successor---------->
-->{{#if:{{{predecessor|}}} |<!--then:--> <tr><th>Preceded&nbsp;by</th><td>{{{predecessor}}}</td></tr>}}<!--
{{#if:{{{predecessor|}}} |<!--then:-->
! Preceded&nbsp;by
-->{{#if:{{{successor|}}} |<!--then:--> <tr><th>Succeeded&nbsp;by</th><td>{{{successor}}}</td></tr>}}<!--
{{!}} {{{predecessor}}}
{{!-}}
}}
{{#if:{{{successor|}}} |<!--then:-->
! Succeeded&nbsp;by
{{!}} {{{successor}}}
{{!-}}
}}


- - - Second order/term - - -
<!----------Second office---------->
-->{{#if:{{{order2|}}} |<!--then:--> <tr style="text-align:center;"><th colspan="2"> {{{order2}}}</th></tr>}}<!--
{{#if:{{{order2|}}} |<!--then:-->
!colspan="2" style="text-align:center;"{{!}} <br>{{{order2}}}
-->{{#if:{{{term_start2|}}} |<!--then:-->
{{!-}}
{{#if:{{{term_end2|}}} |<!--then:--> <!--term has start and end-->
}}
<tr><td colspan="2" style="border-bottom:none; text-align:center;">'''In&nbsp;office'''<br>{{{term_start}}}&nbsp;&ndash;&nbsp;{{{term_end}}}</td></tr>
{{#if:{{{term_start2|}}} |<!--then:-->
|<!--else:--> <!--term is ongoing-->
{{#if:{{{term_end|}}}
<tr><th colspan="2" style="text-align:center; background:#b0c4de;">[[Incumbent]]</th></tr>}}
{{#if:{{{term_end2|}}} |<!--then:--> <!--(nothing)-->
|<!--then:--> <!--term has start and end-->
|<!--else:--> <tr><td>'''In&nbsp;office&nbsp;since'''<br>{{{term_start2}}}</td></tr>}}
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In&nbsp;office'''<br>{{{term_start2}}}&nbsp;&ndash;&nbsp;{{{term_end2}}}<br>
{{!-}}
}}<!--
|<!--else:--> <!--term is ongoing-->
{{!}}colspan="2" style="text-align:center; background:#b0c4de;"{{!}} [[Incumbent]]<br>
{{!-}}
}}
{{#if:{{{term_end2|}}}
|<!--then:--> <!--(nothing; term has ended)-->
|<!--else:-->
{{!}} '''In&nbsp;office&nbsp;since'''<br>{{{term_start2}}}<br>
{{!-}}
}}
{{!}} &nbsp; <!--(empty row to aid layout)-->
{{!-}}
}}


<!----------President---------->
{{#if:{{{president|}}} |<!--then:-->
! President
{{!}} {{{president}}}
{{!-}}
}}


<!----------Second predecessor/successor---------->
- - - President - - -
-->{{#if:{{{president|}}} |<!--then:--> <tr><th>President</th><td>{{{president}}}</td></tr>}}<!--
{{#if:{{{predecessor2|}}} |<!--then:-->
! Preceded&nbsp;by
{{!}} {{{predecessor2}}}
{{!-}}
}}
{{#if:{{{successor2|}}} |<!--then:-->
! Succeeded&nbsp;by
{{!}} {{{successor2}}}
{{!-}}
}}


<!----------Birth/Death---------->
- - - Second predecessor/successor - - -
-->{{#if:{{{predecessor2|}}} |<!--then:--> <tr><th>Preceded&nbsp;by</th><td>{{{predecessor2}}}</td></tr>}}<!--
-->{{#if:{{{successor2|}}} |<!--then:--> <tr><th>Succeeded&nbsp;by</th><td>{{{successor2}}}</td></tr>}}<!--

- - - Birth/Death - - - -->
|-
|-
! <!--carriage-return to aid layout:-->
! Born
Born
| {{{birth_date|}}}<br/>{{{birth_place|}}}
| {{{birth_date|}}}<br/>{{{birth_place|}}}
|-
|-
{{#if:{{{death_date|}}} |<!--then:--> <tr><th>Died</th><td>{{{death_date}}}<br/>{{{death_place|}}}</td></tr>}}<!--
{{#if:{{{death_date|}}} |<!--then:-->
! Died
{{!}} {{{death_date}}}<br/>{{{death_place|}}}
{{!-}}
}}


- - - Constituency - - -
<!----------Constituency---------->
-->{{#if:{{{constituency|}}} |<!--then:--> <tr><th>Constituency</th><td>{{{constituency}}}</td></tr>}}<!--
{{#if:{{{constituency|}}} |<!--then:-->
! Constituency
{{!}} {{{constituency}}}
{{!-}}
}}


- - - Party - - -
<!----------Party---------->
-->{{#if:{{{party|}}} |<!--then:--> <tr><th>Political&nbsp;party</th><td>{{#switch:{{{party}}}
{{#if:{{{party|}}} |<!--then:-->
! Political&nbsp;party
{{!}} {{#switch:{{{party}}}
| [[United States Democratic Party|Democrat]]
| [[United States Democratic Party|Democrat]]
| [[Democratic Party (United States)|Democratic]]
| [[Democratic Party (United States)|Democratic]]
Line 74: Line 149:
| [[Labour Party (UK)|Labour]] = [[Labour Party (UK)|Labour]]
| [[Labour Party (UK)|Labour]] = [[Labour Party (UK)|Labour]]
| {{{party}}} }}
| {{{party}}} }}
{{!-}}
}}<!--
}}

<!----------Spouse etc.---------->
{{#if:{{{spouse|}}} |<!--then:-->
! Spouse
{{!}} {{{spouse}}}
{{!-}}
}}
{{#if:{{{profession|}}} |<!--then:-->
! Profession
{{!}} {{{profession}}}
{{!-}}
}}
{{#if:{{{religion|}}} |<!--then:-->
! Religion
{{!}} {{{religion}}}
{{!-}}
}}
{{#if:{{{signature|}}} |<!--then:-->
! Signature
{{!}} [[Image:{{{signature}}}|128px]]
{{!-}}
}}
{{#if:{{{footnotes|}}} |<!--then:-->
{{!}}colspan="2" style="border-top:1px solid; font-size:90%;"{{!}} {{{footnotes}}}
{{!-}}
}}


- - - Spouse etc - - -
-->{{#if:{{{spouse|}}} |<!--then:--> <tr><th>Spouse</th><td>{{{spouse}}}</td></tr>}}<!--
-->{{#if:{{{profession|}}} |<!--then:--> <tr><th>Profession</th><td>{{{profession}}}</td></tr>}}<!--
-->{{#if:{{{religion|}}} |<!--then:--> <tr><th>Religion</th><td>{{{religion}}}</td></tr>}}<!--
-->{{#if:{{{signature|}}} |<!--then:--> <tr><th>Signature</th><td>[[Image:{{{signature}}}|128px]]</td></tr>}}<!--
-->{{#if:{{{footnotes|}}} |<!--then:--> <tr><td colspan="2" style="font-size:smaller; border-top:1px solid;">{{{footnotes}}}</td></tr>}}
|}<noinclude>{{clear}}<br><hr><br>{{esoteric}}
|}<noinclude>{{clear}}<br><hr><br>{{esoteric}}