Difference between revisions of "Template:CongLinks/doc"

From blackwiki
Jump to navigation Jump to search
imported>HoboJones
imported>Auric
 
(60 intermediate revisions by 24 users not shown)
Line 1: Line 1:
This template allows linking to external links found on most current U.S. congress biographies. This will aid in the maintenance and standardization of these external links.
+
{{Documentation subpage}}
 +
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Lua|Module:Check for unknown parameters}}
 +
{{Uses Wikidata|P1839|P1157|P3344}}
  
==How to use==
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' allows linking to external links found on most current U.S. Congress biographies and on many state-level political biographies. This will aid in the maintenance and standardization of these external links.
  
* This template is only appropriate for '''post-1991''' legislators.
+
== Usage ==
 +
* This template is only appropriate for legislators who served any time during or after 1991.
 
* This template should '''not''' be [[Wikipedia:Template substitution|substituted]].
 
* This template should '''not''' be [[Wikipedia:Template substitution|substituted]].
  
===Cut & paste===
+
===Cut and paste===
Either
 
 
<pre>
 
<pre>
{{CongLinks
+
{{CongLinks | congbio = | votesmart = | fec = | congress = }}
| name            =
 
| congbio         =  
 
| fec            =
 
| opensecrets    =
 
| votesmart       =
 
| followthemoney  =
 
| ontheissuespath =
 
| legistorm      =
 
| surge          =
 
| govtrack        =
 
| findagrave      =
 
| retrieved      =
 
}}
 
 
</pre>
 
</pre>
or
+
 
<pre>
+
The '''order''' of the fields ''does not'' matter for results, but is useful for consistency and to see what's missing.
{{CongLinks | name = | congbio = | fec = | opensecrets = | votesmart  = | followthemoney  = | ontheissuespath =
 
| legistorm= | surge = | govtrack  = | findagrave= | retrieved= }}
 
</pre>
 
The '''order''' of the fields ''does not'' matter.
 
  
 
===Fields===
 
===Fields===
 
* All parameters are optional, but if you don't include any of them, nothing will show up.
 
* All parameters are optional, but if you don't include any of them, nothing will show up.
 
* Do not use capital letters.  They might disrupt the code.
 
