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

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(→‎Usage: rm redlinked templates)
imported>Sdkb
(Updating documentation)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Uses Wikidata|P2736}}
 +
{{Tracks Wikidata|P2736}}
  
 
==Usage==
 
==Usage==
 
'''<nowiki>{{FJC Bio}}</nowiki>''' allows linking to the ''[[Biographical Directory of Federal Judges]]'' of the [[Federal Judicial Center]], using parameter of subject.
 
'''<nowiki>{{FJC Bio}}</nowiki>''' 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]].
+
This template 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}}} (optional; will fetch value from Wikidata if possible) = 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
 +
* {{{access-date}}} (optional) = Adds a retrieval date to the citation. Format unfortunately does not respect {{tl|Use mdy dates}} tags and must be specified using {{para|date-format|mdy}}.
  
===Format===
+
==Format==
<tt><nowiki>{{ FJC Bio | 1234 | John Smith }}</nowiki></tt>
+
* <code><nowiki>{{FJC Bio}}</nowiki></code> or
 +
* <code><nowiki>{{FJC Bio | 1234 | John Smith }}</nowiki></code>
  
===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 <code><nowiki>{{FJC Bio|844}}</nowiki></code> 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 -->
  
To use the template without the *, type <tt><nowiki>{{FJC Bio|844|inline=1}}</nowiki></tt><br>
+
===Using '''<code>inline</code>'''===
[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]].
+
To use the template without the itemizing bullet, type <code><nowiki>{{FJC Bio|844|inline=1}}</nowiki></code>:
  
<includeonly>
+
{{FJC Bio|844|inline=1|name=John Joseph Gibbons}}<!-- see previous comment -->
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
 
[[Category:United States government attribution templates|{{PAGENAME}}]]
 
[[Category:Law external link templates|{{PAGENAME}}]]
 
[[Category:People and person external link templates|{{PAGENAME}}]]
 
  
[[ja:Template:FJC Bio]]
+
==Tracking categories==
</includeonly>
+
* {{clc|Wikipedia articles incorporating text from the Biographical Directory of Federal Judges}}
 +
* {{clc|Biographical Directory of Federal Judges ID not in Wikidata}}
 +
* {{clc|Biographical Directory of Federal Judges ID different from Wikidata}}
 +
* {{clc|Biographical Directory of Federal Judges ID same as Wikidata}}
 +
* {{clc|FJC Bio template missing ID}}
 +
 
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:United States government attribution templates]]
 +
[[Category:Law external link templates]]
 +
[[Category:People and person external link templates]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 +
}}</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {},
 +
"name": {},
 +
"inline": {},
 +
"access-date": {},
 +
"date-format": {
 +
"example": "mdy",
 +
"default": "dmy"
 +
}
 +
}
 +
}
 +
</templatedata>

Latest revision as of 09:19, 5 November 2020

Template:Uses Wikidata Template:Tracks Wikidata

Usage

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

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

Parameters

  • {{{1}}} (optional; will fetch value from Wikidata if possible) = 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
  • {{{access-date}}} (optional) = Adds a retrieval date to the citation. Format unfortunately does not respect {{Use mdy dates}} tags and must be specified using |date-format=mdy.

Format

  • {{FJC Bio}} or
  • {{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}}:

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

Tracking categories


No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
Namename

no description

Unknownoptional
Inlineinline

no description

Unknownoptional
Access-dateaccess-date

no description

Unknownoptional
Date-formatdate-format

no description

Default
dmy
Example
mdy
Unknownoptional