Template:Politician
From OpenCongress Wiki
(Difference between revisions)
Yaronkoren (Talk | contribs) (Fixed) |
Conor Kenny (Talk | contribs) |
||
| (31 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#if:{{{District Office 1 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 1 Address}}} }}| ]] }} | + | <noinclude> |
| + | This is the 'Politician' template. | ||
| + | It should be called in the following format: | ||
| + | <pre>{{Politician | ||
| + | |||
| + | <!--From wikipedia--> | ||
| + | |term_start= | ||
| + | |term_end= | ||
| + | |otherparty = | ||
| + | |||
| + | <!-- From Cause Caller --> | ||
| + | |Birth= | ||
| + | |First Elected= | ||
| + | |Next Election= | ||
| + | |110th Leadership= | ||
| + | |Freshman= | ||
| + | |Previous Political Work= | ||
| + | |110th Committee Membership= | ||
| + | |Zip Code Affiliations= | ||
| + | |||
| + | <!-- NEW --> | ||
| + | |Current Office= | ||
| + | |110th Committee Chairs= | ||
| + | |110th Committee Ranking Member= | ||
| + | |111th Leadership= | ||
| + | |111th Committee Membership= | ||
| + | |111th Committee Chairs= | ||
| + | |111th Committee Ranking Member= | ||
| + | |111th Caucuses | ||
| + | |||
| + | <!-- From Congresspedia --> | ||
| + | |110th Caucuses = | ||
| + | |District Office 1 Address= | ||
| + | |District Office 1 Phone= | ||
| + | |District Office 1 Fax= | ||
| + | |District Office 2 Address= | ||
| + | |District Office 2 Phone= | ||
| + | |District Office 2 Fax= | ||
| + | |District Office 3 Address= | ||
| + | |District Office 3 Phone= | ||
| + | |District Office 3 Fax= | ||
| + | |District Office 4 Address= | ||
| + | |District Office 4 Phone= | ||
| + | |District Office 4 Fax= | ||
| + | |District Office 5 Address= | ||
| + | |District Office 5 Phone= | ||
| + | |District Office 5 Fax= | ||
| + | |District Office 6 Address= | ||
| + | |District Office 6 Phone= | ||
| + | |District Office 6 Fax= | ||
| + | |District Office 7 Address= | ||
| + | |District Office 7 Phone= | ||
| + | |District Office 7 Fax= | ||
| + | |District Office 8 Address= | ||
| + | |District Office 8 Phone= | ||
| + | |District Office 8 Fax= | ||
| + | |District Office 9 Address= | ||
| + | |District Office 9 Phone= | ||
| + | |District Office 9 Fax= | ||
| + | |Campaign E-mail= | ||
| + | |Campaign E-mail Link= | ||
| + | |Campaign Homepage= | ||
| + | |Campaign Office 1 Address= | ||
| + | |Campaign Office 1 Phone= | ||
| + | |Campaign Office 1 Fax= | ||
| + | |Campaign Office 2 Address= | ||
| + | |Campaign Office 2 Phone= | ||
| + | |Campaign Office 2 Fax= | ||
| + | |Campaign Office 3 Address= | ||
| + | |Campaign Office 3 Phone= | ||
| + | |Campaign Office 3 Fax= | ||
| + | |Campaign Office 4 Address= | ||
| + | |Campaign Office 4 Phone= | ||
| + | |Campaign Office 4 Fax= | ||
| + | |Campaign Office 5 Address= | ||
| + | |Campaign Office 5 Phone= | ||
| + | |Campaign Office 5 Fax= | ||
| + | }} | ||
| + | </pre> | ||
| + | Edit the page to see the template text: | ||
| + | </noinclude> | ||
| + | {{#get_external_data:http://services.sunlightlabs.com/api/legislators.getList.xml?apikey=SL_API&congresspedia_url=http://www.opencongress.org/wiki/{{PAGENAMEE}}|xml|title=title |firstname=firstname|middlename=middlename|lastname=lastname|name_suffix=name_suffix|nickname=nickname| party=party|state=state|district=district|in_office=in_office|gender=gender|phone=phone|fax=fax|website=website|webform=webform| email=email| congress_office=congress_office|bioguide_id=bioguide_id|votesmart_id=votesmart_id| fec_id=fec_id|govtrack_id=govtrack_id|crp_id=crp_id|eventful_id=eventful_id|sunlight_old_id=sunlight_old_id| twitter_id=twitter_id|congresspedia_url=congresspedia_url|youtube_url=youtube_url|senate_class=senate_class}} | ||
| + | <big>'''Semantic data'''</big> | ||
| + | (<span class="plainlinks">[http://www.opencongress.org/w/index.php?title={{PAGENAMEE}}&action=formedit Edit data]</span>) | ||
| + | {| class="wikitable collapsible collapsed" | ||
| + | |- | ||
| + | !colspan="4" align="center"|From the Sunlight Foundation API | ||
| + | |- | ||
| + | !colspan="4" align="center"|Current Office: {{{Current Office}}} | ||
| + | |- | ||
| + | |'''Title: [[Title::{{#external_value:title}}]] | ||
| + | |'''First name:''' [[First name::{{#external_value:firstname}}]] | ||
| + | |'''Middle name:''' [[Middle name::{{#external_value:middlename}}]] | ||
| + | |'''Last name:''' [[Last name::{{#external_value:lastname}}]] | ||
| + | |- | ||
| + | |colspan="2"|'''Suffix:''' {{#external_value:name_suffix}} | ||
| + | |colspan="2"|'''Nickname:''' {{#external_value:nickname}} | ||
| + | |- | ||
| + | |'''Party:''' [[Party::{{#external_value:party}}]] | ||
| + | |'''State:''' [[State::{{#external_value:state}}]] | ||
| + | |'''District:''' | ||
| + | |||
| + | {{#ifeq:{{#external_value:district}}|0|[[District::AL]]|[[District::{{padleft:{{#external_value:district}}|2}}]]}} '''District short:''' [[District short::{{#external_value:district}}]] | ||
| + | |'''Currently in office?''' {{#external_value:in_office}} | ||
| + | |- | ||
| + | |colspan="4"|'''Gender:''' {{#external_value:gender}} | ||
| + | |- | ||
| + | |'''Phone:''' [[Phone::{{#external_value:phone}}]] | ||
| + | |'''Fax:''' [[Fax::{{#external_value:fax}}]] | ||
| + | |'''Website:''' [[Website::{{#external_value:website}}]] | ||
| + | |'''Webform email:''' [[Webform email::{{#external_value:webform}}]]<br>'''Email address:''' [[Email address::{{#external_value:email}}]] | ||
| + | |- | ||
| + | |colspan="4"|'''DC office:''' [[Congressional address::{{#external_value:congress_office}}]] | ||
| + | |- | ||
| + | |'''Bioguide ID:''' {{#external_value:bioguide_id}} | ||
| + | |'''Votesmart ID:''' {{#external_value:votesmart_id}} | ||
| + | |'''FEC ID:''' {{#external_value:fec_id}} | ||
| + | |'''Govtrack ID:''' [[Govtrack_id::{{#external_value:govtrack_id}}]] | ||
| + | |- | ||
| + | |'''CRP ID:''' {{#external_value:crp_id}} | ||
| + | |'''Eventful ID:''' {{#external_value:eventful_id}} | ||
| + | |'''Old Sunlight ID:''' {{#external_value:sunlight_old_id}} | ||
| + | |'''Twitter ID:''' [[Twitter ID::{{#external_value:twitter_id}}]] | ||
| + | |- | ||
| + | |colspan="2"|'''OpenCongress Wiki URL:''' {{#external_value:congresspedia_url}} | ||
| + | |'''YouTubeID:''' [[YouTubeID::{{#replace:{{#external_value:youtube_url}}|http://www.youtube.com/|}}]] | ||
| + | |'''Senate class:''' [[Senate class::{{#external_value:senate_class}}]] | ||
| + | |} | ||
| + | |||
| + | {| class="wikitable collapsible collapsed" | ||
| + | |- | ||
| + | !colspan="4" align="center"| Entered manually within the [[Template:Politician]] | ||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|[[Current office::{{{Current Office}}}]] | ||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|'''111th Congress''' | ||
| + | |- | ||
| + | |||
| + | |'''Leadership Position:'''<br/>[[111th leadership::{{{111th Leadership|}}}]] | ||
| + | |'''Committees Chaired:'''<br/> | ||
| + | |||
| + | |'''Committees,<br/> Ranking Member On:'''<br/> | ||
| + | |||
| + | |'''Caucuses:'''<br/> | ||
| + | |||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|'''110th Congress''' | ||
| + | |- | ||
| + | |'''Leadership Position:'''<br/>[[110th leadership::{{{110th Leadership|}}}]] | ||
| + | |'''Committees Chaired:'''<br/> | ||
| + | |||
| + | |'''Committees,<br/> Ranking Member On:'''<br/> | ||
| + | |||
| + | |'''Caucuses:'''<br/> | ||
| + | |||
| + | |- | ||
| + | |colspan="4"|'''Committees:''' | ||
| + | |||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|Congressional Career | ||
| + | |- | ||
| + | |'''First Elected to Current Office:'''<br/>[[First elected::{{{First Elected|}}}]] | ||
| + | |'''First Took Current Office:'''<br/>[[term start::{{{term_start|}}}]] | ||
| + | |'''Next Election:'''<br/>[[Next election::{{{Next Election|}}}]] | ||
| + | |'''Term Ends:'''<br/>[[term end:::{{{term_end|}}}]] | ||
| + | |- | ||
| + | |'''Freshman Member?'''<br/> [[Freshman::{{{Freshman|}}}]] | ||
| + | |'''Previous Political Work?'''<br/> | ||
| + | {{#arraymap:{{{Previous Political Work|}}}|,|x|[[Previous political work::x]]}} | ||
| + | |colspan="2"|'''Other Party Membership:''' [[otherparty::{{{otherparty|}}}]] | ||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|District Offices: | ||
| + | |- | ||
| + | |colspan="4"| | ||
| + | * [[District office 1 address::{{{District Office 1 Address|}}}]] <br/>Phone: [[District office 1 phone::{{{District Office 1 Phone|}}}]] / Fax: [[District 1 fax::{{{District Office 1 Fax|}}}]] {{#if:{{{District Office 2 Address|}}}| | ||
| + | * [[District office 2 address::{{{District Office 2 Address|}}}]] <br/>Phone: [[District office 2 phone::{{{District Office 2 Phone|}}}]] / Fax: [[District 2 fax::{{{District Office 2 Fax|}}}]]}} {{#if:{{{District Office 3 Address|}}}| | ||
| + | * [[District office 3 address::{{{District Office 3 Address|}}}]] <br/>Phone: [[District office 3 phone::{{{District Office 3 Phone|}}}]] / Fax: [[District 3 fax::{{{District Office 3 Fax|}}}]]}} {{#if:{{{District Office 4 Address|}}}| | ||
| + | * [[District office 4 address::{{{District Office 4 Address|}}}]] <br/>Phone: [[District office 4 phone::{{{District Office 4 Phone|}}}]] / Fax: [[District 4 fax::{{{District Office 4 Fax|}}}]]}} {{#if:{{{District Office 5 Address|}}}| | ||
| + | * [[District office 5 address::{{{District Office 5 Address|}}}]] <br/>Phone: [[District office 5 phone::{{{District Office 5 Phone|}}}]] / Fax: [[District 5 fax::{{{District Office 5 Fax|}}}]]}} {{#if:{{{District Office 6 Address|}}}| | ||
| + | * [[District office 6 address::{{{District Office 6 Address|}}}]] <br/>Phone: [[District office 6 phone::{{{District Office 6 Phone|}}}]] / Fax: [[District 6 fax::{{{District Office 6 Fax|}}}]]}} {{#if:{{{District Office 7 Address|}}}| | ||
| + | * [[District office 7 address::{{{District Office 7 Address|}}}]] <br/>Phone: [[District office 7 phone::{{{District Office 7 Phone|}}}]] / Fax: [[District 7 fax::{{{District Office 7 Fax|}}}]]}} {{#if:{{{District Office 8 Address|}}}| | ||
| + | * [[District office 8 address::{{{District Office 8 Address|}}}]] <br/>Phone: [[District office 8 phone::{{{District Office 8 Phone|}}}]] / Fax: [[District 8 fax::{{{District Office 8 Fax|}}}]]}} {{#if:{{{District Office 9 Address|}}}| | ||
| + | * [[District office 9 address::{{{District Office 9 Address|}}}]] <br/>Phone: [[District office 9 phone::{{{District Office 9 Phone|}}}]] / Fax: [[District 9 fax::{{{District Office 9 Fax|}}}]]}} | ||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|Campaign Contact: | ||
| + | |- | ||
| + | |||
| + | |colspan="4"| | ||
| + | '''Website:''' [[Campaign website::{{{Campaign Homepage|}}}]]<br> | ||
| + | '''Webform Email:''' [[Campaign webform email::{{{Campaign E-mail Link|}}}]] / '''Email:''' [[Campaign email::{{{Campaign E-mail|}}}]]<br/> | ||
| + | |||
| + | '''Campaign Offices:'''<br/> | ||
| + | * [[Campaign office 1 address::{{{Campaign Office 1 Address|}}}]] <br/>Phone: [[Campaign office 1 phone::{{{Campaign Office 1 Phone|}}}]] / Fax: [[Campaign office 1 Fax::{{{Campaign Office 1 Fax|}}}]] {{#if:{{{Campaign Office 2 Address|}}}| | ||
| + | * [[Campaign office 2 address::{{{Campaign Office 2 Address|}}}]] <br/>Phone: [[Campaign office 2 phone::{{{Campaign Office 2 Phone|}}}]] / Fax: [[Campaign office 2 Fax::{{{Campaign Office 2 Fax|}}}]]}} {{#if:{{{Campaign Office 3 Address|}}}| | ||
| + | * [[Campaign office 3 address::{{{Campaign Office 3 Address|}}}]] <br/>Phone: [[Campaign office 3 phone::{{{Campaign Office 3 Phone|}}}]] / Fax: [[Campaign office 3 Fax::{{{Campaign Office 3 Fax|}}}]]}} {{#if:{{{Campaign Office 4 Address|}}}| | ||
| + | * [[Campaign office 4 address::{{{Campaign Office 4 Address|}}}]] <br/>Phone: [[Campaign office 4 phone::{{{Campaign Office 4 Phone|}}}]] / Fax: [[Campaign office 4 Fax::{{{Campaign Office 4 Fax|}}}]]}} {{#if:{{{Campaign Office 5 Address|}}}| | ||
| + | * [[Campaign office 5 address::{{{Campaign Office 5 Address|}}}]] <br/>Phone: [[Campaign office 5 phone::{{{Campaign Office 5 Phone|}}}]] / Fax: [[Campaign office 5 Fax::{{{Campaign Office 1 Fax|}}}]]}} {{#if:{{{Campaign Office 6 Address|}}}| | ||
| + | * [[Campaign office 6 address::{{{Campaign Office 6 Address|}}}]] <br/>Phone: [[Campaign office 6 phone::{{{Campaign Office 6 Phone|}}}]] / Fax: [[Campaign office 6 Fax::{{{Campaign Office 6 Fax|}}}]]}} | ||
| + | |- | ||
| + | |||
| + | !colspan="4" align="center"|Misc: | ||
| + | |- | ||
| + | |colspan="4"| | ||
| + | '''Date of Birth:''' [[DOB::{{{Birth|}}}]] | ||
| + | |||
| + | [[First elected::{{{First Elected|}}}]] | ||
| + | |}<!-- | ||
| + | |||
| + | Categories for missing fields | ||
| + | |||
| + | --><includeonly> | ||
| + | {{#if:{{{Current Office|}}}||[[Category:Member profiles with an incomplete or blank "politician" template]]}}<!-- | ||
| + | -->{{#if:{{{110th Committee Membership|}}}||[[Category:Congresspedia pages missing 110th committee membership]]}}<!-- | ||
| + | -->{{#if:{{{First Elected|}}}||[[Category:Member profiles missing a "First Elected" field]]}}<!-- | ||
| + | -->{{#if:{{{term_start|}}}||[[Category:Member profiles missing a "term_start" field]]}}<!-- | ||
| + | -->{{#if:{{{Next Election|}}}||[[Category:Member profiles missing a "Next Election" field]]}}<!-- | ||
| + | -->{{#if:{{{District Office 1 Address|}}}||[[Category:Member profiles missing a district office address]]}}<!-- | ||
| + | -->{{#if:{{{District Office 1 Phone|}}}||[[Category:Member profiles missing a "District Office 1 Phone" field]]}}<!-- | ||
| + | -->{{#if:{{{District Office 1 Fax|}}}||[[Category:Member profiles missing a "District Office 1 Fax" field]]}}<!-- | ||
| + | -->{{#if:{{{Freshman|}}}||[[Category:Member profiles missing a "Freshman" field]]}}<!-- | ||
| + | -->{{#if:{{{Freshman|}}}||[[Category:Member profiles missing a "Freshman" field]]}}<!-- | ||
| + | -->{{#if:{{#external_value:firstname}}||[[Category:Member of Congress profiles at the wrong url]]}} | ||
| + | </includeonly> | ||
| + | <!-- | ||
| + | |||
| + | Geocoding | ||
| + | |||
| + | -->{{#if:{{{District Office 1 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 1 Address}}} }}| ]] }} | ||
{{#if:{{{District Office 2 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 2 Address}}} }}| ]] }} | {{#if:{{{District Office 2 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 2 Address}}} }}| ]] }} | ||
{{#if:{{{District Office 3 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 3 Address}}} }}| ]] }} | {{#if:{{{District Office 3 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 3 Address}}} }}| ]] }} | ||
| Line 7: | Line 240: | ||
{{#if:{{{District Office 7 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 7 Address}}} }}| ]] }} | {{#if:{{{District Office 7 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 7 Address}}} }}| ]] }} | ||
{{#if:{{{District Office 8 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 8 Address}}} }}| ]] }} | {{#if:{{{District Office 8 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 8 Address}}} }}| ]] }} | ||
| − | {{#if:{{{District Office 9 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 9 Address}}} }}| ]] }} | + | {{#if:{{{District Office 9 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 9 Address}}} }}| ]] }}<!-- |
| − | + | ||
| + | Full state name definition | ||
| + | |||
| + | -->[[Full state name::{{#show:{{#external_value:state}}|?Full state name|link=none}}| ]]<!-- | ||
| + | |||
| + | Full party name definition | ||
| + | |||
| + | --> | ||
| + | {{#ifeq:{{#show:{{PAGENAME}}|?Party}}|R|[[Full party name::Republican| ]]}} | ||
| + | {{#ifeq:{{#show:{{PAGENAME}}|?Party}}|D|[[Full party name::Democratic| ]]}} | ||
| + | {{#ifeq:{{#show:{{PAGENAME}}|?Party}}|I|[[Full party name::Independent| ]]}} | ||
| + | {{#ifeq:{{#show:{{PAGENAME}}|?Party}}|L|[[Full party name::Libertarian| ]]}} | ||
| + | {{#ifeq:{{#show:{{PAGENAME}}|?Party}}|G|[[Full party name::Green| ]]}} | ||
| + | {{#ifeq:{{#show:{{PAGENAME}}|?Party}}|O|[[Full party name::Other| ]]}} | ||
| + | [[Category:Politicians]] | ||
Latest revision as of 00:27, January 31, 2012
This is the 'Politician' template. It should be called in the following format:
{{Politician
<!--From wikipedia-->
|term_start=
|term_end=
|otherparty =
<!-- From Cause Caller -->
|Birth=
|First Elected=
|Next Election=
|110th Leadership=
|Freshman=
|Previous Political Work=
|110th Committee Membership=
|Zip Code Affiliations=
<!-- NEW -->
|Current Office=
|110th Committee Chairs=
|110th Committee Ranking Member=
|111th Leadership=
|111th Committee Membership=
|111th Committee Chairs=
|111th Committee Ranking Member=
|111th Caucuses
<!-- From Congresspedia -->
|110th Caucuses =
|District Office 1 Address=
|District Office 1 Phone=
|District Office 1 Fax=
|District Office 2 Address=
|District Office 2 Phone=
|District Office 2 Fax=
|District Office 3 Address=
|District Office 3 Phone=
|District Office 3 Fax=
|District Office 4 Address=
|District Office 4 Phone=
|District Office 4 Fax=
|District Office 5 Address=
|District Office 5 Phone=
|District Office 5 Fax=
|District Office 6 Address=
|District Office 6 Phone=
|District Office 6 Fax=
|District Office 7 Address=
|District Office 7 Phone=
|District Office 7 Fax=
|District Office 8 Address=
|District Office 8 Phone=
|District Office 8 Fax=
|District Office 9 Address=
|District Office 9 Phone=
|District Office 9 Fax=
|Campaign E-mail=
|Campaign E-mail Link=
|Campaign Homepage=
|Campaign Office 1 Address=
|Campaign Office 1 Phone=
|Campaign Office 1 Fax=
|Campaign Office 2 Address=
|Campaign Office 2 Phone=
|Campaign Office 2 Fax=
|Campaign Office 3 Address=
|Campaign Office 3 Phone=
|Campaign Office 3 Fax=
|Campaign Office 4 Address=
|Campaign Office 4 Phone=
|Campaign Office 4 Fax=
|Campaign Office 5 Address=
|Campaign Office 5 Phone=
|Campaign Office 5 Fax=
}}
Edit the page to see the template text:
Semantic data
(Edit data)
| From the Sunlight Foundation API | |||
|---|---|---|---|
| Current Office: {{{Current Office}}} | |||
| Title: | First name: | Middle name: | Last name: |
| Suffix: | Nickname: | ||
| Party: | State: | District:
00 District short: |
Currently in office? |
| Gender: | |||
| Phone: | Fax: | Website: | Webform email: Email address: |
| DC office: | |||
| Bioguide ID: | Votesmart ID: | FEC ID: | Govtrack ID: |
| CRP ID: | Eventful ID: | Old Sunlight ID: | Twitter ID: |
| OpenCongress Wiki URL: | YouTubeID: | Senate class: | |
| Entered manually within the Template:Politician | |||
|---|---|---|---|
| {{{Current Office}}} | |||
| 111th Congress | |||
| Leadership Position: |
Committees Chaired: |
Committees, Ranking Member On: |
Caucuses: |
| 110th Congress | |||
| Leadership Position: |
Committees Chaired: |
Committees, Ranking Member On: |
Caucuses: |
| Committees: | |||
| Congressional Career | |||
| First Elected to Current Office: |
First Took Current Office: |
Next Election: |
Term Ends: |
| Freshman Member? |
Previous Political Work? |
Other Party Membership: | |
| District Offices: | |||
| |||
| Campaign Contact: | |||
|
Website: Campaign Offices:
| |||
| Misc: | |||
|
Date of Birth:
| |||
Template:Politician - OpenCongress Wiki
