Template:Politician

From OpenCongress Wiki

(Difference between revisions)
Jump to: navigation, search
 
(4 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 255: 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