* Do not use capital letters.  They might disrupt the code.
{| class=wikitable style="font-size:80%"
+
{| class="wikitable" style="font-size:90%"
 
! Field !! Data !! Result !! [[URL]] source
 
! Field !! Data !! Result !! [[URL]] source
|-
 
| ''name'' || name || colspan=2 | If the article title is inappropriate for link captions.<br/>As of [[30 December]] [[2007]], captions aren't used, so this is not a big deal.
 
 
|-
 
|-
 
| ''congbio'' || ID number of the congressional biography || Congressional Biography and Washington Post voting record || http://bioguide.congress.gov /scripts/biodisplay.pl?index='''[congbio]'''
 
| ''congbio'' || ID number of the congressional biography || Congressional Biography and Washington Post voting record || http://bioguide.congress.gov /scripts/biodisplay.pl?index='''[congbio]'''
 
|-
 
|-
| ''fec'' || Federal Election Commission ID || Campaign finance reports and data || http://herndon1.sdrdc.com /cgi-bin/can_detail/'''[fec]'''
+
| ''votesmart'' || votesmart.org id || Biography, voting record, and interest group ratings || https://www.votesmart.org /candidate/'''[votesmart]'''
|-
 
| ''opensecrets'' || opensecrets.org page || Campaign contributions || http://www.opensecrets.org /politicians/summary.asp?CID='''[opensecrets]'''
 
|-
 
| ''votesmart'' || votesmart.org id || Biography, voting record, and interest group ratings || http://www.votesmart.org /bio.php?can_id='''[votesmart]'''
 
|-
 
| ''followthemoney'' || followthemoney.org id || State-level campaign contributions || http://www.followthemoney.org/ database/StateGlance/candidate.phtml?c='''[followthemoney]'''
 
|-
 
| ''ontheissuespath'' || Path name needed || Issue positions and quotes ||  http://www.ontheissues.org /'''[ontheissuespath]'''
 
|-
 
| ''legistorm'' || Path name needed || Staff salaries, trips and personal finance || http://www.legistorm.org /'''[legistorm]'''
 
|-
 
| ''surge'' || Statesurge index || Bills Sponsored || http://www.statesurge.com /members/'''[surge]'''
 
|-
 
| ''govtrack'' || GovTrack index || Congressional profile || http://www.govtrack.us /congress/person.xpd?id='''[govtrack]'''
 
 
|-
 
|-
| ''findagrave'' || FindAGrave index || Burial info. But if still alive, just don't include it || http://www.findagrave.com /cgi-bin/fg.cgi?page=gr&GRid='''[findagrave]'''
+
| ''fec'' || Federal Election Commission ID || Campaign finance reports and data || https://www.fec.gov/ data/search/?search='''[fec]'''
 
|-
 
|-
| ''retrieved'' || date (yyyy-mm-dd) || date these links were last retrieved || no url
+
| ''congress'' || Path name || Legislation sponsored || https://www.congress.gov/ member/'''[congress]'''
 
|}
 
|}
  
 
==Example==
 
==Example==
[[David Davis (U.S. politician)]]:
+
[[John Boehner]]:
<pre>{{ CongLinks  
+
<pre>
| name =            David Davis
+
* {{CongLinks | congbio = b000589 | votesmart = 27015 | fec = H0OH08029 | congress = john-boehner/102 }}
| congbio =         D000606
+
</pre>
| fec =            H6TN01313
+
* {{CongLinks | congbio = b000589 | votesmart = 27015 | fec = H0OH08029 | congress = john-boehner/102 }}
| opensecrets =    N00008758
+
 
| votesmart =       BC038542
+
==Tracking category==
| ontheissuespath = House/David_Davis.htm
+
* {{clc|Pages using Template:CongLinks with unknown parameters}}
| legistorm =       Rep_David_Davis/829.html
 
| surge =          753
 
| govtrack =        412235
 
| retrieved =      2008-02-04
 
}}</pre> will return all relevant external links:
 
{{CongLinks | name = David Davis | congbio = D000606 | fec = H6TN01313 | opensecrets = N00008758 | votesmart = BC038542 | ontheissues = House/David_Davis.htm | legistorm = Rep_David_Davis/829.html | surge=753 | govtrack =  412235 | retrieved=2008-02-04}}
 
  
 
==See also==
 
==See also==
 
+
* {{tl|Bioguide}}
* {{tl|CongBio}}
+
* {{tl|Biographical Directory of Congress}}
* {{tl|Cleanup Congress Bio}} puts articles in the category, [[:Category:Biographical Directory of the United States Congress cleanup]].
+
* {{tl|Cleanup Congress bio}} puts articles in the category [[:Category:Biographical Directory of the United States Congress cleanup]].
* {{tl|Bioguide}} looks like this: {{Bioguide}}
 
 
* [[Biographical Directory of the United States Congress]]
 
* [[Biographical Directory of the United States Congress]]
 
* [[Wikipedia:WikiProject U.S. Congress/Bioguide]], a subpage of '''Project Congress''', tracks how well information is imported from the Bioguide.
 
* [[Wikipedia:WikiProject U.S. Congress/Bioguide]], a subpage of '''Project Congress''', tracks how well information is imported from the Bioguide.
  
[[Category:People and person external link templates|CongLinks]]
+
<includeonly>{{Sandbox other||
[[Category:United States Congress templates|{{PAGENAME}}]]
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:People and person external link templates]]
[[ro:Format:CongLinks]]
+
[[Category:United States Congress external link templates]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates using multiple Wikidata external identifiers]]
 +
[[Category:Templates containing multiple external links]]
 +
[[Category:Templates that add a tracking category]]
 +
}}</includeonly>

Latest revision as of 22:43, 8 January 2020

Template:Uses Wikidata

Template:CongLinks allows linking to external links found on most current U.S. Congress biographies and on many state-level political biographies. This will aid in the maintenance and standardization of these external links.

Usage

  • This template is only appropriate for legislators who served any time during or after 1991.
  • This template should not be substituted.

Cut and paste

{{CongLinks | congbio = | votesmart = | fec = | congress = }}

The order of the fields does not matter for results, but is useful for consistency and to see what's missing.

Fields

  • All parameters are optional, but if you don't include any of them, nothing will show up.
  • Do not use capital letters. They might disrupt the code.
Field Data Result URL source
congbio ID number of the congressional biography Congressional Biography and Washington Post voting record http://bioguide.congress.gov /scripts/biodisplay.pl?index=[congbio]
votesmart votesmart.org id Biography, voting record, and interest group ratings https://www.votesmart.org /candidate/[votesmart]
fec Federal Election Commission ID Campaign finance reports and data https://www.fec.gov/ data/search/?search=[fec]
congress Path name Legislation sponsored https://www.congress.gov/ member/[congress]

Example

John Boehner:

* {{CongLinks | congbio = b000589 | votesmart = 27015 | fec = H0OH08029 | congress = john-boehner/102 }}

Tracking category

See also