Template:Politician

From OpenCongress Wiki

(Difference between revisions)
Jump to: navigation, search
 
(17 intermediate revisions by 2 users not shown)
Line 78: Line 78:
 
}}
 
}}
 
</pre>
 
</pre>
Edit the page to see the template text.
+
Edit the page to see the template text:
 
</noinclude>
 
</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}}
 
{{#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"
 
|-
 
|-
Line 99: Line 99:
 
|'''Party:''' [[Party::{{#external_value:party}}]]
 
|'''Party:''' [[Party::{{#external_value:party}}]]
 
|'''State:''' [[State::{{#external_value:state}}]]
 
|'''State:''' [[State::{{#external_value:state}}]]
|'''District:''' [[District::{{padleft:{{#external_value:district}}|2}}]] '''District short:''' [[District short::{{#external_value:district}}]]
+
|'''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}}
 
|'''Currently in office?''' {{#external_value:in_office}}
 
|-
 
|-
Line 131: Line 133:
 
|-
 
|-
  
!colspan="4" align="center"|Current Office: {{{Current Office}}}
+
!colspan="4" align="center"|[[Current office::{{{Current Office}}}]]
 
|-
 
|-
  
Line 139: 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 205: 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 214: Line 208:
 
|-
 
|-
 
|colspan="4"|
 
|colspan="4"|
'''Date of Birth:''' [[DOB::{{{birth|}}}]]
+
'''Date of Birth:''' [[DOB::{{{Birth|}}}]]
 +
 
 +
[[First elected::{{{First Elected|}}}]]
 
|}<!--
 
|}<!--
  
Line 236: Line 232:
 
Geocoding
 
Geocoding
  
{{#if:{{{District Office 1 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 1 Address}}} }}| ]] }}
+
-->{{#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 244: 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 state name definitions
+
Full party name definition
  
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|AL|[[Full state name::Alabama| ]] }}<!--
+
-->
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|AK|[[Full state name::Alaska| ]] }}<!--
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|R|[[Full party name::Republican| ]]}}
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|AZ|[[Full state name::Arizona| ]] }}<!--
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|D|[[Full party name::Democratic| ]]}}
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|AR|[[Full state name::Arkansas| ]] }}<!--
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|I|[[Full party name::Independent| ]]}}
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|CA|[[Full state name::California| ]] }}<!--
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|L|[[Full party name::Libertarian| ]]}}
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|CO|[[Full state name::Colorado| ]] }}<!--
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|G|[[Full party name::Green| ]]}}
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|CT|[[Full state name::Connecticut| ]] }}<!--
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|O|[[Full party name::Other| ]]}}
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|DE|[[Full state name::Delaware| ]] }}<!--
+
[[Category:Politicians]]
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|FL|[[Full state name::Florida| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|GA|[[Full state name::Georgia| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|HI|[[Full state name::Hawaii| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|ID|[[Full state name::Idaho| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|IL|[[Full state name::Illinois| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|IN|[[Full state name::Indiana| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|IA|[[Full state name::Iowa| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|KS|[[Full state name::Kansas| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|KY|[[Full state name::Kentucky| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|LA|[[Full state name::Louisiana| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|ME|[[Full state name::Maine| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MD|[[Full state name::Maryland| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MA|[[Full state name::Massachusetts| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MI|[[Full state name::Michigan| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MN|[[Full state name::Minnesota| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MS|[[Full state name::Mississippi| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MO|[[Full state name::Missouri| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|MT|[[Full state name::Montana| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NE|[[Full state name::Nebraska| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NV|[[Full state name::Nevada| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NH|[[Full state name::New Hampshire| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NJ|[[Full state name::New Jersey| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NM|[[Full state name::New Mexico| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NY|[[Full state name::New York| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|NC|[[Full state name::North Carolina| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|ND|[[Full state name::North Dakota| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|OH|[[Full state name::Ohio| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|OK|[[Full state name::Oklahoma| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|OR|[[Full state name::Oregon| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|PA|[[Full state name::Pennsylvania| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|RI|[[Full state name::Rhode Island| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|SC|[[Full state name::South Carolina| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|SD|[[Full state name::South Dakota| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|TN|[[Full state name::Tennessee| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|TX|[[Full state name::Texas| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|UT|[[Full state name::Utah| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|VT|[[Full state name::Vermont| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|VA|[[Full state name::Virginia| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|WA|[[Full state name::Washington State| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|WV|[[Full state name::West Virginia| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|WI|[[Full state name::Wisconsin| ]] }}<!--
+
-->{{#ifeq:{{#show:{{PAGENAME}}|? State}}|WY|[[Full state name::Wyoming| ]] }}
+

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