Template:FJC Bio/sandbox
{{{name}}} at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center.
This is the template sandbox page for Template:FJC Bio (diff). See also the companion subpage for test cases. |
This template is used on approximately 3,900 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]{{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
[edit]- {{{nid}}} (optional; will fetch value from Wikidata property P12000 if possible) = The 4-digit, 7-digit or 8-digit ID number in the current URL, such as 1381166 in https://www.fjc.gov/node/1381166.
- {{{id}}} or {{{1}}} (optional; use the current ID number if possible) = The 2-digit, 3-digit or 4-digit ID number in the former URL, such as 844 in http://www.fjc.gov/servlet/nGetInfo?jid=844. This generates an archived link, such as https://web.archive.org/web/*/http://www.fjc.gov/servlet/nGetInfo?jid=844&cid=999&ctype=na&instate=na.
- {{{name}}} (optional) = The link text, which should be the name of the judge. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "… (judge)" or "… (politician)".
- {{{inline}}} (optional) = When using the "id" parameter or unnamed parameter 1, setting "inline" to any value such as
yes
or1
prevents the template from displaying a leading bullet before the text; this is necessary when using the template in an inline citation. - {{{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
[edit]Current ID number in Wikidata or template
[edit]{{FJC Bio}}
or{{FJC Bio | nid= 1234567 | name= John Smith }}
Former ID number number in template (archived link)
[edit]{{FJC Bio | 1234 | John Smith }}
or{{FJC Bio | id= 1234 | name= John Smith }}
Examples
[edit]Current ID number in Wikidata or template
[edit]- Usage in the article John Joseph Gibbons
* {{FJC Bio}}
* {{FJC Bio | nid= 1381166 }}
{{FJC Bio | nid= 1381166 | access-date= 2024-12-1 }}
{{FJC Bio | nid= 1381166 | access-date= 2024-12-1 | date-format= mdy }}
{{FJC Bio | nid= 1381166 | access-date= 2024-12-1 | date-format= iso }}
- Output
-
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center. Retrieved 1 December 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center. Retrieved December 1, 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center. Retrieved 2024-12-01.
Former ID number in template (archived link)
[edit]- Usage in the article John Joseph Gibbons
{{FJC Bio | 844 }}
{{FJC Bio | id= 844 | inline= yes | access-date= 2024-12-1 }}
{{FJC Bio | id= 844 | inline= yes | access-date= 2024-12-1 | date-format= mdy }}
{{FJC Bio | id= 844 | inline= yes | access-date= 2024-12-1 | date-format= iso }}
- Output
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center. Retrieved 1 December 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center. Retrieved December 1, 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a publication of the Federal Judicial Center. Retrieved 2024-12-01.
No parameters and Wikidata property not defined
[edit]- Usage
{{FJC Bio}}
- Output
- {{FJC Bio}} template missing ID and not present in Wikidata.
Tracking categories
[edit]- Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges (3,898)
- Category:FJC Bio template with ID not in Wikidata (108)
- Category:FJC Bio template with ID different from Wikidata (7)
- Category:FJC Bio template with ID same as Wikidata (3,786)
- Category:FJC Bio template using old ID (1)
- Category:FJC Bio template using Wikidata (2)
- Category:FJC Bio template missing ID and not in Wikidata (0)
TemplateData
[edit]This template displays an external link to a judge's biography from the Biographical Directory of Federal Judges of the Federal Judicial Center.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Current ID number | nid | The 4-digit, 7-digit or 8-digit ID number in the current URL, such as 1381166 in https://www.fjc.gov/node/1381166.
| Number | optional |
Former ID number | id 1 | The 2-digit, 3-digit or 4-digit ID number in the former URL, such as 844 in http://www.fjc.gov/servlet/nGetInfo?jid=844. This generates an archived link, such as https://web.archive.org/web/*/http://www.fjc.gov/servlet/nGetInfo?jid=844&cid=999&ctype=na&instate=na. | Number | optional |
Name | name 2 | The link text, which should be the name of the judge. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(judge)" or "(politician)".
| String | optional |
Inline | inline | When using the "id" parameter or unnamed parameter 1, setting "inline" to any value such as "yes" or "1" prevents the template from displaying a leading bullet before the text; this is necessary when using this template for an inline citation.
| String | optional |
Access Date | access-date | The date when the FJC BIO was accessed. It allows the template to be used as a reference, rather than as an external link. | Date | optional |
Date Format | date-format | The date format used when displaying the "access-date" parameter. This defaults to dmy, so "2023-12-11" displays as "11 December 2023".
| String | optional |