Template:Infobox officeholder/office: Difference between revisions
Appearance
Content deleted Content added
Neveselbert (talk | contribs) conditional if status Tag: Reverted |
Special:LintErrors/night-mode-unaware-background-color Apply for other cases. |
||
(19 intermediate revisions by 4 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|}}} |
{{#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|}}} |
||
|{{#invoke:infobox|infoboxTemplate|child=yes|decat=yes |
|{{#invoke:infobox|infoboxTemplate|child=yes|decat=yes |
||
| headerstyle = background:{{{color|lavender}}};line-height:normal;padding:0.2em; |
| headerstyle = color: #202122; background:{{{color|lavender}}};line-height:normal;padding:0.2em; |
||
| datastyle = border-bottom:none |
| datastyle = border-bottom:none |
||
Line 19: | Line 19: | ||
| header2 = {{#if:{{{nominee|}}}{{{candidate|}}}| |
| header2 = {{#if:{{{nominee|}}}{{{candidate|}}}| |
||
{{#if:{{{party_election|}}}{{{party|}}} |
{{#if:{{{party_election|}}}{{{party|}}} |
||
|{{#if:{{{party_election|}}}|{{{party_election}}}|{{{party}}}}} {{#if:{{{nominee|}}}|nominee for<br>{{{nominee}}}|candidate for<br>{{{candidate}}}}} |
|{{#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}}}}} |
|{{#if:{{{nominee|}}}|Nominee for<br />{{{nominee}}}|Candidate for<br />{{{candidate}}}}} |
||
}} }} |
}} }} |
||
Line 36: | Line 36: | ||
| header6 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}|| |
| 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|}}}| |
{{#if:{{{state_senate|}}}|Member{{#if:{{{succeeding|}}}{{{assuming|}}}|-elect}} of the <span style="display: inline-block;">[[{{{state_senate}}} Senate]]</span>{{#if:{{{district|}}}|<br />from the {{{district}}} district}}{{#if:{{{prior_term|}}}| |
||
<br />{{{prior_term}}}}} |
<br />{{{prior_term}}}}} |
||
}} }} |
}} }} |
||
Line 74: | Line 74: | ||
|{{{constituency_MP|}}} |
|{{{constituency_MP|}}} |
||
|{{#if:{{#switch:{{{parliament|}}} |United Kingdom|UK| = {{Linkless exists|{{#invoke:delink|delink|{{{constituency_MP|}}}}} (UK Parliament constituency)}} }} |
|{{#if:{{#switch:{{{parliament|}}} |United Kingdom|UK| = {{Linkless exists|{{#invoke:delink|delink|{{{constituency_MP|}}}}} (UK Parliament constituency)}} }} |
||
|{{# |
|{{#ifeq:{{#invoke:delink|delink|{{{constituency_MP|}}}}}|{{#invoke:delink|delink|{{{constituency_MP|}}}|wikilinks=target}} |
||
|{{Constlk|{{#invoke:delink|delink|{{{constituency_MP|}}}}}}} |
|{{Constlk|{{#invoke:delink|delink|{{{constituency_MP|}}}}}}} |
||
|{{{constituency_{{#if:{{{constituency_AM|}}}|AM|MP}}}}}}} |
|{{{constituency_{{#if:{{{constituency_AM|}}}|AM|MP}}}}}}} |
||
Line 107: | Line 107: | ||
{{#if:{{#if:{{{state|}}}|{{{constituency|}}}}}{{{district|}}}{{{state_house|}}}|{{#if:{{{state_assembly|}}} |
{{#if:{{#if:{{{state|}}}|{{{constituency|}}}}}{{{district|}}}{{{state_house|}}}|{{#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;">[[{{{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>{{#if:{{{district|}}}{{{state|}}}{{{state_delegate |
|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>{{#if:{{{district|}}}{{{state|}}}{{{state_delegate|}}}|<br />from {{#if:{{{state_delegate|}}}|the |{{#if:{{{state_house|}}}|{{#if:{{{district|}}}|the|{{{state|}}}}}|{{{state|}}}{{#if:{{{district|}}}|'s}}}}}} |
||
}}}} {{#if:{{{district|}}}|{{{district}}} district|{{#if:{{{state_house|}}}|{{{constituency|}}}}}}}{{#if:{{{prior_term|}}}| |
}}}} {{#if:{{{district|}}}|{{{district}}} district|{{#if:{{{state_house|}}}|{{{constituency|}}}}}}}{{#if:{{{prior_term|}}}| |
||
<br />{{{prior_term}}}}} |
<br />{{{prior_term}}}}} |
||
Line 119: | Line 119: | ||
| data19 = {{#if:{{{termend|}}}{{{succeeding|}}}{{{assuming|}}}| |
| data19 = {{#if:{{{termend|}}}{{{succeeding|}}}{{{assuming|}}}| |
||
{{#if:{{{status|}}} |
{{#if:{{{status|}}} |
||
| <div style="width:100%; margin:0; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|}}| |
| <div class="skin-nightmode-reset-color" style="width:100%; margin:0; color: black; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|}}| |
||
}} |
}} |
||
Line 134: | Line 134: | ||
| {{#if:{{{termend|}}} |
| {{#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>}} |
|<!--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>}} |
|{{#if:{{{status|}}}|<div class="skin-nightmode-reset-color" style="width:100%; margin:0; color: black; background-color: {{{color|lavender}}}">'''{{{status}}}'''</div>|<!--else: term is ongoing--><div class="skin-nightmode-reset-color" style="width:100%; margin:0; color: black; background-color: {{{color|lavender}}}">'''[[Incumbent]]'''</div>}} |
||
}} |
}} |
||
}} |
}} |
||
Line 145: | Line 145: | ||
|{{#if:{{{termend|}}} |
|{{#if:{{{termend|}}} |
||
|<!--then nothing else; term has ended--> |
|<!--then nothing else; term has ended--> |
||
|<!--else term is ongoing:--><span class="nowrap">'''{{#if:{{{termlabel|}}}|{{ |
|<!--else term is ongoing:--><span class="nowrap">'''{{#if:{{{termlabel|}}}|{{#invoke:String|replace|source={{{termlabel}}}|In office|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>}} |
||
}} |
}} |
||
}} |
}} |
||
Line 169: | Line 169: | ||
| data4 = {{{president|}}} |
| data4 = {{{president|}}} |
||
| label5 = {{#if:{{{governor_general|}}}|Governor{{#if:{{detect singular|{{{governor_general}}}}}||s}} General|Governor{{#if:{{detect singular|{{{governor-general}}}}}||s}} |
| label5 = {{#if:{{{governor_general|}}}|Governor{{#if:{{detect singular|{{{governor_general}}}}}||s}} General|Governor{{#if:{{detect singular|{{{governor-general}}}}}||s}}{{nbhyph}}General}} |
||
| data5 = {{#if:{{{governor_general|}}}|{{{governor_general}}}|{{{governor-general|}}}}} |
| data5 = {{#if:{{{governor_general|}}}|{{{governor_general}}}|{{{governor-general|}}}}} |
||
Line 200: | Line 200: | ||
<!--------Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s---------> |
<!--------Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s---------> |
||
| label15 = <span class="nowrap">{{#if:{{{ |
| label15 = <span class="nowrap">{{#if:{{{vicepresident|}}}|{{#ifeq:{{Linkless exists|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}|{{#ifeq:{{#invoke:Redirect|main|fulltext=1|{{#ifeq:Vice|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}||Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}}}|{{#invoke:Redirect|main|fulltext=1|{{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||{{#if:{{#invoke:Disambiguation|isDisambiguationPage|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||true}} }}|[[Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}|Vice President]]|Vice President}}|Vice President}}</span> |
||
| data15 = {{{vicepresident|}}} |
| data15 = {{{vicepresident|}}} |
||
| label16 = <span class="nowrap">{{#if:{{{ |
| label16 = <span class="nowrap">{{#if:{{{vicegovernor|}}}|{{#ifeq:{{Linkless exists|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}|{{#ifeq:{{#invoke:Redirect|main|fulltext=1|{{#ifeq:Vice|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}||Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}}}|{{#invoke:Redirect|main|fulltext=1|{{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||{{#if:{{#invoke:Disambiguation|isDisambiguationPage|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||true}} }}|[[Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}|Vice Governor]]|Vice Governor}}|Vice Governor}}</span> |
||
| data16 = {{{vicegovernor|}}} |
| data16 = {{{vicegovernor|}}} |
||
| label17 = <span class="nowrap">{{#if:{{{ |
| label17 = <span class="nowrap">{{#if:{{{viceprimeminister|}}}|[[Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}|Vice PM]]|Vice [[Prime Minister|PM]]}}</span> |
||
| data17 = {{{viceprimeminister|}}} |
| data17 = {{{viceprimeminister|}}} |
||
| label18 = <span class="nowrap">{{#if:{{{ |
| label18 = <span class="nowrap">{{#if:{{{vicepremier|}}}|{{#ifeq:{{Linkless exists|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}|{{#ifeq:{{#invoke:Redirect|main|fulltext=1|{{#ifeq:Vice|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}||Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}}}|{{#invoke:Redirect|main|fulltext=1|{{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||{{#if:{{#invoke:Disambiguation|isDisambiguationPage|Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||true}} }}|[[Vice {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}|Vice Premier]]|Vice Premier}}|Vice Premier}}</span> |
||
| data18 = {{{vicepremier|}}} |
| data18 = {{{vicepremier|}}} |
||
| label19 = {{#if:{{{ |
| label19 = {{#if:{{{deputy|}}}|{{#ifeq:{{Linkless exists|Deputy {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}|{{#ifeq:{{#invoke:Redirect|main|fulltext=1|{{#ifeq:Deputy|Deputy {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}||Deputy {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}}}|{{#invoke:Redirect|main|fulltext=1|{{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||{{#if:{{#invoke:Disambiguation|isDisambiguationPage|Deputy {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}}}||true}} }}|[[Deputy {{#invoke:delink|delink|{{{office}}}|wikilinks=target}}|Deputy]]|Deputy}}|Deputy}} |
||
| data19 = {{{deputy|}}} |
| data19 = {{{deputy|}}} |
||
Line 244: | Line 244: | ||
| data28 = {{{runningmate|}}} |
| data28 = {{{runningmate|}}} |
||
| label29 = Opponent{{ |
| label29 = Opponent{{#invoke:Detect singular|pluralize|{{{opponent|}}}|likely=(s)|plural=s}} |
||
| data29 = {{{opponent|}}} |
| data29 = {{{opponent|}}} |
||
Latest revision as of 15:25, 25 August 2024
This template is used on approximately 244,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template is used in conjunction with Template:Infobox officeholder.
Usage
|