Template:Infobox officeholder/office: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(Undid revision 871279561 by Neveselbert (talk)) |
(add status parameter, for officeholders yet to take office and ranked designees) |
||
Line 100: | Line 100: | ||
<!--------Term---------> |
<!--------Term---------> |
||
| data19 = {{#if:{{{ |
| data19 = {{#if:{{{termend|}}}{{{succeeding|}}}| |
||
{{#if:{{{status|}}} |
|||
| <div style="width:100%; margin:0; padding:0; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|}}| |
|||
}} |
|||
| data20 = {{#if:{{{nominee|}}}{{{candidate|}}}|| |
|||
{{#if:{{{succeeding|}}} |
{{#if:{{{succeeding|}}} |
||
| {{nowrap|'''Assuming office'''}}<br />{{{termstart}}}{{#if:{{{term|}}}{{{termend|}}}|[[Category:Pages using infobox officeholder with succeeding and term or termend]]}} |
| {{nowrap|'''Assuming office'''}}<br />{{{termstart}}}{{#if:{{{term|}}}{{{termend|}}}|[[Category:Pages using infobox officeholder with succeeding and term or termend]]}} |
||
Line 106: | Line 111: | ||
}} }} |
}} }} |
||
| |
| data21 = {{#if:{{{nominee|}}}{{{candidate|}}}|| |
||
{{#if:{{{succeeding|}}} |
{{#if:{{{succeeding|}}} |
||
| |
| |
||
Line 112: | Line 117: | ||
| {{#if:{{{termend|}}} |
| {{#if:{{{termend|}}} |
||
|<!--then: term has start and end:-->{{nowrap|'''{{{termlabel|In office}}}'''}}<br />{{{termstart}}}{{#iferror:{{#expr:{{{termstart}}}*{{{termend}}}}}| – |–}}{{{termend}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<br />{{#if:{{{alongside|}}}|Serving|Co-leading}} with {{#if:{{{alongside|}}}|<div style="padding-bottom:0.2em; line-height:1.2em">{{{alongside}}}</div>|<div style="padding-bottom:0.2em; line-height:1.2em">{{{co-leader}}}</div>}}}} |
|<!--then: term has start and end:-->{{nowrap|'''{{{termlabel|In office}}}'''}}<br />{{{termstart}}}{{#iferror:{{#expr:{{{termstart}}}*{{{termend}}}}}| – |–}}{{{termend}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<br />{{#if:{{{alongside|}}}|Serving|Co-leading}} with {{#if:{{{alongside|}}}|<div style="padding-bottom:0.2em; line-height:1.2em">{{{alongside}}}</div>|<div style="padding-bottom:0.2em; line-height:1.2em">{{{co-leader}}}</div>}}}} |
||
|<!--else: term is ongoing--><div style="width:100%; margin:0; padding:0; background-color: {{{color|lavender}}}">'''[[Incumbent]]'''</div> |
|{{#if:{{{status|}}}|<div style="width:100%; margin:0; padding:0; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|<!--else: term is ongoing--><div style="width:100%; margin:0; padding:0; background-color: {{{color|lavender}}}">'''[[Incumbent]]'''</div>}} |
||
}} |
}} |
||
}} |
}} |
||
}} }} |
}} }} |
||
| |
| data22 = {{#if:{{{nominee|}}}{{{candidate|}}}|| |
||
{{#if:{{{succeeding|}}} |
{{#if:{{{succeeding|}}} |
||
| |
| |