Difference between revisions of "Template:Infobox senator"
Jump to navigation
Jump to search
imported>Philip Stevens (←Redirected page to Template:Infobox Officeholder) |
imported>Philip Stevens |
||
| Line 1: | Line 1: | ||
| − | # | + | {| class="infobox vcard" style="width:23em; font-size:90%; text-align:left; padding-left:0.5em; padding-right:0.5em;" |
| + | |- | ||
| + | <!----------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 office'''<br>{{{term_start2}}} – {{{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 office since'''<br>{{{term_start2}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | <!----------Majority Leader predecessor/successor----------> | ||
| + | {{#if:{{{predecessor2|}}} |<!--then:--> | ||
| + | ! Preceded by | ||
| + | {{!}} {{{predecessor2}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | {{#if:{{{successor2|}}} |<!--then:--> | ||
| + | ! Succeeded 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 office'''<br>{{{term_start3}}} – {{{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 office since'''<br>{{{term_start3}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | <!----------Majority Leader 2 predecessor/successor----------> | ||
| + | {{#if:{{{predecessor3|}}} |<!--then:--> | ||
| + | ! Preceded by | ||
| + | {{!}} {{{predecessor3}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | {{#if:{{{successor3|}}} |<!--then:--> | ||
| + | ! Succeeded 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 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 office '''<br>{{{term_start}}}<br>Serving with [[{{{alongside}}}]] | ||
| + | {{!-}} | ||
| + | }} | ||
| + | |||
| + | |||
| + | <!----------Predecessor/Successor----------> | ||
| + | {{#if:{{{succeeding|}}} |<!--then:--> | ||
| + | ! Succeeeding | ||
| + | {{!}} {{{succeeding}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | {{#if:{{{preceded|}}} |<!--then:--> | ||
| + | ! Preceded by | ||
| + | {{!}} {{{preceded}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | {{#if:{{{succeeded|}}} |<!--then:--> | ||
| + | ! Succeeded 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 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 office '''<br>{{{term_start4}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | |||
| + | |||
| + | <!----------Representative Predecessor/Successor----------> | ||
| + | {{#if:{{{preceded4|}}} |<!--then:--> | ||
| + | ! Preceded by | ||
| + | {{!}} {{{preceded4}}} | ||
| + | {{!-}} | ||
| + | }} | ||
| + | {{#if:{{{succeeded4|}}} |<!--then:--> | ||
| + | ! Succeeded 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 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 17:20, 3 May 2007
| Infobox senator | |
| Born | |
|---|---|
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
Copy and paste the template below:
{{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=
|}}
If Senator is incumbent, use "term_start=" instead of "term=" and add:
| alongside= (the name of fellow senator)
If Senator has just been elected and is a Senator-Elect:
| succeeding= (the name of the incumbent senator)
If Senator served as Senate Majority Leader add:
|majorityleader= (number of office holder) |term_start2= |term_end2= |predecessor2= |successor2=
If Senator served as Congressman add:
| state2= | district= | term4= | preceded4= | succeeded4=