Template:Politician

From OpenCongress Wiki

(Difference between revisions)
Jump to: navigation, search
(Removed newlines and display of state name from full name settings, added West Virginia)
 
(33 intermediate revisions by 3 users not shown)
Line 77: Line 77:
 
|Campaign Office 5 Fax=  
 
|Campaign Office 5 Fax=  
 
}}
 
}}
 
 
</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|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}}
= Human Readable =
+
<big>'''Semantic data'''</big>
 
+
(<span class="plainlinks">[http://www.opencongress.org/w/index.php?title={{PAGENAMEE}}&action=formedit Edit data]</span>)
'''From the Sunlight API:'''
+
{| class="wikitable collapsible collapsed"
 
+
|-
{| style="border-collapse:collapse; background: #efefef; border: 1px solid #000000;" border="1"
+
!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}}}
Line 100: Line 99:
 
|'''Party:''' [[Party::{{#external_value:party}}]]
 
|'''Party:''' [[Party::{{#external_value:party}}]]
 
|'''State:''' [[State::{{#external_value:state}}]]
 
|'''State:''' [[State::{{#external_value:state}}]]
|'''District:''' [[District::{{#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 110: Line 111:
 
|'''Webform email:''' [[Webform email::{{#external_value:webform}}]]<br>'''Email address:''' [[Email address::{{#external_value:email}}]]
 
|'''Webform email:''' [[Webform email::{{#external_value:webform}}]]<br>'''Email address:''' [[Email address::{{#external_value:email}}]]
 
|-
 
|-
|colspan="4"|'''DC office:''' {{#external_value:congress_office}}
+
|colspan="4"|'''DC office:''' [[Congressional address::{{#external_value:congress_office}}]]
 
|-
 
|-
 
|'''Bioguide ID:''' {{#external_value:bioguide_id}}
 
|'''Bioguide ID:''' {{#external_value:bioguide_id}}
Line 122: Line 123:
 
|'''Twitter ID:''' [[Twitter ID::{{#external_value:twitter_id}}]]
 
|'''Twitter ID:''' [[Twitter ID::{{#external_value:twitter_id}}]]
 
|-
 
|-
|colspan="4"|'''Congresspedia URL:''' {{#external_value:congresspedia_url}}]]
+
|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"
'''Corresponding article on [http://en.wikipedia.org/wiki/{{PAGENAMEE}} Wikipedia] and [http://www.causecaller.com/wiki/{{PAGENAMEE}} Cause Caller]. (If Cause Caller link does not work, pick from its list of [http://www.causecaller.com/wiki/Senator senators] and [http://www.causecaller.com/wiki/Representative representatives].)'''
+
|-
 
+
!colspan="4" align="center"| Entered manually within the [[Template:Politician]]
{| style="border-collapse:collapse; background: #efefef; border: 1px solid #000000;" border="1"
+
 
|-
 
|-
  
!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 193: Line 191:
 
!colspan="4" align="center"|Campaign Contact:
 
!colspan="4" align="center"|Campaign Contact:
 
|-
 
|-
 +
 
|colspan="4"|
 
|colspan="4"|
'''Website:''' [[Campaign Homepage::{{{Campaign Homepage|}}}]]<br>
+
'''Website:''' [[Campaign website::{{{Campaign Homepage|}}}]]<br>
'''Webform Email:''' [[Campaign Webform E-mail::{{{Campaign E-mail Link|}}}]] / '''Email:''' [[Campaign E-mail::{{{Campaign E-mail|}}}]]<br/>
+
'''Webform Email:''' [[Campaign webform email::{{{Campaign E-mail Link|}}}]] / '''Email:''' [[Campaign email::{{{Campaign E-mail|}}}]]<br/>
  
 
'''Campaign Offices:'''<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 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 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 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 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 1 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]]}}
+
 
|-
 
|-
  
 
!colspan="4" align="center"|Misc:
 
!colspan="4" align="center"|Misc:
 
|-
 
|-
|colspan="2"|
+
|colspan="4"|
'''Date of Birth:''' [[DOB::{{{birth|}}}]]
+
'''Date of Birth:''' [[DOB::{{{Birth|}}}]]
|colspan="2"|
+
 
'''YouTubeID:''' {{#if:{{#external_value:youtube_url}}|[[YouTubeID::{{#replace:{{#external_value:youtube_url}}|http://www.youtube.com/|}}]]|{{#ifeq:{{#external_value:party}}|R|[[YouTubeID::HouseConference]]|[[YouTubeID::NancyPelosi]]}}}}
+
[[First elected::{{{First Elected|}}}]]
'''Senate Class:''' [[Senate class::{{#external_value:senate_class}}]]
+
|}<!--
|}
+
 
<includeonly>
+
Categories for missing fields
{{#if:{{{Current Office|}}}||[[Category:Congresspedia pages with an incomplete or blank "politician" template]]}}
+
 
{{#if:{{{110th Committee Membership|}}}||[[Category:Congresspedia pages missing 110th committee membership]]}}
+
--><includeonly>
{{#if:{{{First Elected|}}}||[[Category:Congresspedia pages missing a "First Elected" field]]}}
+
{{#if:{{{Current Office|}}}||[[Category:Member profiles with an incomplete or blank "politician" template]]}}<!--
{{#if:{{{term_start|}}}||[[Category:Congresspedia pages missing a "term_start" field]]}}
+
-->{{#if:{{{110th Committee Membership|}}}||[[Category:Congresspedia pages missing 110th committee membership]]}}<!--
{{#if:{{{Next Election|}}}||[[Category:Congresspedia pages missing a "Next Election" field]]}}
+
-->{{#if:{{{First Elected|}}}||[[Category:Member profiles missing a "First Elected" field]]}}<!--
{{#if:{{{District Office 1 Address|}}}||[[Category:Congresspedia pages missing a district office address]]}}
+
-->{{#if:{{{term_start|}}}||[[Category:Member profiles missing a "term_start" field]]}}<!--
{{#if:{{{District Office 1 Phone|}}}||[[Category:Congresspedia pages missing a "District Office 1 Phone" field]]}}
+
-->{{#if:{{{Next Election|}}}||[[Category:Member profiles missing a "Next Election" field]]}}<!--
{{#if:{{{District Office 1 Fax|}}}||[[Category:Congresspedia pages missing a "District Office 1 Fax" field]]}}
+
-->{{#if:{{{District Office 1 Address|}}}||[[Category:Member profiles missing a district office address]]}}<!--
{{#if:{{{Freshman|}}}||[[Category:Congresspedia pages missing a "Freshman" field]]}}
+
-->{{#if:{{{District Office 1 Phone|}}}||[[Category:Member profiles missing a "District Office 1 Phone" field]]}}<!--
{{#if:{{{Freshman|}}}||[[Category:Congresspedia pages missing a "Freshman" field]]}}
+
-->{{#if:{{{District Office 1 Fax|}}}||[[Category:Member profiles missing a "District Office 1 Fax" field]]}}<!--
{{#if:{{#external_value:firstname}}||[[Category:Member of Congress profiles at the wrong url]]}}
+
-->{{#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>
 
</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 3 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 3 Address}}} }}| ]] }}
 +
{{#if:{{{District Office 4 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 4 Address}}} }}| ]] }}
 +
{{#if:{{{District Office 5 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 5 Address}}} }}| ]] }}
 +
{{#if:{{{District Office 6 Address|}}}|[[District office coordinates::{{#geocode:{{{District Office 6 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 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
  
{{#if:{{{District Office 1 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 1 Address|}}} }} }} }}
+
-->
{{#if:{{{District Office 2 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 2 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|R|[[Full party name::Republican| ]]}}
{{#if:{{{District Office 3 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 3 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|D|[[Full party name::Democratic| ]]}}
{{#if:{{{District Office 4 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 4 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|I|[[Full party name::Independent| ]]}}
{{#if:{{{District Office 5 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 5 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|L|[[Full party name::Libertarian| ]]}}
{{#if:{{{District Office 6 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 6 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|G|[[Full party name::Green| ]]}}
{{#if:{{{District Office 7 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 7 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|?Party}}|O|[[Full party name::Other| ]]}}
{{#if:{{{District Office 8 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 8 Address|}}} }} }} }}
+
[[Category:Politicians]]
{{#if:{{{District Office 9 Address|}}}|{{#set:District office coordinates={{#geocode:{{{District Office 9 Address|}}} }} }} }}
+
{{#ifeq:{{#show:{{PAGENAME}}|? State}}|AL|{{#set:Full state name=Alabama}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|AK|{{#set:Full state name=Alaska}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|AZ|{{#set:Full state name=Arizona}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|AR|{{#set:Full state name=Arkansas}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|CA|{{#set:Full state name=California}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|CO|{{#set:Full state name=Colorado}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|CT|{{#set:Full state name=Connecticut}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|DE|{{#set:Full state name=Delaware}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|FL|{{#set:Full state name=Florida}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|GA|{{#set:Full state name=Georgia}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|HI|{{#set:Full state name=Hawaii}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|ID|{{#set:Full state name=Idaho}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|IL|{{#set:Full state name=Illinois}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|IN|{{#set:Full state name=Indiana}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|IA|{{#set:Full state name=Iowa}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|KS|{{#set:Full state name=Kansas}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|KY|{{#set:Full state name=Kentucky}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|LA|{{#set:Full state name=Louisiana}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|ME|{{#set:Full state name=Maine}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MD|{{#set:Full state name=Maryland}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MA|{{#set:Full state name=Massachusetts}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MI|{{#set:Full state name=Michigan}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MN|{{#set:Full state name=Minnesota}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MS|{{#set:Full state name=Mississippi}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MO|{{#set:Full state name=Missouri}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|MT|{{#set:Full state name=Montana}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NE|{{#set:Full state name=Nebraska}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NV|{{#set:Full state name=Nevada}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NH|{{#set:Full state name=New Hampshire}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NJ|{{#set:Full state name=New Jersey}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NM|{{#set:Full state name=New Mexico}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NY|{{#set:Full state name=New York}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|NC|{{#set:Full state name=North Carolina}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|ND|{{#set:Full state name=North Dakota}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|OH|{{#set:Full state name=Ohio}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|OK|{{#set:Full state name=Oklahoma}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|OR|{{#set:Full state name=Oregon}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|PA|{{#set:Full state name=Pennsylvania}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|RI|{{#set:Full state name=Rhode Island}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|SC|{{#set:Full state name=South Carolina}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|SD|{{#set:Full state name=South Dakota}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|TN|{{#set:Full state name=Tennessee}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|TX|{{#set:Full state name=Texas}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|UT|{{#set:Full state name=Utah}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|VT|{{#set:Full state name=Vermont}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|VA|{{#set:Full state name=Virginia}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|WA|{{#set:Full state name=Washington State}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|WV|{{#set:Full state name=West Virginia}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|WI|{{#set:Full state name=Wisconsin}} }} {{#ifeq:{{#show:{{PAGENAME}}|? State}}|WY|{{#set: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