Difference between revisions of "Template:CongLinks/doc"
Jump to navigation
Jump to search
imported>HoboJones (→Fields) |
imported>Auric |
||
| (60 intermediate revisions by 24 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{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}} | ||
| − | + | '''{{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 | + | == 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 | + | ===Cut and paste=== |
| − | |||
<pre> | <pre> | ||
| − | {{CongLinks | + | {{CongLinks | congbio = | votesmart = | fec = | congress = }} |
| − | |||
| − | | congbio | ||
| − | |||
| − | |||
| − | | votesmart | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | }} | ||
</pre> | </pre> | ||
| − | + | ||
| − | + | The '''order''' of the fields ''does not'' matter for results, but is useful for consistency and to see what's missing. | |
| − | |||
| − | |||
| − | |||
| − | 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: | + | {| class="wikitable" style="font-size:90%" |
! Field !! Data !! Result !! [[URL]] source | ! 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]''' | | ''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]''' | |
| − | |||
| − | |||
| − | |||
| − | | ''votesmart'' || votesmart.org id || Biography, voting record, and interest group ratings || | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| − | | '' | + | | ''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== | ==Example== | ||
| − | [[ | + | [[John Boehner]]: |
| − | <pre>{{ CongLinks | + | <pre> |
| − | + | * {{CongLinks | congbio = b000589 | votesmart = 27015 | fec = H0OH08029 | congress = john-boehner/102 }} | |
| − | | congbio = | + | </pre> |
| − | + | * {{CongLinks | congbio = b000589 | votesmart = 27015 | fec = H0OH08029 | congress = john-boehner/102 }} | |
| − | + | ||
| − | | votesmart = | + | ==Tracking category== |
| − | | | + | * {{clc|Pages using Template:CongLinks with unknown parameters}} |
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | }}</pre> | ||
| − | {{CongLinks | | ||
==See also== | ==See also== | ||
| − | + | * {{tl|Bioguide}} | |
| − | * {{tl| | + | * {{tl|Biographical Directory of Congress}} |
| − | * {{tl|Cleanup Congress | + | * {{tl|Cleanup Congress bio}} puts articles in the category [[:Category:Biographical Directory of the United States Congress cleanup]]. |
| − | |||
* [[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 | + | <includeonly>{{Sandbox other|| |
| − | [[Category:United States Congress templates | + | <!-- Categories below this line, please; interwikis at Wikidata --> |
| − | + | [[Category:People and person external link templates]] | |
| − | [[ | + | [[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
| This is a documentation subpage for Template:CongLinks. It contains usage information, categories and other content that is not part of the original template page. |
| 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 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.