Template:Infobox officeholder: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(tried to fix problem for Incumbents)
({{inuse}})
Line 1: Line 1:
{{inuse}}
{| class="infobox" style="width:23em; font-size:90%; text-align:left; padding-left:0.5em; padding-right:0.5em;"
{| class="infobox" style="width:23em; font-size:90%; text-align:left; padding-left:0.5em; padding-right:0.5em;"


Line 23: Line 24:


<!----------Term---------->
<!----------Term---------->
{{#if:{{{term_start|}}} |<!--then:-->
{{#if:{{{term_start|}}}|{{#if:{{{term_end|}}}|<!--then: in office from/to--><tr><th style="border-bottom:none; text-align:center;" colspan="2">In&nbsp;office</th></tr><tr><td style="border-top:none; text-align:center;" colspan="2">{{{term_start}}}&nbsp;&ndash;&nbsp;{{{term_end}}}</td></tr>|<!--else: assume current--><tr><th style="text-align:center; background:#B0C4DE;" colspan="2">[[Incumbent]]</th></tr>
{{#if:{{{term_end|}}}
}}<!--
|<!--then:--> <!--term has start and end-->
-->{{#if:{{{term_end|}}}|<!--then--> |<!--else--><tr><th>In&nbsp;office&nbsp;since</th><td>{{{term_start}}}</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-->
{{!}}colspan="2" style="text-align:center; background:#b0c4de;"{{!}} '''[[Incumbent]]'''<br>
{{!-}}
}}
{{#if:{{{term_end|}}}
|<!--then:--> <!--(nothing; term has ended)-->
|<!--else:-->
{{!}}<tr><td>'''In&nbsp;office&nbsp;since'''<br>{{{term_start}}}</td></tr>
{{!-}}
}}
}}


<!----------Vice president/s, Vice prime minister/s, Deputy/ies---------->
<!----------Vice president/s, Vice prime minister/s, Deputy/ies---------->
Line 61: Line 75:
{{!-}}
{{!-}}
}}
}}
{{#if:{{{term_start2|}}} |<!--then:-->
{{#if:{{{term_start2|}}}|{{#if:{{{term_end2|}}}|<!--then: in office from/to--><tr><th style="border-bottom:none; text-align:center;" colspan="2">In&nbsp;office</th></tr><tr><td style="border-top:none; text-align:center;" colspan="2">{{{term_start2}}}&nbsp;&ndash;&nbsp;{{{term_end2}}}</td></tr>|<!--else: assume current--><tr><th style="text-align:center; background:#B0C4DE;" colspan="2">[[Incumbent]]</th></tr>}}<!--
{{#if:{{{term_end|}}}
-->{{#if:{{{term_end2|}}}|<!--then--> |<!--else--><tr><th>In&nbsp;office&nbsp;since</th><td>{{{term_start2}}}</td></tr>}}}}
|<!--then:--> <!--term has start and end-->
{{!}}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:-->
{{!}}<tr><td>'''In&nbsp;office&nbsp;since'''<br>{{{term_start2}}}</td></tr>
{{!-}}
}}
}}


<!----------President---------->
<!----------President---------->

Revision as of 16:46, 6 November 2006