Difference between revisions of "Template:Biographical Directory of Congress/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(add category)
imported>Zyxw
(→‎Examples: add examples using "accessdate")
Line 74: Line 74:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
''Usage:'' <code><nowiki>{{</nowiki>CongBio | C000482 | Henry Clay }}</code>
+
''Usage:''
 
+
: <code><nowiki>{{</nowiki>CongBio | C000482 | Henry Clay }}</code>
''Output:'' {{CongBio | C000482 | Henry Clay }}
+
''Output:''
 +
: {{CongBio | C000482 | Henry Clay }}
  
 
=== Named parameters ===
 
=== Named parameters ===
''Usage'': <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay }}</code>
+
''Usage'':
 +
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay }}</code>
 +
''Output'':
 +
: {{CongBio| id= C000482 | name= Henry Clay }}
  
''Output'': {{CongBio| id= C000482 | name= Henry Clay }}
+
=== Access date ===
 +
''Usage'':
 +
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |date= January 26, 2010 }}</code>
 +
''Output'':
 +
: {{CongBio |id= C000482 |name= Henry Clay |date= January 26, 2010 }}
  
=== Date ===
+
''Usage'':
''Usage'': <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |date= January 26, 2010 }}</code>
+
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |accessdate= January 26, 2010 }}</code>
 
+
''Output'':
''Output'': {{CongBio |id= C000482 |name= Henry Clay |date= January 26, 2010 }}
+
: {{CongBio |id= C000482 |name= Henry Clay |accessdate= January 26, 2010 }}
  
 
=== Inline ===
 
=== Inline ===
''Usage'': <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |inline= yes }}</code>
+
''Usage'':
 +
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |inline= yes }}</code>
  
''Output'': {{CongBio |id= C000482 |name= Henry Clay |inline= yes }}
+
''Output'':
 +
: {{CongBio |id= C000482 |name= Henry Clay |inline= yes }}
  
 
=== Findagrave ===
 
=== Findagrave ===
''Usage'': <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |findagrave= 203 }}</code>
+
''Usage'':
 
+
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |findagrave= 203 }}</code>
''Output'': {{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 }}
+
''Output'':
 +
: {{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 }}
  
=== Findagrave and Date ===
+
=== Findagrave and access date ===
''Usage'': <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |date= January 26, 2010 }}</code>
+
''Usage'':
 +
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |date= January 26, 2010 }}</code>
 +
''Output'':
 +
: {{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |date= January 26, 2010 }}
  
''Output'': {{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |date= January 26, 2010 }}
+
''Usage'':
 +
: <code><nowiki>{{</nowiki>CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |accessdate= January 26, 2010 }}</code>
 +
''Output'':
 +
: {{CongBio |id= C000482 |name= Henry Clay |findagrave= 203 |accessdate= January 26, 2010 }}
  
 
==See also==
 
==See also==

Revision as of 10:26, 17 June 2017

{{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 is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for 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).

Template parameters

ParameterDescriptionTypeStatus
ID1 id

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

Default
Stringrequired
Name2 name

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

Default
{{PAGENAME}}
Stringoptional
Datedate

Date the web page was accessed/retrieved.

Stringoptional
Inlineinline

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

Stringoptional
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.

Stringoptional

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.

Named parameters

Usage:

{{CongBio |id= C000482 |name= Henry Clay }}

Output:

Access date

Usage:

{{CongBio |id= C000482 |name= Henry Clay |date= January 26, 2010 }}

Output:

Usage:

{{CongBio |id= C000482 |name= Henry Clay |accessdate= January 26, 2010 }}

Output:

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.

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