Template:Infobox officeholder/office: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(Template:Infobox officeholder/Office without number 1 param) |
(tidy termstart/termend params) |
||
Line 19: | Line 19: | ||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{party{{#if:{{{party_election||}}}|_election||}}|}}}|{{{party{{#if:{{{party_election||}}}|_election||}}|}}} }}{{#if:{{{nominee|}}}|{{#if:{{{party{{#if:{{{party_election||}}}|_election||}}|}}}|n|N}}ominee|{{#if:{{{party{{#if:{{{party_election||}}}|_election||}}|}}}|c|C}}andidate}} for<br>{{{{{#if:{{{nominee|}}}|nominee|candidate}}|}}} |
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{party{{#if:{{{party_election||}}}|_election||}}|}}}|{{{party{{#if:{{{party_election||}}}|_election||}}|}}} }}{{#if:{{{nominee|}}}|{{#if:{{{party{{#if:{{{party_election||}}}|_election||}}|}}}|n|N}}ominee|{{#if:{{{party{{#if:{{{party_election||}}}|_election||}}|}}}|c|C}}andidate}} for<br>{{{{{#if:{{{nominee|}}}|nominee|candidate}}|}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{termstart|}}}{{{election_date|}}} | |
|||
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Election date'''}}<br />{{#if:{{{election_date|}}}|{{{election_date}}}| |
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Election date'''}}<br />{{#if:{{{election_date|}}}|{{{election_date}}}|{{{termstart}}}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 123: | Line 123: | ||
{{#if:{{{{{#if:{{{nominee|}}}|nominee|candidate}}|}}}|| |
{{#if:{{{{{#if:{{{nominee|}}}|nominee|candidate}}|}}}|| |
||
{{#if:{{{succeeding|}}}| |
{{#if:{{{succeeding|}}}| |
||
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Taking office'''}}<br /> |
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Taking office'''}}<br />{{{termstart}}} |
||
{{!}}- |
{{!}}- |
||
|{{#if: {{{term|}}}| |
|{{#if: {{{term|}}}| |
||
Line 129: | Line 129: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{termstart|}}}| |
|||
{{#if:{{{termend|}}} |
|||
|<!--then term has start and end:--> |
|<!--then term has start and end:--> |
||
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''In office'''}}<br /> |
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''In office'''}}<br />{{{termstart}}}{{#iferror:{{#expr:{{{termstart}}}*{{{termend}}}}}| – |–}}{{{termend}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<br />{{#if:{{{alongside|}}}|Serving|Co-leading}} with {{#if:{{{alongside|}}}|{{{alongside}}}|{{{co-leader}}}}}}} |
||
{{!}}- |
{{!}}- |
||
|<!--else:--> <!--term is ongoing--> |
|<!--else:--> <!--term is ongoing--> |
||
Line 138: | Line 138: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{termend|}}} |
|||
|<!--then nothing else; term has ended--> |
|<!--then nothing else; term has ended--> |
||
|<!--else term is ongoing:--> |
|<!--else term is ongoing:--> |
||
{{!}}colspan=2 style="text-align:center"{{!}}{{nowrap|'''Assumed office'''}} <br /> |
{{!}}colspan=2 style="text-align:center"{{!}}{{nowrap|'''Assumed office'''}} <br />{{{termstart}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<br />{{#if:{{{alongside|}}}|Serving|Co-leader}} with {{#if:{{{alongside|}}}|{{{alongside}}}|{{{co-leader}}}}}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |