跳至內容

模板: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月 22, 2024年 }}

Output:

Usage:

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

[編輯]