Difference between revisions of "Template:CongLinks/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(copy of current template)
 
imported>Zyxw
(add check for unknown parameters)
 
Line 7: Line 7:
 
}}{{#if:{{{congress|}}}|
 
}}{{#if:{{{congress|}}}|
 
* [http://beta.congress.gov/member/{{{congress}}} Legislation sponsored] at [[The Library of Congress]]
 
* [http://beta.congress.gov/member/{{{congress}}} Legislation sponsored] at [[The Library of Congress]]
}}<noinclude>
+
}}{{#invoke:Check for unknown parameters | check | ignoreblank=1 | unknown=[[Category:Pages using Template:CongLinks with unknown parameters]] | congbio | votesmart | fec | congress }}<noinclude>
 
{{Documentation}}  
 
{{Documentation}}  
 
</noinclude>
 
</noinclude>

Latest revision as of 20:57, 18 February 2016

Template documentation[view] [edit] [history] [purge]

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