Difference between revisions of "Template:FJC Bio/sandbox"
imported>Zyxw (current template) |
imported>Zyxw (add "nid" parameter) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{inline|}}}||*}}{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2736}} | + | {{#if:{{{nid|}}}|[https://www.fjc.gov/node/{{Trim|{{{nid}}}}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}] at the ''[[Biographical Directory of Federal Judges]]'', a [[public domain]] publication of the [[Federal Judicial Center]].|{{#if:{{{inline|}}}||*}}{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2736}} |
|[https://web.archive.org/web/*/http://www.fjc.gov/servlet/nGetInfo?jid={{Trim|{{{1|{{{id<includeonly>|{{#property:P2736}}</includeonly>}}}}}}}}&cid=999&ctype=na&instate=na {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] at the ''[[Biographical Directory of Federal Judges]]'', a [[public domain]] publication of the [[Federal Judicial Center]].<includeonly>{{EditAtWikidata|pid=P2736|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P2736|value={{{1|{{{id|}}}}}}|category=Biographical Directory of Federal Judges ID}}</includeonly> | |[https://web.archive.org/web/*/http://www.fjc.gov/servlet/nGetInfo?jid={{Trim|{{{1|{{{id<includeonly>|{{#property:P2736}}</includeonly>}}}}}}}}&cid=999&ctype=na&instate=na {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] at the ''[[Biographical Directory of Federal Judges]]'', a [[public domain]] publication of the [[Federal Judicial Center]].<includeonly>{{EditAtWikidata|pid=P2736|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P2736|value={{{1|{{{id|}}}}}}|category=Biographical Directory of Federal Judges ID}}</includeonly> | ||
|<span class="error">{{[[Template:FJC Bio|FJC Bio]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:FJC Bio template missing ID]]}} | |<span class="error">{{[[Template:FJC Bio|FJC Bio]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:FJC Bio template missing ID]]}} | ||
| − | }}{{Main other|[[Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges]]}}<noinclude> | + | }}}}{{Main other|[[Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges]]}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 12:59, 14 June 2017
- {{{name}}} at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.
| File:Sandbox.svg | This is the template sandbox page for Template:FJC Bio (diff). See also the companion subpage for test cases. |
Template:Uses Wikidata Template:Tracks Wikidata
Contents
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) =
1oryeswhich 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:
- 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
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
- Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges (0)
- Category:Biographical Directory of Federal Judges ID not in Wikidata (0)
- Category:Biographical Directory of Federal Judges ID different from Wikidata (0)
- Category:Biographical Directory of Federal Judges ID same as Wikidata (0)
- Category:FJC Bio template missing ID (0)
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
| Name | name | no description | Unknown | optional |
| Inline | inline | no description | Unknown | optional |
| Access-date | access-date | no description | Unknown | optional |
| Date-format | date-format | no description
| Unknown | optional |
| The above documentation is transcluded from Template:FJC Bio/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |