Difference between revisions of "Template:CongLinks"

From blackwiki
Jump to navigation Jump to search
imported>Elegie
(Use HTTPS for Vote Smart/Congress member page links to provide increased user privacy/security)
imported>Zyxw
(update Check for unknown parameters to remove "ignoreblank", since all instances of template with non-blank values have been updated)
Line 7: Line 7:
 
}}{{#if:{{{congress|}}}|
 
}}{{#if:{{{congress|}}}|
 
* [https://www.congress.gov/member/{{{congress}}} Legislation sponsored] at [[The Library of Congress]]
 
* [https://www.congress.gov/member/{{{congress}}} Legislation sponsored] at [[The Library of Congress]]
}}{{#invoke:Check for unknown parameters | check | preview=Page using [[Template:CongLinks]] with unknown parameter "_VALUE_" | ignoreblank=y | unknown={{main other|[[Category:Pages using Template:CongLinks with unknown parameters|_VALUE_{{PAGENAME}}]]}} | congbio | congress | fec | votesmart }}<noinclude>
+
}}{{#invoke:Check for unknown parameters | check | preview=Page using [[Template:CongLinks]] with unknown parameter "_VALUE_" | unknown={{main other|[[Category:Pages using Template:CongLinks with unknown parameters|_VALUE_{{PAGENAME}}]]}} | congbio | congress | fec | votesmart }}<noinclude>
 
{{Documentation}}  
 
{{Documentation}}  
 
</noinclude>
 
</noinclude>

Revision as of 19:26, 16 June 2017

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