Anonymous user
Template:Infobox officeholder: Difference between revisions
Internal code layout and formatting to aid comprehension/navigation, reducing gap between "In office" and dates. (Why has gap appeared at top of page?)
m (+iw) |
(Internal code layout and formatting to aid comprehension/navigation, reducing gap between "In office" and dates. (Why has gap appeared at top of page?)) |
||
Line 1:
{| class="infobox" style="width:23em; font-size:90%; text-align:left;" <!--cellpadding="3"-->
<!----- Name ----->
-->{{#if:{{{image|}}}|<tr style="text-align:center;"><td colspan="2">[[Image:{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|200px}}|{{PAGENAME}}]]<br /><small>{{{caption|}}}<small/></td></tr>}}<!--▼
|-
<!----- Image ----->
▲
<!----- Order ----->
{{#if:{{{order|}}} |<!--then:--> <tr style="text-align:center;"><th colspan="2">{{{order}}}</th></tr>}}<!--
<!----- Term ----->
{{#if:{{{term_start|}}} |<!--then:-->
{{#if:{{{term_end|}}} |<!--then:--> <!--term has start and end-->
<tr><th colspan="2" style="border-bottom:none; text-align:center;">In office</th></tr>
<tr><td colspan="2" style="border-top:none; text-align:center;"> {{{term_start}}} – {{{term_end}}}</td></tr>
|<!--else:--> <!--term is ongoing-->
<tr><th colspan="2" style="text-align:center; background:#b0c4de;">[[Incumbent]]</th></tr>}}
{{#if:{{{term_end|}}} |<!--then:--> <!--(nothing)-->
}}<!--
▲-->{{#if:{{{term_end|}}}|<!--then--> |<!--else--><tr><th>In office since</th><td>{{{term_start}}}</td></tr>}}}}<!--
<!----- Vice president/s, Vice prime minister/s, Deputy/ies ----->
-->{{#if:{{{vicepresident|}}}|<tr><th>Vice President(s) </th><td>{{{vicepresident}}}</td></tr> }}<!--▼
-->{{#if:{{{successor|}}}|<tr><th>Succeeded by</th><td>{{{successor}}}</td></tr>}}<!--▼
<!----- Predecessor/Successor ----->
▲-->{{#if:{{{order2|}}}|<tr style="text-align:center;"><th colspan="2">{{{order2}}}</th></tr>}}<!--
-->{{#if:{{{president|}}}|<tr><th>President</th><td>{{{president}}}</td></tr>}}<!--▼
<!----- Second order/term ----->
▲-->{{#if:{{{predecessor2|}}}|<tr><th>Preceded by</th><td>{{{predecessor2}}}</td></tr>}}<!--
{{#if:{{{term_start2|}}} |<!--then:-->
{{#if:{{{term_end2|}}} |<!--then:--> <!--term has start and end-->
<tr><th colspan="2" style="border-bottom:none; text-align:center;">In office</th></tr>
| {{{birth_date|}}}<br />{{{birth_place|}}}<!--▼
<tr><td colspan="2" style="border-top:none; text-align:center;"> {{{term_start2}}} – {{{term_end2}}}</td></tr>
-->{{#if:{{{death_date|}}}|<tr><th>Died</th><td>{{{death_date}}}<br />{{{death_place|}}}</td></tr>}}<!--▼
|<!--else:--> <!--term is ongoing-->
-->{{#if:{{{constituency|}}}|<tr><th>Constituency</th><td>{{{constituency}}}</td></tr>}}<!--▼
<tr><th colspan="2" style="text-align:center; background:#b0c4de;">[[Incumbent]]</th></tr>}}
-->{{#if:{{{party|}}}|<tr><th>Political party</th>▼
{{#if:{{{term_end2|}}} |<!--then:--> <!--(nothing)-->
|<!--else:--> <tr><th>In office since</th><td>{{{term_start2}}}</td></tr>}}
}}<!--
<!----- President ----->
▲
<!----- Second predecessor/successor ----->
▲
▲
<!----- Birth/Death ----->
▲
<!----- Constituency ----->
▲
<!----- Party ----->
| [[United States Democratic Party|Democrat]]
| [[Democratic Party (United States)|Democratic]]
| [[Democratic Party (United States)|Democrat]] =
| [[Republican Party (United States)|Republican]]
| [[United States Republican Party]]
Line 34 ⟶ 68:
| [[Republican Party (United States)|Republican Party]] = [[United States Republican party|Republican]]
| [[Conservative Party (UK)|Conservative Party]]
| [[Conservative Party (UK)|Conservative]] =
| [[Labour Party (UK)|Labour Party]]
| [[Labour Party (UK)|Labour]] = [[Labour Party (UK)|Labour]]
| {{{party}}} }}
}}<!--
<!----- Spouse etc ----->
{{#if:{{{footnotes|}}} |<!--then:--><tr><td colspan="2" style="font-size:smaller; border-top:1px solid;">{{{footnotes}}}</td></tr>}}
|}<noinclude><hr><nowiki>{{esoteric}}</nowiki><hr>
Please use the most appropriate name when placing this template on a page: -▼
▲Please use the most appropriate name when placing this template on a page
*'''Infobox Chancellor'''
*'''Infobox Governor General'''
Line 55 ⟶ 92:
*'''Infobox Vice President'''
<!--Categories-->
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:People infobox templates|Officeholder]]
[[Category:Politics infobox templates|Officeholder]]
<!--Other languages-->
[[ast:Plantilla:Info presidentes]]
[[bg:Шаблон:Президент инфо]]
|