Difference between revisions of "Template:FJC Bio/doc"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(→‎Usage: rm redlinked templates)
imported>Bob Burkhardt
(don't use nested label hierarchy; use template invocations in examples; make second example more obvious)
Line 7: Line 7:
 
This template is adds articles to [[:Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges]].
 
This template is adds articles to [[:Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges]].
  
===Parameters===
+
==Parameters==
 
* {{{1}}} (required) = ID number of the biography you are linking to (see below).  NOTE:  Some biographies use three-digit IDs, others may use two or four digits
 
* {{{1}}} (required) = ID number of the biography you are linking to (see below).  NOTE:  Some biographies use three-digit IDs, others may use two or four digits
 
* {{{name}}} (optional) = Name, which should only be necessary if <nowiki>{{PAGENAME}}</nowiki> has a disambiguating name, such as "… (politician)"
 
* {{{name}}} (optional) = Name, which should only be necessary if <nowiki>{{PAGENAME}}</nowiki> has a disambiguating name, such as "… (politician)"
 +
* {{{inline}}} (optional) = <code>1</code> or <code>yes</code> which is necessary to use it in a footnote reference
  
===Format===
+
==Format==
 
<tt><nowiki>{{ FJC Bio | 1234 | John Smith }}</nowiki></tt>
 
<tt><nowiki>{{ FJC Bio | 1234 | John Smith }}</nowiki></tt>
  
===Example===
+
==Examples==
 +
===Typical===
 
[[John Joseph Gibbons]]'s biography is at http://www.fjc.gov/servlet/tGetInfo?jid=844,<br>
 
[[John Joseph Gibbons]]'s biography is at http://www.fjc.gov/servlet/tGetInfo?jid=844,<br>
So <tt><nowiki>{{FJC Bio|844}}</nowiki></tt> will return an external link to that biography:<br>
+
So <tt><nowiki>{{FJC Bio|844}}</nowiki></tt> will display an itemized external link to that biography:
*[http://www.fjc.gov/servlet/tGetInfo?jid=C000482 John Joseph Gibbons] at the ''[[Biographical Directory of Federal Judges]]'', a [[public domain]] publication of the [[Federal Judicial Center]].
+
{{FJC Bio|844|name=John Joseph Gibbons}}<!-- name needed for this example, since {{PAGENAME}} is not appropriate -->
 +
===Using '''inline'''===
 +
To use the template without the itemizing bullet, type <tt><nowiki>{{FJC Bio|844|inline=1}}</nowiki></tt>:
  
To use the template without the *, type <tt><nowiki>{{FJC Bio|844|inline=1}}</nowiki></tt><br>
+
{{FJC Bio|844|inline=1}}
[http://www.fjc.gov/servlet/tGetInfo?jid=C000482 John Joseph Gibbons] at the ''[[Biographical Directory of Federal Judges]]'', a [[public domain]] publication of the [[Federal Judicial Center]].
 
  
 
<includeonly>
 
<includeonly>

Revision as of 18:50, 8 May 2011

Usage

{{FJC Bio}} allows linking to the Biographical Directory of Federal Judges of the Federal Judicial Center, using parameter of subject.

This template is adds articles to Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges.

Parameters

  • {{{1}}} (required) = ID number of the biography you are linking to (see below). NOTE: Some biographies use three-digit IDs, others may use two or four digits
  • {{{name}}} (optional) = Name, which should only be necessary if {{PAGENAME}} has a disambiguating name, such as "… (politician)"
  • {{{inline}}} (optional) = 1 or yes which is necessary to use it in a footnote reference

Format

{{ FJC Bio | 1234 | John Smith }}

Examples

Typical

John Joseph Gibbons's biography is at http://www.fjc.gov/servlet/tGetInfo?jid=844,
So {{FJC Bio|844}} will display an itemized external link to that biography:

Using inline

To use the template without the itemizing bullet, type {{FJC Bio|844|inline=1}}:

Template:PAGENAMEBASE at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.Script error: No such module "EditAtWikidata".Template:WikidataCheck