Difference between revisions of "Template:CongLinks"
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_" | + | }}{{#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
| This template uses Lua: |
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
* {{CongLinks | congbio = b000589 | votesmart = 27015 | fec = H0OH08029 | congress = john-boehner/102 }}
- Biography at the Biographical Directory of the United States Congress
- Profile at Project Vote Smart
- Financial information (federal office) at the Federal Election Commission
- Legislation sponsored at The Library of Congress
Tracking category
See also
- {{Bioguide}}
- {{Biographical Directory of Congress}}
- {{Cleanup Congress bio}} puts articles in the category Category:Biographical Directory of the United States Congress cleanup.
- 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.
| The above documentation is transcluded from Template:CongLinks/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |