Anonymous user
Template:Infobox officeholder: Difference between revisions
wikified code (more robust) and modified spacing between sections
m (+missing <small>) |
(wikified code (more robust) and modified spacing between sections) |
||
Line 1:
{| class="infobox" style="width:23em; font-size:90%; text-align:left;" <!--cellpadding="3"-->
<!--------
|+ style="font-size:
|-
<!--------
{{#if:{{{image|}}} |<!--then:-->
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{image}}}|{{#if:{{{imagesize|}}}|<!--then:-->{{{imagesize}}}|200px}}|{{PAGENAME}}]]<br/>
<small>{{{caption|}}}<small/>
{{!-}}
}}
{{#if:{{{smallimage|}}} |<!--then:-->
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{smallimage}}}|{{PAGENAME}}]]<br/><small>{{{caption|}}}</small>
{{!-}}
}}
<!----------Office---------->
!colspan="2" style="text-align:center;"{{!}} {{{order}}}
{{!-}}
}}
<!--------
{{#if:{{{term_end|}}}
|<!--then:--> <!--term has start and end-->
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In office'''<br>{{{term_start}}} – {{{term_end}}}<br>
{{!-}}
{{!}}colspan="2" style="text-align:center; background:#b0c4de;"{{!}} [[Incumbent]]<br>
{{!-}}
}}
{{#if:{{{term_end|}}}
|<!--then:--> <!--(nothing; term has ended)-->
|<!--else:-->
{{!}} '''In office since'''<br>{{{term_start}}}<br>
{{!-}}
}}
{{!}} <!--(empty row to aid layout)-->
{{!-}}
}}
<!--------
! Vice President(s)
{{!}} {{{vicepresident}}}
{{!-}}
}}
{{#if:{{{vice prime minister|}}} |<!--then:-->
! Vice [[Prime minister|PM]](s)
{{!}} {{{vice prime minister}}}
{{!-}}
}}
{{#if:{{{deputy|}}} |<!--then:-->
! Deputy
{{!}} {{{deputy}}}
{{!-}}
}}
<!--------
! Preceded by
{{!}} {{{predecessor}}}
{{!-}}
}}
{{#if:{{{successor|}}} |<!--then:-->
! Succeeded by
{{!}} {{{successor}}}
{{!-}}
}}
<!--------
!colspan="2" style="text-align:center;"{{!}} <br>{{{order2}}}
{{!-}}
}}
{{#if:{{{term_start2|}}} |<!--then:-->
{{#if:{{{term_end|}}}
{{!}}colspan="2" style="border-bottom:none;
{{!-}}
|<!--else:--> <!--term is ongoing-->
{{!}}colspan="2" style="text-align:center; background:#b0c4de;"{{!}} [[Incumbent]]<br>
{{!-}}
}}
{{#if:{{{term_end2|}}}
|<!--then:--> <!--(nothing; term has ended)-->
|<!--else:-->
{{!}} '''In office since'''<br>{{{term_start2}}}<br>
{{!-}}
}}
{{!}} <!--(empty row to aid layout)-->
{{!-}}
}}
<!----------President---------->
{{#if:{{{president|}}} |<!--then:-->
! President
{{!}} {{{president}}}
{{!-}}
}}
<!----------Second predecessor/successor---------->
! Preceded by
{{!}} {{{predecessor2}}}
{{!-}}
}}
{{#if:{{{successor2|}}} |<!--then:-->
! Succeeded by
{{!}} {{{successor2}}}
{{!-}}
}}
<!----------Birth/Death---------->
|-
! <!--carriage-return to aid layout:-->
Born
| {{{birth_date|}}}<br/>{{{birth_place|}}}
|-
{{#if:{{{death_date|}}} |<!--then:-->
! Died
{{!}} {{{death_date}}}<br/>{{{death_place|}}}
{{!-}}
}}
<!--------
! Constituency
{{!}} {{{constituency}}}
{{!-}}
}}
<!--------
! Political party
{{!}} {{#switch:{{{party}}}
| [[United States Democratic Party|Democrat]]
| [[Democratic Party (United States)|Democratic]]
Line 74 ⟶ 149:
| [[Labour Party (UK)|Labour]] = [[Labour Party (UK)|Labour]]
| {{{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}}}
{{!-}}
}}
|}<noinclude>{{clear}}<br><hr><br>{{esoteric}}
|