Template:Biographical Directory of Congress/doc
This is a documentation subpage for Template:Biographical Directory of Congress. It contains usage information, categories and other content that is not part of the original template page. |
{{Biographical Directory of Congress}} (and its shorter redirect {{CongBio}}) displays an external link to a specified article at the Biographical Directory of the United States Congress website (bioguide.congress.gov).
Contents
Usage
In the following, {{Biographical Directory of Congress
can be used instead of {{CongBio
.
Unnamed parameters
{{CongBio|ID}}
{{CongBio|ID|NAME}}
Named parameters
{{CongBio|id=ID}}
{{CongBio|id=ID|name=NAME}}
{{CongBio|id=ID|name=NAME|date=DATE}}
{{CongBio|id=ID|name=NAME|date=DATE|inline=YES}}
{{CongBio|id=ID|name=NAME|date=DATE|findagrave=GRID}}
There are some other additional parameters that carry default values:
author=author — defaults to United States Congress, but it can be overwritten mode =mode — defaults to cs1 but can be set to cs2 (see WP:CS1) ref =ref — for use with the{{harv}}
templates for inline citations defaults to:{{harv|United States Congress|ID}}
If the author is set to something other than United States Congress then it is also changed here. The ref parameter can be assigned another value including none to unset the parameter. accessdate=date — the usual name for the "Retrieved" parameter
TemplateData
TemplateData for Biographical Directory of Congress
<templatedata>{ "description": "This template displays an external link to a specified article at the Biographical Directory of the United States Congress website (bioguide.congress.gov).", "params": {
"1": { "label": "ID", "aliases": ["id"], "description": "ID portion of the URL. Example: C000482 is the ID portion of http://bioguide.congress.gov/scripts/biodisplay.pl?index=C000482", "type": "string", "default": "", "required": true }, "2": { "label": "Name", "aliases": ["name"], "description": "Name of subject. If not given it defaults to the Wikipedia article name, without any disambiguation such as (politician).", "type": "string", "default": "Biographical Directory of Congress/doc", "required": false }, "accessdate": { "label": "Access date", "aliases": ["date"], "description": "Date the web page was accessed/retrieved.", "type": "date", "required": false }, "author": { "label": "Author", "description": "Value assigned to the \"author\" parameter of the Empty citation (help)Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto"). template.", "type": "string", "default": "United States Congress", "required": false }, "ref": { "label": "Ref", "description": "Value assigned to the \"ref\" parameter of the Empty citation (help)Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto"). template.", "type": "string", "required": false }, "mode": { "label": "Mode", "description": "Value assigned to the \"mode\" parameter of the Empty citation (help)Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto"). template.", "type": "string", "required": false }, "noid": { "label": "No ID", "description": "If this parameter is assigned a value (yes, 1, or anything) then the \"id\" parameter will not be displayed in parentheses after the \"name\" parameter.", "type": "string", "required": false }, "inline": { "label": "Inline", "description": "If this parameter is assigned a value (yes, 1, or anything) then the leading asterisk/bullet is not displayed.", "type": "string", "required": false }, "findagrave": { "label": "Findagrave", "description": "If this parameter is assigned a value, then the template will display an external link to the associated page at the Find a Grave website.", "type": "string", "required": false }
}}</templatedata>
Examples
In the following, {{Biographical Directory of Congress
can be used instead of {{CongBio
.
These examples all link to Henry Clay's biography, which is located at:
Unnamed parameters
Usage:
{{CongBio | C000482 | Henry Clay }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Named parameters
Usage:
{{CongBio |id= C000482 |name= Henry Clay }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Access date
Usage:
{{CongBio |id= C000482 |name= Henry Clay |accessdate= January 26, 2010 }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress. Retrieved January 26, 2010.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Usage:
{{CongBio |id= C000482 |name= Henry Clay |date= January 26, 2010 }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress. Retrieved January 26, 2010.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Author
Usage:
{{CongBio |id= C000482 |name= Henry Clay |author= }}
Output:
- "Henry Clay (id: C000482)". Biographical Directory of the United States Congress.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
No ID
Usage:
{{CongBio |id= C000482 |name= Henry Clay |noid= y }}
Output:
- United States Congress. "Henry Clay". Biographical Directory of the United States Congress.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Inline
Usage:
{{CongBio |id= C000482 |name= Henry Clay |inline= yes }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Findagrave
Usage:
{{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
- Henry Clay at Find a Grave
Findagrave and access date
Usage:
{{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |date= January 26, 2010 }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress. Retrieved January 26, 2010.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
- "Henry Clay". Find a Grave. Retrieved January 26, 2010.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
Usage:
{{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |accessdate= January 26, 2010 }}
Output:
- United States Congress. "Henry Clay (id: C000482)". Biographical Directory of the United States Congress. Retrieved January 26, 2010.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
- "Henry Clay". Find a Grave. Retrieved January 26, 2010.Page Module:Citation/CS1/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "Scribunto").
See also
- {{CongLinks}} - For members from 1991–present. It has BioGuide, Washington Post voting record, Open Secrets, FEC reports, Vote Smart, On The issues, Legistorm, StateSurge GovTrack and FindAGrave. This is preferred.
- {{Bioguide}} looks like this: 12px This article incorporates public domain material from the Biographical Directory of the United States Congress website http://bioguide.congress.gov.
- {{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.