Template:Politician

From OpenCongress Wiki

(Difference between revisions)
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 82: Line 82:
 
{{#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}}
 
{{#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>
 
<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"
 
{| class="wikitable collapsible collapsed"
 
|-
 
|-
 
!colspan="4" align="center"|From the Sunlight Foundation API
 
!colspan="4" align="center"|From the Sunlight Foundation API
 
|-
 
|-
!colspan="4" align="center"|Current Office: {{{Current office}}}
+
!colspan="4" align="center"|Current Office: {{{Current Office}}}
 
|-
 
|-
 
|'''Title: [[Title::{{#external_value:title}}]]
 
|'''Title: [[Title::{{#external_value:title}}]]
Line 133: Line 133:
 
|-
 
|-
  
!colspan="4" align="center"|Current Office: {{{Current Office}}}
+
!colspan="4" align="center"|[[Current office::{{{Current Office}}}]]
 
|-
 
|-
  
Line 141: Line 141:
 
|'''Leadership Position:'''<br/>[[111th leadership::{{{111th Leadership|}}}]]
 
|'''Leadership Position:'''<br/>[[111th leadership::{{{111th Leadership|}}}]]
 
|'''Committees Chaired:'''<br/>
 
|'''Committees Chaired:'''<br/>
{{#arraymap:{{{111th Committee Chairs|}}}|,|x|[[111th committee chairs::x]]}}
+
 
 
|'''Committees,<br/> Ranking Member On:'''<br/>
 
|'''Committees,<br/> Ranking Member On:'''<br/>
{{#arraymap:{{{111th Committee Ranking Members|}}}|,|x|[[111th committee ranking member::x]]}}
+
 
 
|'''Caucuses:'''<br/>
 
|'''Caucuses:'''<br/>
{{#arraymap:{{{111th Caucuses|}}}|,|x|[[111th caucuses::x]]}}
 
|-
 
  
|colspan="4"|'''Committees:'''
 
{{#arraymap:{{{111th Committee Membership|}}}|,|x|[[111th committee membership::x]]}}
 
 
|-
 
|-
  
 
!colspan="4" align="center"|'''110th Congress'''
 
!colspan="4" align="center"|'''110th Congress'''
 
|-
 
|-
|'''Leadership Position:'''<br/>[[110th Leadership::{{{110th leadership|}}}]]
+
|'''Leadership Position:'''<br/>[[110th leadership::{{{110th Leadership|}}}]]
 
|'''Committees Chaired:'''<br/>
 
|'''Committees Chaired:'''<br/>
{{#arraymap:{{{110th Committee Chairs|}}}|,|x|[[110th committee chairs::x]]}}
+
 
 
|'''Committees,<br/> Ranking Member On:'''<br/>
 
|'''Committees,<br/> Ranking Member On:'''<br/>
{{#arraymap:{{{110th Committee Ranking Member|}}}|,|x|[[110th committee ranking member::x]]}}
+
 
 
|'''Caucuses:'''<br/>
 
|'''Caucuses:'''<br/>
{{#arraymap:{{{110th Caucuses|}}}|,|x|[[110th caucuses::x]]}}
+
 
 
|-
 
|-
 
|colspan="4"|'''Committees:'''  
 
|colspan="4"|'''Committees:'''  
{{#arraymap:{{{110th Committee Membership|}}}|,|x|[[110th committee membership::x]]}}
+
 
 
|-
 
|-
  
Line 207: Line 203:
 
* [[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 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|}}}]]}}
 
* [[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"|Zip Code Affiliations:<br>
 
{{#arraymap:{{{Zip Code Affiliations|}}}|,|x|[[Zip Code Affiliations::x]]}}
 
 
|-
 
|-
  
Line 216: Line 208:
 
|-
 
|-
 
|colspan="4"|
 
|colspan="4"|
'''Date of Birth:''' [[DOB::{{{DOB|}}}]]
+
'''Date of Birth:''' [[DOB::{{{Birth|}}}]]
 +
 
 +
[[First elected::{{{First Elected|}}}]]
 
|}<!--
 
|}<!--
  
Line 261: Line 255:
 
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|G|[[Full party name::Green| ]]}}
 
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|G|[[Full party name::Green| ]]}}
 
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|O|[[Full party name::Other| ]]}}
 
{{#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)

Toolbox

OpenCongress is a joint project of the Participatory Politics Foundation and the Sunlight Foundation. Questions? Comments? Contact Us