跳转到内容

模板:Biographical Directory of Congress/doc

维基百科,自由的百科全书

{{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

[编辑]
以下是该模板的模板数据,适用于可视化编辑器等工具。

Biographical Directory of Congress模板数据

This template displays an external link to a specified article at the Biographical Directory of the United States Congress website (bioguide.congress.gov).

模板参数

参数描述类型状态
ID1 id

ID portion of the URL. Example: C000482 is the ID portion of http://bioguide.congress.gov/scripts/biodisplay.pl?index=C000482

默认值
字符串必需
Name2 name

Name of subject. If not given it defaults to the Wikipedia article name, without any disambiguation such as (politician).

默认值
{{PAGENAME}}
字符串可选
Access dateaccessdate date

Date the web page was accessed/retrieved.

日期可选
Authorauthor

Value assigned to the "author" parameter of the {{cite web}} template.

默认值
United States Congress
字符串可选
Refref

Value assigned to the "ref" parameter of the {{cite web}} template.

字符串可选
Modemode

Value assigned to the "mode" parameter of the {{cite web}} template.

字符串可选
No IDnoid

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.

字符串可选
Inlineinline

If this parameter is assigned a value (yes, 1, or anything) then the leading asterisk/bullet is not displayed.

字符串可选
Findagravefindagrave

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= 12月 21, 2024年 }}

Output:

Usage:

{{CongBio |id= C000482 |name= Henry Clay |date= 12月 21, 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:

Henry Clay美国国会国家人物传记大辞典

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

[编辑]