Anonymous user
Template:Infobox officeholder/office: Difference between revisions
Template:Infobox officeholder/Office without number 1 param
(syncing with sandbox, per main talk) |
(Template:Infobox officeholder/Office without number 1 param) |
||
Line 16:
}}
<!----------Office---------->
{{#if:{{{{{#if:{{{nominee
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{party{{#if:{{{party_election
{{!}}-
{{#if:{{{term{{#if:{{{termstart
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Election date'''}}<br />{{#if:{{{election_date
{{!}}-
}}
}}
{{#if:{{{majority_leader
{{#if:{{{jr/sr
! 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
{{!}}-
}}
{{#if:{{{jr/sr and state
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{jr/sr and state
{{!}}-
}}
{{#if:{{{state_senate
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{{state_senate
<br /><small>{{{prior_term
{{!}}-
}}
{{#if:{{{state_legislature
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{{state_legislature
{{!}}-
}}
}}
{{#if:{{{{{#if:{{{ambassador_from
{{#if:{{{order
! colspan=2 style="background-color: lavender; text-align: center" {{!}} <!--
-->{{{order
-->{{#if:{{{office
-->{{#if:{{{state
-->{{#if:{{{title
-->
{{!}}-|
{{#if:{{{office
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{office
{{!}}-
}}
{{#if:{{{title
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{title
{{!}}-
}}
Line 63:
}}
<!----------Ambassador---------->
{{#if:{{{{{#if:{{{ambassador_from
{{#if:{{{country
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{order
{{!}}-
}}
}}
<!----------MP---------->
{{#if:{{{constituency_{{#if:{{{constituency_AM
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#ifeq:{{{parliament
{{!}}-
}}
{{#if:{{{riding
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{#if:{{{constituency_AM
{{!}}-
}}
<!----------Majority Leader (State Senate)---------->
{{#if:{{{majority_leader
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{majority_leader
{{!}}-
}}
<!----------Majority Floor Leader (State Senate)---------->
{{#if:{{{majority_floor_leader
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{majority_floor_leader
{{!}}-
}}
<!----------Minority Leader (State Senate)---------->
{{#if:{{{minority_leader
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{minority_leader
{{!}}-
}}
<!----------Minority Floor Leader (State Senate)---------->
{{#if:{{{minority_floor_leader
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{minority_floor_leader
{{!}}-
}}
<!----------Majority Leader---------->
{{#if:{{{majorityleader
! colspan=2 style="background-color: lavender; text-align: center" {{!}} {{{majorityleader
{{!}}-
}}
<!----------Congressman---------->
{{#if:{{{state_legislature
{{#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
{{!}}-|{{#if:{{{state_assembly
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{{state_assembly
{{!}}-
|{{#if:{{{district
! colspan=2 style="background-color: lavender; text-align: center" {{!}} Member of the [[{{#if:{{{state_house
<br /><small>{{{prior_term
{{!}}-
}}
Line 121:
}}
<!----------Term---------->
{{#if:{{{{{#if:{{{nominee
{{#if:{{{succeeding
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''Taking office'''}}<br />{{{term{{#if:{{{termstart
{{!}}-
|{{#if: {{{term
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''In office'''}}<br />{{{term
{{!}}-
}}
{{#if:{{{term{{#if:{{{termstart
{{#if:{{{term{{#if:{{{termend
|<!--then term has start and end:-->
{{!}}colspan=2 style="border-bottom:none; text-align:center"{{!}}{{nowrap|'''In office'''}}<br />{{{term{{#if:{{{termstart
{{!}}-
|<!--else:--> <!--term is ongoing-->
Line 138:
{{!}}-
}}
{{#if:{{{term{{#if:{{{termend
|<!--then nothing else; term has ended-->
|<!--else term is ongoing:-->
{{!}}colspan=2 style="text-align:center"{{!}}{{nowrap|'''Assumed office'''}} <br />{{{term{{#if:{{{termstart
{{!}}-
}}
Line 148:
}}
<!---------- President, Prime Minister, Governor---------->
{{#if:{{{monarch
! Monarch
{{!}} {{{monarch
{{!}}-
}}
{{#if:{{{president
! President
{{!}} {{{president
{{!}}-
}}
{{#if:{{{governor{{#if:{{{governor-general
! Governor{{#if:{{{governor-general
{{!}} {{{governor{{#if:{{{governor-general
{{!}}-
}}
{{#if:{{{primeminister
! {{nowrap|Prime Minister}}
{{!}} {{{primeminister
{{!}}-
}}
{{#if:{{{chancellor
! Chancellor
{{!}} {{{chancellor
{{!}}-
}}
{{#if:{{{taoiseach
! Taoiseach
{{!}} {{{taoiseach
{{!}}-
}}
{{#if:{{{firstminister
! {{nowrap|First Minister}}
{{!}} {{{firstminister
{{!}}-
}}
{{#if:{{{chiefminister
! {{nowrap|Chief Minister}}
{{!}} {{{chiefminister
{{!}}-
}}
{{#if:{{{premier
! Premier
{{!}} {{{premier
{{!}}-
}}
{{#if:{{{governor
! Governor
{{!}} {{{governor
{{!}}-
}}
{{#if:{{{lieutenant_governor
! {{nowrap|Lieutenant Governor}}
{{!}} {{{lieutenant_governor
{{!}}-
}}
<!---------- Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s---------->
{{#if:{{{vicepresident
! {{#if:{{{office
{{!}} {{{vicepresident
{{!}}-
}}
{{#if:{{{vicegovernor
! {{#if:{{{office
{{!}} {{{vicegovernor
{{!}}-
}}
{{#if:{{{viceprimeminister
! {{#if:{{{office
{{!}} {{{viceprimeminister
{{!}}-
}}
{{#if:{{{vicepremier
! {{#if:{{{office
{{!}} {{{vicepremier
{{!}}-
}}
{{#if:{{{deputy
! {{#if:{{{office
{{!}} {{{deputy
{{!}}-
}}
{{#if:{{{leader
! Leader
{{!}} {{{leader
{{!}}-
}}
{{#if:{{{lieutenant
! {{#if:{{{office
{{!}} {{{lieutenant
{{!}}-
}}
{{#if:{{{nominator
! {{nowrap|Nominated by}}
{{!}} {{{nominator
{{!}}-
}}
{{#if:{{{appointe{{#if:{{{appointer
! {{nowrap|Appointed by}}
{{!}} {{{appointe{{#if:{{{appointer
{{!}}-
}}
<!---------- Blank fields ---------->
{{#if:{{{1namedata
! {{{1blankname
{{!}} {{{1namedata
{{!}}-
}}
{{#if:{{{2namedata
! {{{2blankname
{{!}} {{{2namedata
{{!}}-
}}
{{#if:{{{3namedata
! {{{3blankname
{{!}} {{{3namedata
{{!}}-
}}
{{#if:{{{4namedata
! {{{4blankname
{{!}} {{{4namedata
{{!}}-
}}
{{#if:{{{5namedata
! {{{5blankname
{{!}} {{{5namedata
{{!}}-
}}
<!----------Predecessor/successor---------->
{{#if:{{{runningmate
! {{nowrap|Running mate}}
{{!}} {{{runningmate
{{!}}-
}}
{{#if:{{{opponent
! Opponent(s)
{{!}} {{{opponent
{{!}}-
}}
{{#if:{{{incumbent
! Incumbent
{{!}} {{{incumbent
{{!}}-
}}
{{#if:{{{succeeding
! Succeeding
{{!}} {{{succeeding
{{!}}-
|{{#if:{{{preceding
! Preceding
{{!}} {{{preceding
{{!}}-
}}
{{#if:{{{{{#if:{{{predecessor
! {{nowrap|Preceded by}}
{{!}} {{{{{#if:{{{predecessor
{{!}}-
}}
{{#switch:{{{{{#if:{{{successor
| Incumbent
| '''Incumbent'''
Line 314:
| ''incumbent''
| [[incumbent]] =
|{{#if:{{{{{#if:{{{successor
! {{nowrap|Succeeded by}}
{{!}} {{{{{#if:{{{successor
{{!}}-
}}}}
<!-----Constituency----->
{{#if:{{{constituency
! Constituency
{{!}} {{{constituency
{{!}}-
}}
<!-----Majority----->
{{#if:{{{majority
! Majority
{{!}} {{{majority
{{!}}-
}}</includeonly><noinclude>{{doc}}</noinclude>
|