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 office</th></tr><tr><td style="border-top:none; text-align:center;" colspan="2">{{{term_start}}} – {{{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--> |
|||
⚫ | |||
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In office'''<br>{{{term_start}}} – {{{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:--> |
|||
⚫ | |||
{{!-}} |
|||
}} |
|||
}} |
|||
<!----------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 office</th></tr><tr><td style="border-top:none; text-align:center;" colspan="2">{{{term_start2}}} – {{{term_end2}}}</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--> |
|||
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In office'''<br>{{{term_start2}}} – {{{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:--> |
|||
⚫ | |||
{{!-}} |
|||
}} |
|||
}} |
|||
<!----------President----------> |
<!----------President----------> |