Template:Infobox officeholder/office: Difference between revisions
Jump to navigation
Jump to search
[[Pages]]>ISUtahraptor No edit summary |
Tag: Undo |
||
(7 intermediate revisions by the same user 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|}}}{{{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|}}} | |||
<! | |{{#invoke:infobox|infoboxTemplate|child=yes|decat=yes | ||
{{#if:{{{speaker|}}}| | | headerstyle = background:{{{color|lavender}}};line-height:normal;padding:0.2em 0.2em | ||
{{#if:{{{state_legislature|}}}| | | datastyle = border-bottom:none | ||
<!--------Speaker of the House---------> | |||
|{{#if:{{{state_assembly|}}}| | | header1 = {{#if:{{{speaker|}}}| | ||
{{{speaker}}} {{#if:{{{state_legislature|}}} | |||
{{ | |[[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]] | |||
{{ | |{{#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|}}} |-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|}}} |-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|}}} |-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|}}}| | |||
{{#ifeq:{{{parliament|}}}|Ireland|[[Teachta Dála]]|{{#ifeq:{{{parliament|}}}|Australian|Member of the <span style="display: inline-block;">[[Parliament of Australia|Australian Parliament]]</span>|{{#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 {{{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}}|Member of {{#if:{{{parliament|}}}|the <span style="display: inline-block;">[[{{{parliament}}} Parliament]]</span>|Parliament}}}}<br />for {{{riding}}} | |||
{{#if:{{{ | |||
}} | }} | ||
<!--------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]]}} | |||
}} | }} | ||
<!--------Majority Floor Leader (State Senate)---------> | |||
! | | header14 = {{#if:{{{majority_floor_leader|}}}|{{{majority_floor_leader}}} [[Majority Floor Leader of the {{{state_senate}}} Senate]] | ||
{{ | |||
}} | }} | ||
{{#if:{{{ | |||
<!--------Minority Leader (State Senate)---------> | |||
| header15 = {{#if:{{{minority_leader|}}}|{{{minority_leader}}} [[Minority Leader of the {{{state_senate}}} Senate]] | |||
}} | }} | ||
! | <!--------Minority Floor Leader (State Senate)---------> | ||
| header16 = {{#if:{{{minority_floor_leader|}}}|{{{minority_floor_leader}}} [[Minority Floor Leader of the {{{state_senate}}} Senate]] | |||
{{ | |||
}} | }} | ||
{{#if:{{{state_legislature|}}}| | |||
<!--------Congressman---------> | |||
{{ | | header17 = {{#if:{{{state_legislature|}}}{{{state_senate|}}}{{{jr/sr|}}}{{{jr/sr and state|}}}|| | ||
{{#if:{{{district|}}}|{{#if:{{{state_assembly|}}} | |||
|Member{{#if:{{{succeeding|}}}|-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|}}}|-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}}}'s}}}} | |||
}} {{{district}}} district{{#if:{{{prior_term|}}}| | |||
<br />{{{prior_term}}}}} | |||
}} | }} | ||
}} | }} | ||
<!--------Convocation---------> | |||
! | | header18 = {{#if:{{{convocation|}}}|{{{convocation}}}}} | ||
-- | |||
-->{{#if:{{{ | <!--------Term---------> | ||
-- | | data19 = {{#if:{{{termend|}}}{{{succeeding|}}}| | ||
-->{{#if:{{{ | {{#if:{{{status|}}} | ||
| <div style="width:100%; margin:0; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|}}| | |||
{{#if:{{{ | |||
}} | }} | ||
{{#if:{{{ | |||
| data20 = {{#if:{{{nominee|}}}{{{candidate|}}}|| | |||
{{#if:{{{succeeding|}}} | |||
| <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}}} }} | |||
}} }} | |||
| data21 = {{#if:{{{nominee|}}}{{{candidate|}}}|| | |||
{{#if:{{{ | {{#if:{{{succeeding|}}} | ||
| | |||
|{{#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>}} | ||
{{ | }} | ||
}} | |||
}} }} | |||
| data22 = {{#if:{{{nominee|}}}{{{candidate|}}}|| | |||
{{#if:{{{succeeding|}}} | |||
| | |||
|{{#if:{{{termstart|}}} | |||
|{{#if:{{{termend|}}} | |||
{{#if:{{{ | |||
<!-- | |||
< | |||
< | |||
< | |||
}} | |||
{{#if:{{{ | |||
| | |||
{{#if:{{{termend|}}} | |||
|<!--then nothing else; term has ended--> | |<!--then nothing else; term has ended--> | ||
|<!--else term is ongoing:--> | |<!--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>}} | ||
{{ | }} | ||
}} | |||
}} | }} }} | ||
}} | |||
}} | }} }}<!-- | ||
}} | 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|}}}{{{preceding|}}}{{{predecessor|}}}{{{preceded|}}}{{{successor|}}}{{{succeeded|}}}{{{parliamentarygroup|}}}{{{constituency|}}}{{{majority|}}}{{{suboffice|}}}{{{1namedata|}}}{{{2namedata|}}}{{{3namedata|}}}{{{4namedata|}}}{{{5namedata|}}}{{{runningmate|}}}| | ||
{{#invoke:infobox|infoboxTemplate|child=yes | |||
| labelstyle = text-align:left | |||
{{ | |||
{{ | | label1 = <span class="nowrap">Nominated by</span> | ||
}} | | data1 = {{{nominator|}}} | ||
{{ | |||
| label2 = <span class="nowrap">Appointed by</span> | |||
{{ | | data2 = {{{appointer|}}} | ||
{{ | |||
} | <!--------President, Prime Minister, Governor---------> | ||
{{ | | label3 = Monarch | ||
| data3 = {{{monarch|}}} | |||
{{ | |||
{{ | | label4 = President | ||
}} | | data4 = {{{president|}}} | ||
{{ | |||
| label5 = {{#if:{{{governor_general|}}}|Governor General|Governor-General}} | |||
| data5 = {{#if:{{{governor_general|}}}|{{{governor_general}}}|{{{governor-general|}}}}} | |||
{{ | |||
}} | | label6 = <span class="nowrap">Prime Minister</span> | ||
{{ | | data6 = {{{primeminister|}}} | ||
{{ | | label7 = Chancellor | ||
{{ | | data7 = {{{chancellor|}}} | ||
} | |||
| label8 = Minister | |||
| data8 = {{{minister|}}} | |||
{{ | |||
{{ | | label9 = Taoiseach | ||
}} | | data9 = {{{taoiseach|}}} | ||
{{ | |||
| label10 = <span class="nowrap">First Minister</span> | |||
{{ | | data10 = {{{firstminister|}}} | ||
| label11 = <span class="nowrap">Chief Minister</span> | |||
| data11 = {{{chiefminister|}}} | |||
{{ | | label12 = Premier | ||
| data12 = {{{premier|}}} | |||
}} | |||
{{#if:{{{ | | label13 = Governor | ||
| data13 = {{{governor|}}} | |||
{{ | | label14 = Lieutenant Governor | ||
| data14 = {{{lieutenant_governor|}}} | |||
<!--------Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s---------> | |||
| label15 = <span class="nowrap">{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice President]]|Vice President}}|Vice President}}</span> | |||
{{ | | data15 = {{{vicepresident|}}} | ||
{{ | | label16 = <span class="nowrap">{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice Governor]]|Vice Governor}}|Vice Governor}}</span> | ||
| data16 = {{{vicegovernor|}}} | |||
{{ | |||
{{ | | label17 = <span class="nowrap">{{#if:{{{office|}}}|[[Vice {{{office}}}|Vice PM]]|Vice [[Prime Minister|PM]]}}</span> | ||
| data17 = {{{viceprimeminister|}}} | |||
! | | label18 = <span class="nowrap">{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Vice {{{office}}}}}|valid|[[Vice {{{office}}}|Vice Premier]]|Vice Premier}}|Vice Premier}}</span> | ||
{{ | | data18 = {{{vicepremier|}}} | ||
{{ | |||
}} | | label19 = {{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Deputy {{{office}}}}}|valid|[[Deputy {{{office}}}|Deputy]]|Deputy}}|Deputy}} | ||
| data19 = {{{deputy|}}} | |||
| label20 = Leader | |||
{ | | data20 = {{{leader|}}} | ||
{{ | |||
| label21 = {{#if:{{{office|}}}|[[Lieutenant {{{office}}}|Lieutenant]]|Lieutenant}} | |||
| data21 = {{{lieutenant|}}} | |||
{{ | | label22 = {{nowrap|{{{subterm|}}}}} | ||
{{ | | data22 = {{{suboffice|}}} | ||
}} | |||
{{# | <!--------Blank fields---------> | ||
| label23 = {{{1blankname|}}} | |||
{{ | | data23 = {{{1namedata|}}} | ||
| label24 = {{{2blankname|}}} | |||
{{ | | data24 = {{{2namedata|}}} | ||
{{ | | label25 = {{{3blankname|}}} | ||
{{ | | data25 = {{{3namedata|}}} | ||
{{ | | label26 = {{{4blankname|}}} | ||
| data26 = {{{4namedata|}}} | |||
| label27 = {{{5blankname|}}} | |||
| data27 = {{{5namedata|}}} | |||
<!--------Predecessor/successor---------> | |||
{{ | | label28 = <span class="nowrap">Running mate</span> | ||
{{ | | data28 = {{{runningmate|}}} | ||
}} | |||
{{#if:{{{ | | label29 = Opponent(s) | ||
| data29 = {{{opponent|}}} | |||
{ | |||
{{ | | label30 = Incumbent | ||
| data30 = {{{incumbent|}}} | |||
| label31 = {{#if:{{{succeeding|}}}|Succeeding|Preceding}} | |||
| data31 = {{#if:{{{succeeding|}}}|{{{succeeding|}}}|{{{preceding|}}}}} | |||
| label32 = <span class="nowrap">Preceded by</span> | |||
{{#if:{{{ | | data32 = {{#if:{{{succeeding|}}}||{{#if:{{{predecessor|}}}|{{{predecessor}}}|{{{preceded|}}}}}}} | ||
| label33 = <span class="nowrap">Succeeded by</span> | |||
{{ | | data33 = {{#if:{{{succeeding|}}}||{{#switch:{{#if:{{{successor|}}}|{{{successor}}}|{{{succeeded|}}}}} | ||
| Incumbent | | Incumbent | ||
| '''Incumbent''' | | '''Incumbent''' | ||
| ''Incumbent'' | | ''Incumbent'' | ||
| Incumbent | | [[Incumbent]] | ||
| incumbent | | incumbent | ||
| '''incumbent''' | | '''incumbent''' | ||
| ''incumbent'' | | ''incumbent'' | ||
| incumbent = | | [[incumbent]] = | ||
| | | #default = {{#if:{{{successor|}}}|{{{successor}}}|{{{succeeded|}}}}} | ||
}}}} | }}}} | ||
<!-----Constituency-----> | <!--------Constituency/Majority---------> | ||
| label34 = [[Parliamentary group]] | |||
| data34 = {{{parliamentarygroup|}}} | |||
| label35 = Constituency | |||
| data35 = {{{constituency|}}} | |||
| label36 = Majority | |||
| data36 = {{{majority|}}} | |||
}} }}<noinclude>{{documentation}}</noinclude> | |||
{{ | |||
}}</ |
Latest revision as of 22:06, 4 June 2021
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |