Difference between revisions of "Template:Infobox senator"

From blackwiki
Jump to navigation Jump to search
imported>Philip Stevens
imported>Philip Stevens
(Redirected page to Template:Infobox Officeholder)
Line 1: Line 1:
{| class="infobox vcard" style="width:23em; font-size:90%; text-align:left; padding-left:0.5em; padding-right:0.5em;"
+
#REDIRECT [[Template:Infobox Officeholder]]
|-
 
<!----------Name---------->
 
|colspan="2" style="text-align: center; font-size:140%;" class="fn"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
 
 
<!----------Image---------->
 
{{#if:{{{image name|}}} |<!--then:-->
 
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{image name}}}|{{#if:{{{imagesize|}}}|<!--then:-->{{{imagesize}}}|160px}}|{{PAGENAME}}]]<br/>
 
<small>{{{caption|}}}<small/>
 
{{!-}}
 
}}
 
{{#if:{{{smallimage|}}} |<!--then:-->
 
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{smallimage}}}|{{PAGENAME}}]]<br/><small>{{{caption|}}}</small>
 
{{!-}}
 
}}
 
 
 
<!----------Majority Leader---------->
 
{{#if:{{{majorityleader|}}} |<!--then:-->
 
!colspan="2" style="text-align:center; font-size:110%;"{{!}} <hr><div style="background:lavender;">{{{majorityleader}}} [[United States Senate Majority Leader]]</div>
 
{{!-}}
 
}}
 
{{#if:{{{term_start2|}}} |<!--then:-->
 
{{#if:{{{term_end2|}}}
 
|<!--then:--> <!--term has start and end-->
 
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In&nbsp;office'''<br>{{{term_start2}}}&nbsp;&ndash;&nbsp;{{{term_end2}}}
 
{{!-}}
 
|<!--else:--> <!--term is ongoing-->
 
{{!}}colspan="2" style="text-align:center; background:lavender;"{{!}} '''[[Incumbent]]'''
 
{{!-}}
 
}}
 
{{#if:{{{term_end2|}}}
 
|<!--then:--> <!--(nothing; term has ended)-->
 
|<!--else:-->
 
{{!}}colspan="2" style="text-align:center;"{{!}} '''In&nbsp;office&nbsp;since'''<br>{{{term_start2}}}
 
{{!-}}
 
}}
 
}}
 
 
 
<!----------Majority Leader predecessor/successor---------->
 
{{#if:{{{predecessor2|}}} |<!--then:-->
 
! Preceded&nbsp;by
 
{{!}} {{{predecessor2}}}
 
{{!-}}
 
}}
 
{{#if:{{{successor2|}}} |<!--then:-->
 
! Succeeded&nbsp;by
 
{{!}} {{{successor2}}}
 
{{!-}}
 
}}
 
 
 
<!----------Majority Leader2---------->
 
{{#if:{{{majorityleader2|}}} |<!--then:-->
 
!colspan="2" style="text-align:center; font-size:110%;"{{!}} <hr><div style="background:lavender;">{{{majorityleader2}}} [[United States Senate Majority Leader]]</div>
 
{{!-}}
 
}}
 
{{#if:{{{term_start3|}}} |<!--then:-->
 
{{#if:{{{term_end3|}}}
 
|<!--then:--> <!--term has start and end-->
 
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In&nbsp;office'''<br>{{{term_start3}}}&nbsp;&ndash;&nbsp;{{{term_end3}}}
 
{{!-}}
 
|<!--else:--> <!--term is ongoing-->
 
{{!}}colspan="2" style="text-align:center; background:lavender;"{{!}} '''[[Incumbent]]'''
 
{{!-}}
 
}}
 
{{#if:{{{term_end3|}}}
 
|<!--then:--> <!--(nothing; term has ended)-->
 
|<!--else:-->
 
{{!}}colspan="2" style="text-align:center;"{{!}} '''In&nbsp;office&nbsp;since'''<br>{{{term_start3}}}
 
{{!-}}
 
}}
 
}}
 
 
 
