模板:Biographical Directory of Congress
- United States Congress. {{{name}}} (id: {{{id}}}). Biographical Directory of the United States Congress.
{{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).
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
[编辑]This template displays an external link to a specified article at the Biographical Directory of the United States Congress website (bioguide.congress.gov).
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
ID | 1 id | ID portion of the URL. Example: C000482 is the ID portion of http://bioguide.congress.gov/scripts/biodisplay.pl?index=C000482
| 字符串 | 必需 |
Name | 2 name | Name of subject. If not given it defaults to the Wikipedia article name, without any disambiguation such as (politician).
| 字符串 | 可选 |
Access date | accessdate date | Date the web page was accessed/retrieved. | 日期 | 可选 |
Author | author | Value assigned to the "author" parameter of the {{cite web}} template.
| 字符串 | 可选 |
Ref | ref | Value assigned to the "ref" parameter of the {{cite web}} template. | 字符串 | 可选 |
Mode | mode | Value assigned to the "mode" parameter of the {{cite web}} template. | 字符串 | 可选 |
No ID | noid | 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. | 字符串 | 可选 |
Inline | inline | If this parameter is assigned a value (yes, 1, or anything) then the leading asterisk/bullet is not displayed. | 字符串 | 可选 |
Findagrave | findagrave | 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. | 字符串 | 可选 |
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:
Named parameters
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay }}
Output:
Access date
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay |accessdate= 8月 23, 2024年 }}
Output:
Usage:
{{CongBio |id= C000482 |name= Henry Clay |date= 8月 23, 2024年 }}
Output:
Author
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay |author= }}
Output:
No ID
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay |noid= y }}
Output:
Inline
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay |inline= yes }}
Output:
Findagrave
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 }}
Output:
Findagrave and access date
[编辑]Usage:
{{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |date= January 26, 2010 }}
Output:
Usage:
{{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |accessdate= January 26, 2010 }}
Output:
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:
本条目引用的公有领域材料来自Biographical Directory of the United States 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.
上述文档嵌入自Template:Biographical Directory of Congress/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |