Template:Infobox officeholder: Difference between revisions

updated code per talk request
m (+{{{width|}}} per here)
(updated code per talk request)
Line 1:
{| class="infobox vcard" style="width:{{{width|23em}}}; font-size:90%; text-align:left; padding-left:0.5em; padding-right:0.5em;"
<!----------Name---------->
|colspan="2" class="fn" style="text-align:center; font-size:140%; font-weight:bold;"|{{#if:{{{honorific-prefix|}}}<!--then:-->|<span class="honorific-prefix">{{{honorific-prefix}}}</span>&nbsp;}}<span class="fn">{{{name|{{PAGENAME}}}}}</span>{{#if:{{{honorific-suffix|}}}<!--then:-->|&nbsp;<span class="honorific-suffix">{{{honorific-suffix}}}</span>}}
Line 27:
{{!-}}
|{{#if:{{{speaker|}}}|<!--then:-->
!colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender;">{{{speaker}}} [[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}}]]</div>
{{!-}}
}}
Line 77:
}}
<!----------Senator---------->
{{#if:{{{majority_leader|}}}||<!--then:-->
{{#if:{{{majority_floor_leader|}}}||<!--then:-->
{{#if:{{{minority_leader|}}}||<!--then:-->
{{#if:{{{minority_floor_leader|}}}||<!--then:-->
{{#if:{{{majorityleader|}}}||<!--then:-->
{{#if:{{{jr/sr|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr}}}{{#if:{{{succeeding|}}} |<!--then:-->-Elect}}]]<br />from {{{state}}}</div>
Line 92 ⟶ 97:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature}}} Legislature]]<br />from the {{{district}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
<!----------MP---------->
Line 126 ⟶ 136:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature|}}}||<!--then:-->
{{#if:{{{state_senate|}}}||<!--then:-->
{{#if:{{{district|}}}|<!--then:-->
Line 135 ⟶ 146:
{{!-}}
|{{#if:{{{district|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|United States}}}} House of {{#if:{{{state_delegate|}}}|Delegates|Representatives}}|{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|U.S.}}}} House of {{#if:{{{state_delegate|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate|}}}|the |{{#if:{{{state_house|}}}|the |{{{state}}}'s}}}} {{{district}}} district</div>
{{!-}}
}}
}}
}}
Line 362 ⟶ 374:
}}
<!----------Second office---------->
{{#if:{{{majority_leader2|}}}||<!--then:-->
{{#if:{{{majority_floor_leader2|}}}||<!--then:-->
{{#if:{{{minority_leader2|}}}||<!--then:-->
{{#if:{{{minority_floor_leader2|}}}||<!--then:-->
{{#if:{{{majorityleader2|}}}||<!--then:-->
{{#if:{{{jr/sr2|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr2}}}{{#if:{{{succeeding2|}}} |<!--then:-->-Elect}}]]<br />from {{{state2}}}</div>
Line 377 ⟶ 394:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature2}}} Legislature]]<br />from the {{{district2}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from2|}}}|
Line 435 ⟶ 457:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature2|}}}||<!--then:-->
{{#if:{{{state_senate2|}}}||<!--then:-->
{{#if:{{{district2|}}}|<!--then:-->
Line 444 ⟶ 467:
{{!-}}
|{{#if:{{{district2|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house2|}}} |{{{state_house2}}}|{{#if:{{{state_delegate2|}}}|{{{state_delegate2}}}|United States}}}} House of {{#if:{{{state_delegate2|}}}|Delegates|Representatives}}|{{#if:{{{state_house2|}}} |{{{state_house2}}}|{{#if:{{{state_delegate2|}}}|{{{state_delegate2}}}|U.S.}}}} House of {{#if:{{{state_delegate2|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate2|}}}|the |{{#if:{{{state_house2|}}}|the |{{{state2}}}'s}}}} {{{district2}}} district</div>
{{!-}}
}}
}}
}}
Line 594 ⟶ 618:
}}
<!----------Third office---------->
{{#if:{{{majority_leader3|}}}||<!--then:-->
{{#if:{{{majority_floor_leader3|}}}||<!--then:-->
{{#if:{{{minority_leader3|}}}||<!--then:-->
{{#if:{{{minority_floor_leader3|}}}||<!--then:-->
{{#if:{{{majorityleader3|}}}||<!--then:-->
{{#if:{{{jr/sr3|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr3}}}{{#if:{{{succeeding3|}}} |<!--then:-->-Elect}}]]<br />from {{{state3}}}</div>
Line 609 ⟶ 638:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature3}}} Legislature]]<br />from the {{{district3}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from3|}}}||<!--then:-->
Line 662 ⟶ 696:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature3|}}}||<!--then:-->
{{#if:{{{state_senate3|}}}||<!--then:-->
{{#if:{{{district3|}}}|<!--then:-->
Line 671 ⟶ 706:
{{!-}}
|{{#if:{{{district3|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house3|}}} |{{{state_house3}}}|{{#if:{{{state_delegate3|}}}|{{{state_delegate3}}}|United States}}}} House of {{#if:{{{state_delegate3|}}}|Delegates|Representatives}}|{{#if:{{{state_house3|}}} |{{{state_house3}}}|{{#if:{{{state_delegate3|}}}|{{{state_delegate3}}}|U.S.}}}} House of {{#if:{{{state_delegate3|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate3|}}}|the |{{#if:{{{state_house3|}}}|the |{{{state3}}}'s}}}} {{{district3}}} district</div>
{{!-}}
}}
}}
}}
Line 812 ⟶ 848:
}}
<!----------Fourth office---------->
{{#if:{{{majority_leader4|}}}||<!--then:-->
{{#if:{{{majority_floor_leader4|}}}||<!--then:-->
{{#if:{{{minority_leader4|}}}||<!--then:-->
{{#if:{{{minority_floor_leader4|}}}||<!--then:-->
{{#if:{{{majorityleader4|}}}||<!--then:-->
{{#if:{{{jr/sr4|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr4}}}{{#if:{{{succeeding4|}}} |<!--then:-->-Elect}}]]<br />from {{{state4}}}</div>
Line 827 ⟶ 868:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature4}}} Legislature]]<br />from the {{{district4}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from4|}}}||<!--then:-->
Line 880 ⟶ 926:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature4|}}}||<!--then:-->
{{#if:{{{state_senate4|}}}||<!--then:-->
{{#if:{{{district4|}}}|<!--then:-->
Line 889 ⟶ 936:
{{!-}}
|{{#if:{{{district4|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house4|}}} |{{{state_house4}}}|{{#if:{{{state_delegate4|}}}|{{{state_delegate4}}}|United States}}}} House of {{#if:{{{state_delegate4|}}}|Delegates|Representatives}}|{{#if:{{{state_house4|}}} |{{{state_house4}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|U.S.}}}} House of {{#if:{{{state_delegate4|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate4|}}}|the |{{#if:{{{state_house4|}}}|the |{{{state4}}}'s}}}} {{{district4}}} district</div>
{{!-}}
}}
}}
}}
Line 1,030 ⟶ 1,078:
}}
<!----------Fifth office---------->
{{#if:{{{majority_leader5|}}}||<!--then:-->
{{#if:{{{majority_floor_leader5|}}}||<!--then:-->
{{#if:{{{minority_leader5|}}}||<!--then:-->
{{#if:{{{minority_floor_leader5|}}}||<!--then:-->
{{#if:{{{majorityleader5|}}}||<!--then:-->
{{#if:{{{jr/sr5|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr5}}}{{#if:{{{succeeding5|}}} |<!--then:-->-Elect}}]]<br />from {{{state5}}}</div>
Line 1,045 ⟶ 1,098:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature5}}} Legislature]]<br />from the {{{district5}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from5|}}}||<!--then:-->
Line 1,098 ⟶ 1,156:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature5|}}}||<!--then:-->
{{#if:{{{state_senate5|}}}||<!--then:-->
{{#if:{{{district5|}}}|<!--then:-->
Line 1,107 ⟶ 1,166:
{{!-}}
|{{#if:{{{district5|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house5|}}} |{{{state_house5}}}|{{#if:{{{state_delegate5|}}}|{{{state_delegate5}}}|United States}}}} House of {{#if:{{{state_delegate5|}}}|Delegates|Representatives}}|{{#if:{{{state_house5|}}} |{{{state_house5}}}|{{#if:{{{state_delegate5|}}}|{{{state_delegate5}}}|U.S.}}}} House of {{#if:{{{state_delegate5|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate5|}}}|the |{{#if:{{{state_house5|}}}|the |{{{state5}}}'s}}}} {{{district5}}} district</div>
{{!-}}
}}
}}
}}
Line 1,247 ⟶ 1,307:
}}
<!----------Sixth office---------->
{{#if:{{{majority_leader6|}}}||<!--then:-->
{{#if:{{{majority_floor_leader6|}}}||<!--then:-->
{{#if:{{{minority_leader6|}}}||<!--then:-->
{{#if:{{{minority_floor_leader6|}}}||<!--then:-->
{{#if:{{{majorityleader6|}}}||<!--then:-->
{{#if:{{{jr/sr6|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr6}}}{{#if:{{{succeeding6|}}} |<!--then:-->-Elect}}]]<br />from {{{state6}}}</div>
Line 1,262 ⟶ 1,327:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature6}}} Legislature]]<br />from the {{{district6}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from6|}}}||<!--then:-->
Line 1,315 ⟶ 1,385:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature6|}}}||<!--then:-->
{{#if:{{{state_senate6|}}}||<!--then:-->
{{#if:{{{district6|}}}|<!--then:-->
Line 1,324 ⟶ 1,395:
{{!-}}
|{{#if:{{{district6|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house6|}}} |{{{state_house6}}}|{{#if:{{{state_delegate6|}}}|{{{state_delegate6}}}|United States}}}} House of {{#if:{{{state_delegate6|}}}|Delegates|Representatives}}|{{#if:{{{state_house6|}}} |{{{state_house6}}}|{{#if:{{{state_delegate6|}}}|{{{state_delegate6}}}|U.S.}}}} House of {{#if:{{{state_delegate6|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate6|}}}|the |{{#if:{{{state_house6|}}}|the |{{{state6}}}'s}}}} {{{district6}}} district</div>
{{!-}}
}}
}}
}}
Line 1,464 ⟶ 1,536:
}}
<!----------Seventh office---------->
{{#if:{{{majority_leader7|}}}||<!--then:-->
{{#if:{{{majority_floor_leader7|}}}||<!--then:-->
{{#if:{{{minority_leader7|}}}||<!--then:-->
{{#if:{{{minority_floor_leader7|}}}||<!--then:-->
{{#if:{{{majorityleader7|}}}||<!--then:-->
{{#if:{{{jr/sr7|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr7}}}{{#if:{{{succeeding7|}}} |<!--then:-->-Elect}}]]<br />from {{{state7}}}</div>
Line 1,479 ⟶ 1,556:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature7}}} Legislature]]<br />from the {{{district7}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from7|}}}||<!--then:-->
Line 1,532 ⟶ 1,614:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature7|}}}||<!--then:-->
{{#if:{{{state_senate7|}}}||<!--then:-->
{{#if:{{{district7|}}}|<!--then:-->
Line 1,541 ⟶ 1,624:
{{!-}}
|{{#if:{{{district7|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house7|}}} |{{{state_house7}}}|{{#if:{{{state_delegate7|}}}|{{{state_delegate7}}}|United States}}}} House of {{#if:{{{state_delegate7|}}}|Delegates|Representatives}}|{{#if:{{{state_house7|}}} |{{{state_house7}}}|{{#if:{{{state_delegate7|}}}|{{{state_delegate7}}}|U.S.}}}} House of {{#if:{{{state_delegate7|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate7|}}}|the |{{#if:{{{state_house7|}}}|the |{{{state7}}}'s}}}} {{{district7}}} district</div>
{{!-}}
}}
}}
}}
Line 1,681 ⟶ 1,765:
}}
<!----------Eighth office---------->
{{#if:{{{majority_leader8|}}}||<!--then:-->
{{#if:{{{majority_floor_leader8|}}}||<!--then:-->
{{#if:{{{minority_leader8|}}}||<!--then:-->
{{#if:{{{minority_floor_leader8|}}}||<!--then:-->
{{#if:{{{majorityleader8|}}}||<!--then:-->
{{#if:{{{jr/sr8|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">[[United States Senate|{{{jr/sr8}}}{{#if:{{{succeeding8|}}} |<!--then:-->-Elect}}]]<br />from {{{state8}}}</div>
Line 1,696 ⟶ 1,785:
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold">Member of the [[{{{state_legislature8}}} Legislature]]<br />from the {{{district8}}} district</div>
{{!-}}
}}
}}
}}
}}
}}
}}
{{#if:{{{ambassador_from8|}}}||<!--then:-->
Line 1,749 ⟶ 1,843:
}}
<!----------Congressman---------->
{{#if:{{{state_legislature8|}}}||<!--then:-->
{{#if:{{{state_senate8|}}}||<!--then:-->
{{#if:{{{district8|}}}|<!--then:-->
Line 1,758 ⟶ 1,853:
{{!-}}
|{{#if:{{{district8|}}}|<!--then:-->
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}}<hr/><div style="background:lavender; font-weight:bold;">Member of the [[{{#if:{{{state_house8|}}} |{{{state_house8}}}|{{#if:{{{state_delegate8|}}}|{{{state_delegate8}}}|United States}}}} House of {{#if:{{{state_delegate8|}}}|Delegates|Representatives}}|{{#if:{{{state_house8|}}} |{{{state_house8}}}|{{#if:{{{state_delegate8|}}}|{{{state_delegate8}}}|U.S.}}}} House of {{#if:{{{state_delegate8|}}}|Delegates|Representatives}}]]<br />from {{#if:{{{state_delegate8|}}}|the |{{#if:{{{state_house8|}}}|the |{{{state8}}}'s}}}} {{{district8}}} district</div>
{{!-}}
}}
}}
}}
Anonymous user