<!----------Majority Leader 2 predecessor/successor---------->
 
{{#if:{{{predecessor3|}}} |<!--then:-->
 
! Preceded&nbsp;by
 
{{!}} {{{predecessor3}}}
 
{{!-}}
 
}}
 
{{#if:{{{successor3|}}} |<!--then:-->
 
! Succeeded&nbsp;by
 
{{!}} {{{successor3}}}
 
{{!-}}
 
}}
 
 
 
 
 
<!----------Office---------->
 
<!----------Use Junior or Senior if Senator is currently the incumbent, use United States Senator if no longer holding office---------->
 
{{#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>
 
{{!-}}
 
}}
 
{{#if:{{{jr/sr and state|}}} |<!--then:-->
 
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}} <hr><div style="background:lavender; font-weight:bold">{{{jr/sr and state}}}</div>
 
{{!-}}
 
}}
 
<!----------Term---------->
 
{{#if: {{{term|}}}|<!--then:-->
 
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In&nbsp;office'''<br>{{{term}}}
 
{{!-}}
 
}}
 
{{#if: {{{term_start|}}}|<!--then:-->
 
{{!}}colspan="2" style="text-align:center; background:lavender;"{{!}} '''[[Incumbent]]'''
 
{{!-}}
 
}}
 
{{#if: {{{term_start|}}}|<!--then:-->
 
{{!}}colspan="2" style="text-align:center;"{{!}} '''Assumed&nbsp;office&nbsp;'''<br>{{{term_start}}}<br>Serving with [[{{{alongside}}}]]
 
{{!-}}
 
}}
 
 
 
 
 
<!----------Predecessor/Successor---------->
 
{{#if:{{{succeeding|}}} |<!--then:-->
 
! Succeeeding
 
{{!}} {{{succeeding}}}
 
{{!-}}
 
}}
 
{{#if:{{{preceded|}}} |<!--then:-->
 
! Preceded&nbsp;by
 
{{!}} {{{preceded}}}
 
{{!-}}
 
}}
 
{{#if:{{{succeeded|}}} |<!--then:-->
 
! Succeeded&nbsp;by
 
{{!}} {{{succeeded}}}
 
{{!-}}
 
}}
 
 
 
<!----------Representative---------->
 
{{#if:{{{state2|}}} |<!--then:-->
 
{{!}}colspan="2" style="text-align:center; font-size:110%;"{{!}} <hr><div style="background:lavender; font-weight:bold">'''Member of the [[United States House of Representatives|U.S. House of Representatives]] from<br>{{{state2}}}'s {{{district}}} district'''</div>
 
{{!-}}
 
}}
 
 
 
<!----------Representative Term---------->
 
{{#if: {{{term4|}}}|<!--then:-->
 
{{!}}colspan="2" style="border-bottom:none; text-align:center;"{{!}} '''In&nbsp;office'''<br>{{{term4}}}
 
{{!-}}
 
}}
 
{{#if: {{{term_start4|}}}|<!--then:-->
 
{{!}}colspan="2" style="text-align:center; background:lavender;"{{!}} '''[[Incumbent]]'''
 
{{!-}}
 
}}
 
{{#if: {{{term_start4|}}}|<!--then:-->
 
{{!}}colspan="2" style="text-align:center;"{{!}} '''Assumed&nbsp;office&nbsp;'''<br>{{{term_start4}}}
 
{{!-}}
 
}}
 
 
 
 
 
<!----------Representative Predecessor/Successor---------->
 
{{#if:{{{preceded4|}}} |<!--then:-->
 
! Preceded&nbsp;by
 
{{!}} {{{preceded4}}}
 
{{!-}}
 
}}
 
{{#if:{{{succeeded4|}}} |<!--then:-->
 
! Succeeded&nbsp;by
 
{{!}} {{{succeeded4}}}
 
{{!-}}
 
}}
 
 
 
<!----------Birth/Death---------->
 
|-
 
|colspan="2"| <hr>
 
|-
 
! Born
 
| {{{date of birth|}}}<br/>{{{place of birth|}}}
 
|-
 
{{#if:{{{date of death|}}} |<!--then:-->
 
! Died
 
{{!}} {{{date of death}}}<br/>{{{place of death|}}}
 
{{!-}}
 
}}
 
 
 
<!----------Party---------->
 
{{#if:{{{party|}}} |<!--then:-->
 
! Political&nbsp;party
 
{{!}}class="org"{{!}}{{#switch:{{{party}}}
 
| [[United States Democratic Party|Democrat]]
 
| [[Democratic Party (United States)|Democratic]]
 
| [[Democratic Party (United States)|Democrat]] = [[Democratic Party (United States)|Democratic]]
 
| [[Republican Party (United States)|Republican]]
 
| [[United States Republican Party]]
 
| [[United States Republican Party|Republican]]
 
| [[Republican Party (United States)|Republican Party]] = [[Republican Party (United States)|Republican]]
 
| [[Conservative Party (UK)|Conservative Party]]
 
| [[Conservative Party (UK)|Conservative]] = [[Conservative Party (UK)|Conservative]]
 
| [[Labour Party (UK)|Labour Party]]
 
| [[Labour Party (UK)|Labour]] = [[Labour Party (UK)|Labour]]
 
| {{{party}}} }}
 
{{!-}}
 
}}
 
 
 
<!----------Spouse etc.---------->
 
{{#if:{{{spouse|}}} |<!--then:-->
 
! Spouse
 
{{!}} {{{spouse}}}
 
{{!-}}
 
}}
 
{{#if:{{{profession|}}} |<!--then:-->
 
! Profession
 
{{!}} {{{profession}}}
 
{{!-}}
 
}}
 
{{#if:{{{religion|}}} |<!--then:-->
 
! Religion
 
{{!}} {{{religion}}}
 
{{!-}}
 
}}
 
{{#if:{{{signature|}}} |<!--then:-->
 
! Signature
 
{{!}} [[Image:{{{signature}}}|128px]]
 
{{!-}}
 
}}
 
{{#if:{{{footnotes|}}} |<!--then:-->
 
{{!}}colspan="2" style="border-top:1px solid; font-size:90%;"{{!}} {{{footnotes}}}
 
{{!-}}
 
}}
 
 
 
|}<noinclude>{{clear}}<br><hr><br>{{esoteric}}
 
 
 
==Usage==
 
Copy and paste the template below:
 
<pre>
 
{{Infobox_Senator
 
| name=
 
| image name=
 
| imagesize=
 
| jr/sr=
 
| state=
 
| term=
 
| preceded=
 
| succeeded=
 
| date of birth=
 
| place of birth=
 
| date of death=
 
| place of death=
 
| spouse=
 
| profession=
 
| religion=
 
| party=
 
| signature=
 
|}}
 
</pre>
 
 
 
If Senator is incumbent, use "term_start=" instead of "term=" and add:
 
<pre>
 
| alongside= (the name of fellow senator)
 
</pre>
 
 
 
If Senator has just been elected and is a Senator-Elect:
 
<pre>
 
| succeeding= (the name of the incumbent senator)
 
</pre>
 
 
 
If Senator served as Senate Majority Leader add:
 
<pre>
 
|majorityleader= (number of office holder)
 
|term_start2=
 
|term_end2=
 
|predecessor2=
 
|successor2=
 
</pre>
 
 
 
If Senator served as Congressman add:
 
<pre>
 
| state2=
 
| district=
 
| term4=
 
| preceded4=
 
| succeeded4=
 
</pre>
 
 
 
==Microformat==
 
{{UF-hcard-person}}
 
 
 
[[Category:people infobox templates|Senator]]
 
[[Category:politics infobox templates|Senator]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
</noinclude>
 

Revision as of 19:24, 3 May 2007