Template:Infobox officeholder/office: Difference between revisions
(style="text-align:left;" {{!}} to fix IE9 issue) |
m (198 revisions imported from wikipedia:Template:Infobox_officeholder/office) |
||
(161 intermediate revisions by 22 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{speaker|}}}{{{state_legislature|}}}{{{state_assembly|}}}{{{speaker_office|}}}{{{state_delegate|}}}{{{state_house|}}}{{{prior_term|}}}{{{nominee|}}}{{{candidate|}}}{{{termstart|}}}{{{election_date|}}}{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}{{{jr/sr|}}}{{{succeeding|}}}{{{assuming|}}}{{{state|}}}{{{jr/sr and state|}}}{{{state_senate|}}}{{{district|}}}{{{ambassador_from|}}}{{{minister_from|}}}{{{order|}}}{{{office|}}}{{{title|}}}{{{country|}}}{{{constituency_AM|}}}{{{constituency_MP|}}}{{{parliament|}}}{{{assembly|}}}{{{constituency_|}}}{{{riding|}}}{{{term|}}}{{{termend|}}}{{{alongside|}}}{{{co-leader|}}} |
|||
<includeonly> |
|||
|{{#invoke:infobox|infoboxTemplate|child=yes|decat=yes |
|||
<!----------Speaker of the House----------> |
|||
| headerstyle = background:{{{color|lavender}}};line-height:normal;padding:0.2em; |
|||
{{#if:{{{speaker|}}}| |
|||
| datastyle = border-bottom:none |
|||
{{#if:{{{state_legislature|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{speaker}}} [[Speaker of the {{{legislature|}}} Legislature]] |
|||
<!--------Speaker of the House---------> |
|||
{{!}}- |
|||
|{{#if:{{{ |
| header1 = {{#if:{{{speaker|}}}| |
||
{{{speaker}}} {{#if:{{{state_legislature|}}} |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{speaker}}} [[Speaker of the {{{state_assembly|}}} {{#ifeq:{{{state_assembly|}}}|Nevada||{{#ifeq:{{{state_assembly|}}}|New Jersey|General|State}}}} Assembly]] |
|||
|[[Speaker of the {{{state_legislature}}} Legislature]] |
|||
{{!}}- |
|||
|{{#if:{{{ |
|{{#if:{{{state_assembly|}}} |
||
|[[Speaker of the {{{state_assembly|}}} {{#ifeq:{{{state_assembly|}}}|Nevada||{{#ifeq:{{{state_assembly|}}}|New Jersey|General|State}}}} Assembly]] |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{speaker}}} {{#if:{{{speaker_office|}}}|{{{speaker_office}}}|[[Speaker of the {{#if:{{{state_delegate|}}} |{{{state_delegate}}}|{{#if:{{{state_house|}}} |{{{state_house}}}|United States}}}} House of {{#if:{{{state_delegate|}}}|Delegates|Representatives}}|Speaker of the {{#if:{{{state_delegate|}}} |{{{state_delegate}}}|{{#if:{{{state_house|}}} |{{{state_house}}}|U.S.}}}} House of {{#if:{{{state_delegate|}}}|Delegates|Representatives}}]]}} |
|||
|{{#if:{{{speaker_office|}}}|{{{speaker_office}}}|[[Speaker of the {{#if:{{{state_delegate|}}} |{{{state_delegate}}}|{{#if:{{{state_house|}}} |{{{state_house}}}|United States}}}} House of {{#if:{{{state_delegate|}}}|Delegates|Representatives}}|Speaker of the {{#if:{{{state_delegate|}}} |{{{state_delegate}}}|{{#if:{{{state_house|}}} |{{{state_house}}}|U.S.}}}} House of {{#if:{{{state_delegate|}}}|Delegates|Representatives}}]]}} |
|||
{{!}}- |
|||
}} |
|||
}}{{#if:{{{prior_term|}}}| |
|||
<br />{{{prior_term}}}}} |
|||
}} |
}} |
||
<!--------Office---------> |
|||
| header2 = {{#if:{{{nominee|}}}{{{candidate|}}}| |
|||
{{#if:{{{party_election|}}}{{{party|}}} |
|||
|{{#if:{{{party_election|}}}|{{{party_election}}}|{{{party}}}}} {{#if:{{{nominee|}}}|nominee for<br>{{{nominee}}}|candidate for<br>{{{candidate}}}}} |
|||
|{{#if:{{{nominee|}}}|Nominee for<br>{{{nominee}}}|Candidate for<br>{{{candidate}}}}} |
|||
}} }} |
|||
| data3 = {{#if:{{{nominee|}}}{{{candidate|}}}| |
|||
{{#if:{{{termstart|}}}{{{election_date|}}} | <span class="nowrap">'''Election date'''</span><br />{{#if:{{{election_date|}}}|{{{election_date}}}|{{{termstart}}}}} |
|||
}} }} |
|||
| header4 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}|| |
|||
{{#if:{{{jr/sr|}}}|[[United States Senate|<!--Changed code to eliminate "Junior/Senior" distinction for U.S. Senators per [[Template talk:Infobox Officeholder/Archive 9#Senior/Junior U.S. Senators]]{{{jr/sr}}}-->United States Senator{{#if:{{{succeeding|}}}{{{assuming|}}}|-elect}}]]<br />from {{{state}}} |
|||
}} }} |
|||
| header5 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}|| |
|||
{{{jr/sr and state|}}} |
|||
}} |
}} |
||
| header6 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}|| |
|||
{{#if:{{{state_senate|}}}|Member{{#if:{{{succeeding|}}}{{{assuming|}}}|-elect}} of the <span style="display: inline-block;">[[{{{state_senate}}} Senate]]</span><br />from the {{{district}}} district{{#if:{{{prior_term|}}}| |
|||
<br />{{{prior_term}}}}} |
|||
}} }} |
|||
| header7 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}|| |
|||
{{#if:{{{state_legislature|}}}|Member{{#if:{{{succeeding|}}}{{{assuming|}}}|-elect}} of the <span style="display: inline-block;">[[{{{state_legislature}}} Legislature]]</span><br />from the {{{district}}} district |
|||
}} }} |
|||
| header8 = {{#if:{{{ambassador_from|}}}{{{minister_from|}}}|| |
|||
{{#if:{{{order|}}} |
|||
|{{{order}}}{{#if:{{{office|}}} | [[{{{office}}}]]}}{{#if:{{{state|}}} | [[{{{state}}}]]}}{{#if:{{{title|}}} | {{{title}}}}} |
|||
|{{{office|}}} |
|||
}} }} |
|||
| header9 = {{#if:{{{ambassador_from|}}}{{{minister_from|}}}|| |
|||
{{#if:{{{order|}}} |
|||
||{{{title|}}} |
|||
}} }} |
|||
<!--------Ambassador---------> |
|||
| header10 = {{#if:{{both|{{{ambassador_from|}}}{{{minister_from|}}}|{{{country|}}}}} |
|||
|{{#if:{{{order|}}}|{{{order}}}}} {{#if:{{{minister_from|}}} |
|||
|[[{{{minister_from}}} Ambassador to {{CountryPrefixThe|{{{country}}}}}|{{{minister_from}}} Minister to {{CountryPrefixThe|{{{country}}}}}]] |
|||
|[[{{{ambassador_from}}} Ambassador to {{CountryPrefixThe|{{{country}}}}}]] |
|||
}} [[Category:Pages using infobox officeholder with ambassador from or minister from]] |
|||
}} |
}} |
||
<!--------MP---------> |
|||
| header11 = {{#if:{{{constituency_AM|}}}{{{constituency_MP|}}}| |
|||
{{#switch:{{{parliament|}}} |
|||
|Australian = Member of the <span style="display: inline-block;">[[Australian House of Representatives|Australian Parliament]]</span> |
|||
|European = [[Member of the European Parliament|Member of the <span style="display: inline-block;">European Parliament</span>]] |
|||
|Sri Lanka|Sri Lankan = [[Member of Parliament (Sri Lanka)|Member of Parliament]] |
|||
|United Kingdom|UK = [[Member of Parliament (United Kingdom)|Member of Parliament]] |
|||
|#default = {{#if:{{{constituency_AM|}}}|{{#if:{{{assembly|}}}|Member of the <span style="display: inline-block;">[[{{{assembly}}} Assembly]]</span>|Assembly Member}}|Member of {{#if:{{{parliament|}}}|the <span style="display: inline-block;">[[{{{parliament}}} Parliament]]</span>|Parliament}}}}}}<br />for {{#ifeq:{{Title disambig text|{{{constituency_MP|}}}}}|UK Parliament constituency |
|||
|{{{constituency_MP|}}} |
|||
|{{#if:{{#switch:{{{parliament|}}} |United Kingdom|UK| = {{Linkless exists|{{delink|{{{constituency_MP|}}}}} (UK Parliament constituency)}} }} |
|||
|{{#if:{{Constlk|{{delink|{{{constituency_MP|}}}}}}} |
|||
|{{Constlk|{{delink|{{{constituency_MP|}}}}}}} |
|||
|{{{constituency_{{#if:{{{constituency_AM|}}}|AM|MP}}}}}}} |
|||
|{{{constituency_{{#if:{{{constituency_AM|}}}|AM|MP}}}}}}}}} |
|||
}} |
}} |
||
| header12 = {{#if:{{{riding|}}}|{{#if:{{{constituency_AM|}}}|{{#if:{{{assembly|}}}|Member of the <span style="display: inline-block;">[[{{{assembly}}} Assembly]]</span>|Assembly Member}}| |
|||
<!----------Office----------> |
|||
{{#switch:{{{parliament|}}} |
|||
{{#if:{{{{{#if:{{{nominee|}}}|nominee|candidate}}|}}}| |
|||
|Canadian = [[Member of Parliament (Canada)|Member of Parliament]] |
|||
! 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}}|}}} |
|||
|#default = Member of {{#if:{{{parliament|}}}|the <span style="display: inline-block;">[[{{{parliament}}} Parliament]]</span>|Parliament}}}}}}<br />for {{{riding}}} |
|||
{{!}}- |
|||
{{#if:{{{termstart|}}}{{{election_date|}}} | |
|||
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Election date'''}}<br />{{#if:{{{election_date|}}}|{{{election_date}}}|{{{termstart}}}}} |
|||
{{!}}- |
|||
}} |
}} |
||
<!--------Majority Leader (State Senate)---------> |
|||
| header13 = {{#if:{{{majority_leader|}}}|{{{majority_leader}}} {{#if:{{{state_senate|}}}|[[Majority Leader of the {{{state_senate}}} Senate]]|[[United States Senate Majority Leader]]}} |
|||
}} |
}} |
||
{{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}|| |
|||
<!--------Majority Floor Leader (State Senate)---------> |
|||
{{#if:{{{jr/sr|}}}| |
|||
| header14 = {{#if:{{{majority_floor_leader|}}}|{{{majority_floor_leader}}} [[Majority Floor Leader of the {{{state_senate}}} Senate]] |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} [[United States Senate|<!--Changed code to eliminate "Junior/Senior" distinction for U.S. Senators per [[Template talk:Infobox Officeholder#Senior/Junior U.S. Senators]]{{{jr/sr}}}-->United States Senator{{#if:{{{succeeding|}}} |-elect}}]]<br />from {{{state}}} |
|||
{{!}}- |
|||
}} |
}} |
||
{{#if:{{{jr/sr and state|}}}| |
|||
<!--------Minority Leader (State Senate)---------> |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{jr/sr and state}}} |
|||
| header15 = {{#if:{{{minority_leader|}}}|{{{minority_leader}}} [[Minority Leader of the {{{state_senate}}} Senate]] |
|||
{{!}}- |
|||
}} |
}} |
||
{{#if:{{{state_senate|}}}| |
|||
<!--------Minority Floor Leader (State Senate)---------> |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{{state_senate}}} Senate]]<br />from the {{{district}}} district{{#if:{{{prior_term|}}}| |
|||
| header16 = {{#if:{{{minority_floor_leader|}}}|{{{minority_floor_leader}}} [[Minority Floor Leader of the {{{state_senate}}} Senate]] |
|||
<br /><small>{{{prior_term}}}</small>}} |
|||
{{!}}- |
|||
}} |
}} |
||
{{#if:{{{state_legislature|}}}| |
|||
<!--------Congressman---------> |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{{state_legislature}}} Legislature]]<br />from the {{{district}}} district |
|||
| header17 = {{#if:{{{state_legislature|}}}{{{state_senate|}}}{{{jr/sr|}}}{{{jr/sr and state|}}}|| |
|||
{{!}}- |
|||
{{#if:{{#if:{{{state|}}}|{{{constituency|}}}}}{{{district|}}}|{{#if:{{{state_assembly|}}} |
|||
|Member{{#if:{{{succeeding|}}}{{{assuming|}}}|-elect}} of the <span style="display: inline-block;">[[{{{state_assembly|}}} {{#ifeq:{{{state_assembly|}}}|Nevada||{{#ifeq:{{{state_assembly|}}}|New Jersey|General|State}}}} Assembly]]</span><br />from the |
|||
|Member{{#if:{{{succeeding|}}}{{{assuming|}}}|-elect}} of the <span style="display: inline-block;">[[{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|United States }}}} {{#if:{{{state_delegate|}}}|House of Delegates|House of Representatives}}|{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|U.S.}}}} {{#if:{{{state_delegate|}}}|House of Delegates|{{#if:{{{state_house|}}}| }}House of Representatives}}]]</span><br />from {{#if:{{{state_delegate|}}}|the |{{#if:{{{state_house|}}}|the |{{{state}}}{{#if:{{{district|}}}|'s}}}}}} |
|||
}} {{#if:{{{district|}}}|{{{district}}} district}}{{#if:{{{prior_term|}}}| |
|||
<br />{{{prior_term}}}}} |
|||
}} |
}} |
||
}} |
}} |
||
{{#if:{{{{{#if:{{{ambassador_from|}}}|ambassador|minister}}_from|}}}|| |
|||
<!--------Convocation---------> |
|||
{{#if:{{{order|}}} | |
|||
| header18 = {{#if:{{{convocation|}}}|{{{convocation}}}}} |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} <!-- |
|||
-->{{{order}}}<!-- |
|||
<!--------Term---------> |
|||
-->{{#if:{{{office|}}} | [[{{{office}}}]]}}<!-- |
|||
| data19 = {{#if:{{{termend|}}}{{{succeeding|}}}{{{assuming|}}}| |
|||
{{#if:{{{status|}}} |
|||
| <div style="width:100%; margin:0; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|}}| |
|||
--> |
|||
{{!}}-| |
|||
{{#if:{{{office|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{office}}} |
|||
{{!}}- |
|||
}} |
}} |
||
{{#if:{{{title|}}}| |
|||
| data20 = {{#if:{{{nominee|}}}{{{candidate|}}}|| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{title}}} |
|||
{{#if:{{{succeeding|}}}{{{assuming|}}} |
|||
{{!}}- |
|||
| <span class="nowrap">'''Assuming office'''</span><br />{{{termstart}}}{{#if:{{{term|}}}{{{termend|}}}|[[Category:Pages using infobox officeholder with succeeding and term or termend]]}} |
|||
}} |
|||
| {{#if: {{{term|}}} | <span class="nowrap">'''{{{termlabel|In office}}}'''</span><br />{{{term}}} }} |
|||
}} |
|||
}} |
}} }} |
||
<!----------Ambassador----------> |
|||
| data21 = {{#if:{{{nominee|}}}{{{candidate|}}}|| |
|||
{{#if:{{{{{#if:{{{ambassador_from|}}}|ambassador|minister}}_from|}}}| |
|||
{{#if:{{{ |
{{#if:{{{succeeding|}}}{{{assuming|}}} |
||
| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{order|}}}|{{{order}}}}} [[{{{{{#if:{{{ambassador_from|}}}|ambassador|minister}}_from}}} Ambassador to {{{country}}}{{#if:{{{minister_from|}}}|{{!}}{{{minister_from}}} Minister to {{{country}}}}}]] |
|||
|{{#if:{{{termstart|}}} |
|||
{{!}}- |
|||
| {{#if:{{{termend|}}} |
|||
}} |
|||
|<!--then: term has start and end:--><span class="nowrap">'''{{{termlabel|In office}}}'''</span><br />{{en dash range|{{{termstart}}}|{{{termend}}}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<div style="line-height:normal; padding-top:0.2em; padding-bottom:0.1em">{{#if:{{{alongside|}}}|Serving|Co-leading}} with {{#if:{{{alongside|}}}|{{{alongside}}}|{{{co-leader}}}}}</div>}} |
|||
}} |
|||
|{{#if:{{{status|}}}|<div style="width:100%; margin:0; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|<!--else: term is ongoing--><div style="width:100%; margin:0; background-color: {{{color|lavender}}}">'''[[Incumbent]]'''</div>}} |
|||
<!----------MP----------> |
|||
}} |
|||
{{#if:{{{constituency_AM|}}}{{{constituency_MP|}}}| |
|||
}} |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#ifeq:{{{parliament|}}}|Ireland|[[Teachta Dála]]|{{#if:{{{constituency_AM|}}}|{{#if:{{{assembly|}}}|Member of the [[{{{assembly}}} Assembly]]|Assembly Member}}|Member of {{#if:{{{parliament|}}}|the [[{{{parliament}}} Parliament]]|Parliament}}}}}}<br />for {{{constituency_{{#if:{{{constituency_AM|}}}|AM|MP}}}}} |
|||
}} }} |
|||
}} |
|||
{{#if:{{{ |
| data22 = {{#if:{{{nominee|}}}{{{candidate|}}}|| |
||
{{#if:{{{succeeding|}}}{{{assuming|}}} |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{constituency_AM|}}}|{{#if:{{{assembly|}}}|Member of the [[{{{assembly}}} Assembly]]|Assembly Member}}|Member of {{#if:{{{parliament|}}}|the [[{{{parliament}}} Parliament]]|Parliament}}}}<br />for {{{riding}}} |
|||
| |
|||
{{!}}- |
|||
|{{#if:{{{termstart|}}} |
|||
}} |
|||
|{{#if:{{{termend|}}} |
|||
<!----------Majority Leader (State Senate)----------> |
|||
{{#if:{{{majority_leader|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{majority_leader}}} {{#if:{{{state_senate|}}}|[[Majority Leader of the {{{state_senate}}} Senate]]|[[United States Senate Majority Leader]]}} |
|||
{{!}}- |
|||
}} |
|||
<!----------Majority Floor Leader (State Senate)----------> |
|||
{{#if:{{{majority_floor_leader|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{majority_floor_leader}}} [[Majority Floor Leader of the {{{state_senate}}} Senate]] |
|||
{{!}}- |
|||
}} |
|||
<!----------Minority Leader (State Senate)----------> |
|||
{{#if:{{{minority_leader|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{minority_leader}}} [[Minority Leader of the {{{state_senate}}} Senate]] |
|||
{{!}}- |
|||
}} |
|||
<!----------Minority Floor Leader (State Senate)----------> |
|||
{{#if:{{{minority_floor_leader|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{minority_floor_leader}}} [[Minority Floor Leader of the {{{state_senate}}} Senate]] |
|||
{{!}}- |
|||
}} |
|||
<!----------Congressman----------> |
|||
{{#if:{{{state_legislature|}}}{{{state_senate|}}}{{{jr/sr|}}}{{{jr/sr and state|}}}|| |
|||
{{#if:{{{district|}}}| |
|||
{{#if:{{{succeeding|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member-elect of the [[United States House of Representatives|U.S. House of Representatives]]{{#if:{{{state|}}}| from<br />{{{state}}}'s {{{district}}}}} district |
|||
{{!}}-|{{#if:{{{state_assembly|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{{state_assembly|}}} {{#ifeq:{{{state_assembly|}}}|Nevada||{{#ifeq:{{{state_assembly|}}}|New Jersey|General|State}}}} Assembly]]<br />from {{#if:{{{state_assembly|}}}|the {{{district}}}}} district |
|||
{{!}}- |
|||
|{{#if:{{{district|}}}| |
|||
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|United States }}}} {{#if:{{{state_delegate|}}}|House of Delegates|House of Representatives}}|{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|U.S.}}}} {{#if:{{{state_delegate|}}}|House of Delegates|{{#if:{{{state_house|}}}| }}House of Representatives}}]]<br />from {{#if:{{{state_delegate|}}}|the |{{#if:{{{state_house|}}}|the |{{{state}}}'s}}}} {{{district}}} district{{#if:{{{prior_term|}}}| |
|||
<br /><small>{{{prior_term}}}</small>}} |
|||
{{!}}- |
|||
}} |
|||
}} |
|||
}} |
|||
}} |
|||
}} |
|||
<!----------Term----------> |
|||
{{#if:{{{{{#if:{{{nominee|}}}|nominee|candidate}}|}}}|| |
|||
{{#if:{{{succeeding|}}}| |
|||
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Taking office'''}}<br />{{{termstart}}} |
|||
{{!}}- |
|||
|{{#if: {{{term|}}}| |
|||
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''In office'''}}<br />{{{term}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{termstart|}}}| |
|||
{{#if:{{{termend|}}} |
|||
|<!--then term has start and end:--> |
|||
{{!}}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--> |
|||
{{!}}colspan=2 style="text-align:center; background-color: lavender"{{!}} '''[[Incumbent]]''' |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{termend|}}} |
|||
|<!--then nothing else; term has ended--> |
|<!--then nothing else; term has ended--> |
||
|<!--else term is ongoing:--><span class="nowrap">'''{{#if:{{{termlabel|}}}|{{str rep|1={{{termlabel}}}|2=In office|3=Assumed office}}|Assumed office}}'''</span> <br />{{{termstart}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<div style="line-height:normal; padding-top:0.2em; padding-bottom:0.1em">{{#if:{{{alongside|}}}|Serving|Co-leader}} with {{#if:{{{alongside|}}}|{{{alongside}}}|{{{co-leader}}}}}</div>}} |
|||
|<!--else term is ongoing:--> |
|||
}} |
|||
{{!}}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}}}}}}} |
|||
}} |
|||
}} |
}} }} |
||
}} |
|||
}} }}<!-- |
|||
}} |
|||
end infobox1 / start infobox2 |
|||
}} |
|||
-->{{#if:{{{monarch|}}}{{{president|}}}{{{governor-general|}}}{{{governor_general|}}}{{{primeminister|}}}{{{chancellor|}}}{{{minister|}}}{{{taoiseach|}}}{{{firstminister|}}}{{{chiefminister|}}}{{{premier|}}}{{{governor|}}}{{{lieutenant_governor|}}}{{{vicepresident|}}}{{{vicegovernor|}}}{{{viceprimeminister|}}}{{{vicepremier|}}}{{{deputy|}}}{{{leader|}}}{{{lieutenant|}}}{{{nominator|}}}{{{appointer|}}}{{{opponent|}}}{{{incumbent|}}}{{{succeeding|}}}{{{assuming|}}}{{{preceding|}}}{{{predecessor|}}}{{{preceded|}}}{{{successor|}}}{{{succeeded|}}}{{{parliamentarygroup|}}}{{{constituency|}}}{{{majority|}}}{{{suboffice|}}}{{{1namedata|}}}{{{2namedata|}}}{{{3namedata|}}}{{{4namedata|}}}{{{5namedata|}}}{{{runningmate|}}}| |
|||
<!---------- President, Prime Minister, Governor----------> |
|||
{{#invoke:infobox|infoboxTemplate|child=yes |
|||
{{#if:{{{monarch|}}}| |
|||
| labelstyle = text-align:left |
|||
{{!}} {{{monarch}}} |
|||
| label1 = <span class="nowrap">Nominated by</span> |
|||
{{!}}- |
|||
| data1 = {{{nominator|}}} |
|||
}} |
|||
{{#if:{{{president|}}}| |
|||
| label2 = <span class="nowrap">Appointed by</span> |
|||
! style="text-align:left;" {{!}} President |
|||
| data2 = {{{appointer|}}} |
|||
{{!}}- |
|||
<!--------President, Prime Minister, Governor---------> |
|||
}} |
|||
| label3 = Monarch{{#if:{{detect singular|{{{monarch|}}}}}||s}} |
|||
{{#if:{{{governor_general|}}}| |
|||
| data3 = {{{monarch|}}} |
|||
! style="text-align:left;" {{!}} {{nowrap|Governor General}} |
|||
{{!}} {{{governor_general}}} |
|||
| label4 = President |
|||
{{!}}- |
|||
| data4 = {{{president|}}} |
|||
}} |
|||
{{#if:{{{primeminister|}}}| |
|||
| label5 = {{#if:{{{governor_general|}}}|Governor General|Governor-General}} |
|||
! style="text-align:left;" {{!}} {{nowrap|Prime Minister}} |
|||
| data5 = {{#if:{{{governor_general|}}}|{{{governor_general}}}|{{{governor-general|}}}}} |
|||
{{!}} {{{primeminister}}} |
|||
{{!}}- |
|||
| label6 = <span class="nowrap">Prime Minister</span> |
|||
}} |
|||
| data6 = {{{primeminister|}}} |
|||
{{#if:{{{chancellor|}}}| |
|||
! style="text-align:left;" {{!}} Chancellor |
|||
| label7 = Chancellor |
|||
{{!}} {{{chancellor}}} |
|||
| data7 = {{{chancellor|}}} |
|||
{{!}}- |
|||
}} |
|||
| label8 = Minister |
|||
{{#if:{{{minister|}}}| |
|||
| data8 = {{{minister|}}} |
|||
! style="text-align:left;" {{!}} Minister |
|||
{{!}} {{{minister}}} |
|||
| label9 = Taoiseach |
|||
{{!}}- |
|||
| data9 = {{{taoiseach|}}} |
|||
}} |
|||
{{#if:{{{taoiseach|}}}| |
|||
| label10 = <span class="nowrap">First Minister</span> |
|||
! style="text-align:left;" {{!}} Taoiseach |
|||
| data10 = {{{firstminister|}}} |
|||
{{!}}- |
|||
| label11 = <span class="nowrap">Chief Minister</span> |
|||
}} |
|||
| data11 = {{{chiefminister|}}} |
|||
{{#if:{{{firstminister|}}}| |
|||
! style="text-align:left;" {{!}} {{nowrap|First Minister}} |
|||
| label12 = Premier |
|||
{{!}} {{{firstminister}}} |
|||
| data12 = {{{premier|}}} |
|||
{{!}}- |
|||
}} |
|||
| label13 = Governor |
|||
{{#if:{{{chiefminister|}}}| |
|||
| data13 = {{{governor|}}} |
|||
! style="text-align:left;" {{!}} {{nowrap|Chief Minister}} |
|||
{{!}} {{{chiefminister}}} |
|||
| label14 = Lieutenant Governor |
|||
{{!}}- |
|||
| data14 = {{{lieutenant_governor|}}} |
|||
}} |
|||
{{#if:{{{premier|}}}| |
|||
<!--------Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s---------> |
|||
! style="text-align:left;" {{!}} Premier |
|||
| label15 = <span class="nowrap">{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice President]]|Vice President}}|Vice President}}</span> |
|||
{{!}} {{{premier}}} |
|||
| data15 = {{{vicepresident|}}} |
|||
{{!}}- |
|||
}} |
|||
| label16 = <span class="nowrap">{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice Governor]]|Vice Governor}}|Vice Governor}}</span> |
|||
{{#if:{{{governor|}}}| |
|||
| data16 = {{{vicegovernor|}}} |
|||
! Governor |
|||
{{!}} {{{governor}}} |
|||
| label17 = <span class="nowrap">{{#if:{{{office|}}}|[[Vice {{{office}}}|Vice PM]]|Vice [[Prime Minister|PM]]}}</span> |
|||
{{!}}- |
|||
| data17 = {{{viceprimeminister|}}} |
|||
}} |
|||
{{#if:{{{lieutenant_governor|}}}| |
|||
| label18 = <span class="nowrap">{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice Premier]]|Vice Premier}}|Vice Premier}}</span> |
|||
! style="text-align:left;" {{!}} {{nowrap|Lieutenant Governor}} |
|||
| data18 = {{{vicepremier|}}} |
|||
{{!}} {{{lieutenant_governor}}} |
|||
{{!}}- |
|||
| label19 = {{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Deputy {{{office}}}}}|valid|[[Deputy {{{office}}}|Deputy]]|Deputy}}|Deputy}} |
|||
}} |
|||
| data19 = {{{deputy|}}} |
|||
<!---------- Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s----------> |
|||
{{#if:{{{vicepresident|}}}| |
|||
| label20 = Leader |
|||
! style="text-align:left;" {{!}} {{nowrap|{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice President]]|Vice President}}|Vice President}}}} |
|||
| data20 = {{{leader|}}} |
|||
{{!}}- |
|||
| label21 = {{#if:{{{office|}}}|[[Lieutenant {{{office}}}|Lieutenant]]|Lieutenant}} |
|||
}} |
|||
| data21 = {{{lieutenant|}}} |
|||
{{#if:{{{vicegovernor|}}}| |
|||
! style="text-align:left;" {{!}} {{nowrap|{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice Governor]]|Vice Governor}}|Vice Governor}}}} |
|||
{{ |
| label22 = {{nowrap|{{{subterm|}}}}} |
||
| data22 = {{{suboffice|}}} |
|||
{{!}}- |
|||
}} |
|||
<!--------Blank fields---------> |
|||
{{#if:{{{viceprimeminister|}}}| |
|||
| label23 = {{{1blankname|}}} |
|||
! style="text-align:left;" {{!}} {{nowrap|{{#if:{{{office|}}}|[[Vice {{{office}}}|Vice PM]]|Vice [[Prime Minister|PM]]}}}} |
|||
| data23 = {{{1namedata|}}} |
|||
{{!}}- |
|||
| label24 = {{{2blankname|}}} |
|||
}} |
|||
| data24 = {{{2namedata|}}} |
|||
{{#if:{{{vicepremier|}}}| |
|||
! style="text-align:left;" {{!}} {{nowrap|{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice Premier]]|Vice Premier}}|Vice Premier}}}} |
|||
| label25 = {{{3blankname|}}} |
|||
| data25 = {{{3namedata|}}} |
|||
{{!}}- |
|||
}} |
|||
{{ |
| label26 = {{{4blankname|}}} |
||
| data26 = {{{4namedata|}}} |
|||
! style="text-align:left;" {{!}} {{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Deputy {{{office}}}}}|valid|[[Deputy {{{office}}}|Deputy]]|Deputy}}|Deputy}} |
|||
{{!}} {{{deputy}}} |
|||
| label27 = {{{5blankname|}}} |
|||
{{!}}- |
|||
| data27 = {{{5namedata|}}} |
|||
}} |
|||
{{#if:{{{leader|}}}| |
|||
<!--------Predecessor/successor---------> |
|||
! style="text-align:left;" {{!}} Leader |
|||
| label28 = <span class="nowrap">Running mate</span> |
|||
{{!}} {{{leader}}} |
|||
| data28 = {{{runningmate|}}} |
|||
{{!}}- |
|||
}} |
|||
| label29 = Opponent{{Pluralize from text|{{{opponent|}}}|likely=(s)|plural=s}} |
|||
{{#if:{{{lieutenant|}}}| |
|||
| data29 = {{{opponent|}}} |
|||
! style="text-align:left;" {{!}} {{#if:{{{office|}}}|[[Lieutenant {{{office}}}|Lieutenant]]|Lieutenant}} |
|||
{{!}} {{{lieutenant}}} |
|||
| label30 = Incumbent |
|||
{{!}}- |
|||
| data30 = {{{incumbent|}}} |
|||
}} |
|||
{{#if:{{{nominator|}}}| |
|||
| label31 = {{#if:{{{succeeding|}}}|Succeeding|Preceding}} |
|||
! style="text-align:left;" {{!}} {{nowrap|Nominated by}} |
|||
| data31 = {{#if:{{{succeeding|}}}|{{{succeeding|}}}|{{{preceding|}}}}} |
|||
{{!}} {{{nominator}}} |
|||
{{!}}- |
|||
| label32 = <span class="nowrap">Preceded by</span> |
|||
}} |
|||
| data32 = {{#if:{{{succeeding|}}}||{{#if:{{{predecessor|}}}|{{{predecessor}}}|{{{preceded|}}}}}}} |
|||
{{#if:{{{appointer|}}}| |
|||
! style="text-align:left;" {{!}} {{nowrap|Appointed by}} |
|||
| label33 = <span class="nowrap">Succeeded by</span> |
|||
{{!}} {{{appointer}}} |
|||
| data33 = {{#if:{{{succeeding|}}}||{{#switch:{{#if:{{{successor|}}}|{{{successor}}}|{{{succeeded|}}}}} |
|||
{{!}}- |
|||
}} |
|||
<!---------- Blank fields ----------> |
|||
{{#if:{{{1namedata|}}}| |
|||
! style="text-align:left;" {{!}} {{{1blankname|}}} |
|||
{{!}} {{{1namedata}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{2namedata|}}}| |
|||
! style="text-align:left;" {{!}} {{{2blankname|}}} |
|||
{{!}} {{{2namedata}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{3namedata|}}}| |
|||
! style="text-align:left;" {{!}} {{{3blankname|}}} |
|||
{{!}} {{{3namedata}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{4namedata|}}}| |
|||
! style="text-align:left;" {{!}} {{{4blankname|}}} |
|||
{{!}} {{{4namedata}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{5namedata|}}}| |
|||
! style="text-align:left;" {{!}} {{{5blankname|}}} |
|||
{{!}} {{{5namedata}}} |
|||
{{!}}- |
|||
}} |
|||
<!----------Predecessor/successor----------> |
|||
{{#if:{{{runningmate|}}}| |
|||
! style="text-align:left;" {{!}} {{nowrap|Running mate}} |
|||
{{!}} {{{runningmate}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{opponent|}}}| |
|||
! style="text-align:left;" {{!}} Opponent(s) |
|||
{{!}} {{{opponent}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{incumbent|}}}| |
|||
! style="text-align:left;" {{!}} Incumbent |
|||
{{!}} {{{incumbent}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{succeeding|}}}| |
|||
! style="text-align:left;" {{!}} Succeeding |
|||
{{!}} {{{succeeding}}} |
|||
{{!}}- |
|||
|{{#if:{{{preceding|}}}| |
|||
! style="text-align:left;" {{!}} Preceding |
|||
{{!}} {{{preceding}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{{{#if:{{{predecessor|}}}|predecessor|preceded}}|}}} | |
|||
! style="text-align:left;" {{!}} style="text-align:left;" {{!}} {{nowrap|Preceded by}} |
|||
{{!}} {{{{{#if:{{{predecessor|}}}|predecessor|preceded}}|}}} |
|||
{{!}}- |
|||
}} |
|||
{{#switch:{{{{{#if:{{{successor|}}}|successor|succeeded}}|}}} |
|||
| Incumbent |
| Incumbent |
||
| '''Incumbent''' |
| '''Incumbent''' |
||
Line 314: | Line 263: | ||
| ''incumbent'' |
| ''incumbent'' |
||
| [[incumbent]] = |
| [[incumbent]] = |
||
| |
| #default = {{#if:{{{successor|}}}|{{{successor}}}|{{{succeeded|}}}}} |
||
! style="text-align:left;" {{!}} {{nowrap|Succeeded by}} |
|||
{{!}} {{{{{#if:{{{successor|}}}|successor|succeeded}}|}}} }} |
|||
{{!}}- |
|||
}}}} |
}}}} |
||
<!-----Constituency-----> |
<!--------Constituency/Majority---------> |
||
| label34 = [[Parliamentary group]] |
|||
{{#if:{{{constituency|}}}| |
|||
| data34 = {{{parliamentarygroup|}}} |
|||
! style="text-align:left;" {{!}} Constituency |
|||
{{!}} {{{constituency}}} |
|||
| label35 = Constituency |
|||
{{!}}- |
|||
| data35 = {{{constituency|}}} |
|||
}} |
|||
<!-----Majority-----> |
|||
| label36 = Majority |
|||
{{#if:{{{majority|}}}| |
|||
| data36 = {{{majority|}}} |
|||
! style="text-align:left;" {{!}} Majority |
|||
}} }}<noinclude>{{documentation}}</noinclude> |
|||
{{!}} {{{majority}}} |
|||
{{!}}- |
|||
}}</includeonly><noinclude>{{doc}}</noinclude> |