Template:FJC Bio: Difference between revisions
add new parameter to update non-working links |
adding access date parameter (temporary fix, since per talk page, this template has deeper issues and should be converted to CS1 at some point) |
||
Line 2: | Line 2: | ||
|[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> |
}}}}{{#if:{{{access-date|}}}| Retrieved {{date|{{{access-date}}}|{{{date-format|}}}}}.}}{{Main other|[[Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges]]}}<noinclude> |
||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 09:15, 5 November 2020
- {{{name}}} at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.
![]() | 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. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
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
- {{{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
Current ID number in Wikidata or template
{{FJC Bio}}
or{{FJC Bio | nid= 1234567 | name= John Smith }}
Former ID number number in template (archived link)
{{FJC Bio | 1234 | John Smith }}
or{{FJC Bio | id= 1234 | name= John Smith }}
Examples
Current ID number in Wikidata or template
- Usage in the article John Joseph Gibbons
* {{FJC Bio}}
* {{FJC Bio | nid= 1381166 }}
{{FJC Bio | nid= 1381166 | access-date= 2024-08-13 }}
{{FJC Bio | nid= 1381166 | access-date= 2024-08-13 | date-format= mdy }}
{{FJC Bio | nid= 1381166 | access-date= 2024-08-13 | date-format= iso }}
- Output
-
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center. Retrieved 13 August 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center. Retrieved August 13, 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center. Retrieved 2024-08-13.
Former ID number in template (archived link)
- Usage in the article John Joseph Gibbons
{{FJC Bio | 844 }}
{{FJC Bio | id= 844 | inline= yes | access-date= 2024-08-13 }}
{{FJC Bio | id= 844 | inline= yes | access-date= 2024-08-13 | date-format= mdy }}
{{FJC Bio | id= 844 | inline= yes | access-date= 2024-08-13 | date-format= iso }}
- Output
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center. Retrieved 13 August 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center. Retrieved August 13, 2024.
- John Joseph Gibbons at the Biographical Directory of Federal Judges, a public domain publication of the Federal Judicial Center. Retrieved 2024-08-13.
No parameters and Wikidata property not defined
- Usage
{{FJC Bio}}
- Output
- {{FJC Bio}} template missing ID and not present in Wikidata.
Tracking categories
- Category:Wikipedia articles incorporating text from the Biographical Directory of Federal Judges (3,880)
- Category:FJC Bio template with ID not in Wikidata (102)
- Category:FJC Bio template with ID different from Wikidata (8)
- Category:FJC Bio template with ID same as Wikidata (3,775)
- Category:FJC Bio template using old ID (0)
- Category:FJC Bio template using Wikidata (2)
- Category:FJC Bio template missing ID and not in Wikidata (0)
TemplateData
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 |