Revision as of 09:10, 27 January 2020 edit162.246.117.19 (talk) →UsageTags: Mobile edit Mobile web edit← Previous edit | Latest revision as of 15:20, 26 December 2024 edit undoRjjiii (talk | contribs)Extended confirmed users, Rollbackers, Template editors12,957 edits Adding a copy button to code sample, stable since 1.43.0 (21 December 2024 release) https://www.mediawiki.org/Extension:SyntaxHighlight | ||
(36 intermediate revisions by 19 users not shown) | |||
Line 1: | Line 1: | ||
{{ |
{{Documentation subpage}} | ||
{{High-use}} | |||
{{Uses TemplateStyles|Template:Cite court/styles.css}} | |||
__NOTOC__ | __NOTOC__ | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
Line 5: | Line 7: | ||
==Usage== | ==Usage== | ||
Copy a blank version to use. All parameter names {{strong|must}} be ]. At this point, all fields are optional; however, this is subject to change as the template matures. | |||
Copy a blankचेच्क्स | |||
version to use. All parameter names {{strong|must}} be ]. At this point, all fields are optional; however, this is subject to change as the template matures. | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 14: | Line 13: | ||
! Horizontal list | ! Horizontal list | ||
|- width="50%" style="vertical-align:top;" | |- width="50%" style="vertical-align:top;" | ||
| style="vertical-align:top; padding:1ex;" |< |
| style="vertical-align:top; padding:1ex;" |<syntaxhighlight lang="wikitext" copy="1"> | ||
{{cite court |litigants= |vol= |reporter= |opinion= |pinpoint= |court= |date= |url= | |
{{cite court |litigants= |litigants-force-plain= |vol= |reporter= |opinion= |pinpoint= |court= |date= |url= |quote= |postscript= }} | ||
</syntaxhighlight> | |||
|- width="50%" style="vertical-align:top;" | |- width="50%" style="vertical-align:top;" | ||
! Vertical list | ! Vertical list | ||
|- width="50%" style="vertical-align:top;" | |- width="50%" style="vertical-align:top;" | ||
| style="vertical-align:top; padding:1ex;" |< |
| style="vertical-align:top; padding:1ex;" |<syntaxhighlight lang="wikitext" copy="1"> | ||
{{cite court | {{cite court | ||
|litigants= | |litigants= | ||
|litigants-force-plain= | |||
|vol= | |vol= | ||
|reporter= | |reporter= | ||
Line 29: | Line 30: | ||
|date= | |date= | ||
|url= | |url= | ||
|access-date= | |||
|quote= | |quote= | ||
|postscript= | |||
}}</pre> | |||
}}</syntaxhighlight> | |||
|} | |} | ||
==Examples== | ==Examples== | ||
;Using a ]: | |||
*<code><nowiki>{{cite court |litigants=Parker v. D.C. |vol=478 |reporter=F.3d |opinion=370 |pinpoint=401 |court=D.C. Cir. |date=2007 |url=http://pacer.cadc.uscourts.gov/docs/common/opinions/200703/04-7041a.pdf |quote=As such, we hold it unconstitutional.}}</nowiki></code> | |||
*{{cite court |litigants=Parker v. D.C. |vol=478 |reporter=F.3d |opinion=370 |pinpoint=401 |court=D.C. Cir. |date=2007 |url= |
*<code><nowiki>{{cite court |litigants=Parker v. D.C. |vol=478 |reporter=F.3d |opinion=370 |pinpoint=401 |court=D.C. Cir. |date=2007 |url=https://scholar.google.com/scholar_case?case=11156910755936011541&q=478+F.3d+370,&hl=en&as_sdt=40000006#p401 |quote=As such, we hold it unconstitutional. }}</nowiki></code> | ||
*{{cite court |litigants=Parker v. D.C. |vol=478 |reporter=F.3d |opinion=370 |pinpoint=401 |court=D.C. Cir. |date=2007 |url=https://scholar.google.com/scholar_case?case=11156910755936011541&q=478+F.3d+370,&hl=en&as_sdt=40000006#p401 |quote=As such, we hold it unconstitutional. }} | |||
<!--Example quote from the syllabus of TANZIN ET AL. v. TANVIR ET AL, 592 U.S. ____ (2020), __ S.Ct. __, 2020 U.S. LEXIS 5987, 2020 WL 7250100 --> | |||
;Using <code>|postscript=none</code>: | |||
*<code><nowiki>The Religious Freedom Restoration Act of 1993 (RFRA) was enacted in the wake of {{cite court | |||
| litigants=Employment Div., Dept. of Human Resources of Ore. v. Smith | |||
| vol=494 | |||
| reporter=U.S. | |||
| opinion=872 | |||
| url=https://scholar.google.com/scholar_case?case=10098593029363815472&q=494+U.S.+872&hl=en&as_sdt=40000006 | |||
| postscript=none | |||
}}, to provide a remedy to redress Federal Government violations of the right to free exercise under the First Amendment.</nowiki></code> | |||
* The Religious Freedom Restoration Act of 1993 (RFRA) was enacted in the wake of {{cite court | |||
| litigants=Employment Div., Dept. of Human Resources of Ore. v. Smith | |||
| vol=494 | |||
| reporter=U.S. | |||
| opinion=872 | |||
| url=https://scholar.google.com/scholar_case?case=10098593029363815472&q=494+U.S.+872&hl=en&as_sdt=40000006 | |||
| postscript=none | |||
}}, to provide a remedy to redress Federal Government violations of the right to free exercise under the First Amendment. | |||
==Description of fields== | ==Description of fields== | ||
''All fields are optional!'' | ''All fields are optional!'' | ||
; litigants : |
; litigants : The title of the case, such as "Miranda v. Arizona". If a Misplaced Pages article using this exact string exists, a link will automatically be created. Alternately, if an article exists but another name is desired for display, a wikilink may be specified; i.e., <code><nowiki>]</nowiki></code>. | ||
; litigants-force-plain : If given any value, disables the automatic link. | |||
; reporter : The abbreviated term for whatever ] is being referenced; i.e., "U.S." for the U.S. Supreme Court's "]". '''Important:''' "reporter" in this context means an official law publication, not a journalist. This presently cannot be specified as ''work'', which is inconsistent with other citation templates. | |||
; reporter : The abbreviated term for whatever ] is being referenced; i.e., "U.S." for the U.S. Supreme Court's "]". '''Important:''' "reporter" in this context means an official law publication, not a journalist. | |||
; vol : Volume of the reporter. Only used for US case citations (and those given in the same format); otherwise, just include the information as part of ''reporter'' in the format given by the source. This presently cannot be specified as ''volume'', which is inconsistent with other citation templates. | |||
; |
; vol : Volume of the reporter. Only used for US case citations (and those given in the same format); otherwise, just include the information as part of {{para|reporter}} in the format given by the source. | ||
; opinion : The opinion number, often the number of the first page of the case. Only used for US case citations (and those given in the same format); otherwise, just include the information as part of {{para|reporter}} in the format given by the source. | |||
; ] : Identifies a specific part of a decision, typically by page or paragraph number. This presently cannot be specified as ''at'', ''page'', or ''pages'', which is inconsistent with other citation templates. | |||
; ] : Identifies a specific part of a decision, typically by page or paragraph number. | |||
; court : The name or (optionally) standard abbreviation for the court being cited (e.g. "]" or "]" or "], India"). If the abbreviated form would be a red link, use the long one (even if it is also a red link for now). See for a list of courts in the United States. In order for ''court'' to appear, ''date'' must also be specified. Note: This parameter also should likely not be optional. | |||
; court : The name or (optionally) standard abbreviation for the court being cited (e.g. "]" or "]" or "], India"). If the abbreviated form would be a red link, use the long one (even if it is also a red link for now). See for a list of courts in the United States. | |||
; date : The year or full date in which the court rendered its decision. Note: This parameter also should likely not be optional, or the ''court'' parameter will break. | |||
; date : The year or full date in which the court rendered its decision. Alias: '''year'''. | |||
; url : A Web address for the court document(s). For example, for a ] case, the ] to '']'' is <code><nowiki>http://caselaw.lp.findlaw.com/scripts/getcase.pl?navby=CASE&court=US&vol={{{vol}}}&page={{{page}}}</nowiki></code>. It may be permissible to use the URL of a Web page that provides summary information about the case, if the case documents are not available; however, an article about the case should be cited with {{tl|Cite web}} or {{tl|Cite news}}. {{em|This}} template is for citing a legal document and its wording directly. | |||
; postscript : Controls the closing punctuation for a citation; defaults to a period (<code>.</code>); for no terminating punctuation, specify {{para|postscript|none}}. Additional text or templates beyond the terminating punctuation may generate an error message. | |||
; access-date or accessdate : The date that you viewed the URL, not the date of the case. This presently is not displayed, which is inconsistent with other citation templates. | |||
; quote | |||
; via : Name of the website (republisher) if the URL does not go to the site of the ''reporter'' above. This presently is not displayed, which is inconsistent with other citation templates. | |||
: Text quoted from the document. Displays enclosed in quotes and parentheses. | |||
; lang : Two-letter ] language code for the language in which the document is written, {{em|if}} it is not English (leave this parameter out if it is). This presently is not displayed, which is inconsistent with other citation templates. | |||
; ref | |||
; archive-url or archiveurl : URL to a backup copy of the document at Wayback.Archive.org or some other archival site. This presently is not displayed, which is inconsistent with other citation templates. | |||
: Specify a reference name for ] to link to, typically using {{tl|SfnRef}}. For instance, {{para|ref|{{tlx|SfnRef|Windsor|2013}}}} can be linked to from {{tlx|Sfn|Windsor|2013}}. | |||
; archive-date or archivedate : Date of the above archival. This presently is not displayed, which is inconsistent with other citation templates. | |||
; url : A Web address for the court document(s). For widely available US ], ] typically presents the best reading interface<!--, although its URLs cannot be generated without doing a query<-->. One of several alternatives is '']'', which, for ] cases, has ]s of the form <code><nowiki>http://caselaw.lp.findlaw.com/scripts/getcase.pl?navby=CASE&court=US&vol={{{vol}}}&page={{{page}}}</nowiki></code>. An article ''about'' the case should be cited with {{tl|Cite web}} or a specific {{cite xxx}} template. ''This'' template is for citing a legal document and its wording directly. | |||
; url-status : ''live'' if the original URL no longer works; ''dead'' or blank otherwise; controls what is done with the ''archive-url''. This presently is not functional, which is inconsistent with other citation templates. | |||
; archive-url | |||
: The URL of an ] copy of a document, at ] {{crossreference|(see ])}}, ] {{crossreference|(see ])}}, or other archival site. | |||
; url-status | |||
: This parameter controls whether {{para|url}} or {{para|archive-url}} is linked in the citation. Use <code>live</code> to select {{para|url}} when the document is preemptively archived; otherwise the template will select {{para|archive-url}}. If there is no archived copy, use {{tlx|dead link}} rather than this parameter. | |||
==Tracking categories== | |||
* {{clc|Pages using cite court with unknown parameters}} – Note: Some unsupported parameters used in this template could be added to the template instead of removed from articles. Discuss potential changes and additions on the template's talk page. | |||
==Template Data== | |||
{{TemplateData header}} | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
Line 61: | Line 90: | ||
"litigants": { | "litigants": { | ||
"label": "Litigants", | "label": "Litigants", | ||
"description": " |
"description": "The title of the case. If a Misplaced Pages article using this exact string exists, a link will automatically be created. Alternately, if an article exists but another name is desired for display, a wikilink may be specified; i.e., \"]\".", | ||
"example": "Miranda v. Arizona", | "example": "Miranda v. Arizona", | ||
"type": "string", | "type": "string", | ||
Line 68: | Line 97: | ||
"vol": { | "vol": { | ||
"label": "Volume", | "label": "Volume", | ||
"description": "Volume of the reporter" | "description": "Volume of the reporter", | ||
"suggested": true | |||
}, | }, | ||
"reporter": { | "reporter": { | ||
Line 74: | Line 104: | ||
"description": "The abbreviated term for whatever reporter is being referenced", | "description": "The abbreviated term for whatever reporter is being referenced", | ||
"example": "\"U.S.\" for the U.S. Supreme Court's United States Reports", | "example": "\"U.S.\" for the U.S. Supreme Court's United States Reports", | ||
"type": "string" | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"opinion": { | "opinion": { | ||
"label": "Opinion number", | "label": "Opinion number", | ||
"description": "The opinion number, often the number of the first page of the case.", | "description": "The opinion number, often the number of the first page of the case.", | ||
"type": "string" | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"url": { | "url": { | ||
Line 104: | Line 136: | ||
"label": "Date", | "label": "Date", | ||
"description": "The year or date in which the court rendered its decision.", | "description": "The year or date in which the court rendered its decision.", | ||
"type": "date" | "type": "date", | ||
"suggested": true | |||
}, | }, | ||
"quote": { | "quote": { | ||
Line 110: | Line 143: | ||
"description": "A quote from the judgment", | "description": "A quote from the judgment", | ||
"type": "string" | "type": "string" | ||
}, | |||
"archive-url": { | |||
"label": "Archive URL", | |||
"description": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable", | |||
"type": "url" | |||
}, | |||
"url-status": { | |||
"label": "URL status", | |||
"description": "If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live. Set to \"dead\" for broken links.", | |||
"type": "string", | |||
"default": "dead", | |||
"suggestedvalues": [ | |||
"dead", | |||
"live" | |||
] | |||
}, | |||
"postscript": { | |||
"label": "Postscript", | |||
"description": "The closing punctuation for the citation", | |||
"type": "string", | |||
"default": "." | |||
}, | |||
"ref": { | |||
"label": "Ref", | |||
"description": "Reference anchor identifier. Creates a target for links in shortened footnotes." | |||
}, | |||
"text": { | |||
"label": "Old URL", | |||
"description": "Deprecated. Was previously used to create links following the citation.", | |||
"deprecated": true, | |||
"type": "url" | |||
}, | |||
"litigants-force-plain": { | |||
"label": "Disable the linking of the litigants parameter", | |||
"description": "If given any value, disables the automatic link. " | |||
}, | |||
"archive-date": { | |||
"label": "Archive date", | |||
"description": "Date when the original URL was archived; do not wikilink", | |||
"type": "date" | |||
} | } | ||
}, | }, | ||
Line 115: | Line 188: | ||
"paramOrder": [ | "paramOrder": [ | ||
"litigants", | "litigants", | ||
"court", | |||
"reporter", | |||
"vol", | "vol", | ||
"reporter", | |||
"opinion", | "opinion", | ||
"pinpoint", | "pinpoint", | ||
"court", | |||
"date", | "date", | ||
"quote", | |||
"postscript", | |||
"url", | "url", | ||
" |
"archive-url", | ||
"archive-date", | |||
"url-status", | |||
"ref", | |||
"text", | |||
"litigants-force-plain" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>{{ |
<includeonly>{{sandbox other|| | ||
<!-- Categories go here, and interwikis go in Wikidata --> | <!-- Categories go here, and interwikis go in Wikidata --> | ||
] | ] |
Latest revision as of 15:20, 26 December 2024
This is a documentation subpage for Template:Cite court. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 5,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. |
This template uses TemplateStyles: |
Format based on information from the article Case citation.
Usage
Copy a blank version to use. All parameter names must be lowercase. At this point, all fields are optional; however, this is subject to change as the template matures.
Horizontal list |
---|
{{cite court |litigants= |litigants-force-plain= |vol= |reporter= |opinion= |pinpoint= |court= |date= |url= |quote= |postscript= }} |
Vertical list |
{{cite court |litigants= |litigants-force-plain= |vol= |reporter= |opinion= |pinpoint= |court= |date= |url= |quote= |postscript= }} |
Examples
- Using a pinpoint citation
{{cite court |litigants=Parker v. D.C. |vol=478 |reporter=F.3d |opinion=370 |pinpoint=401 |court=D.C. Cir. |date=2007 |url=https://scholar.google.com/scholar_case?case=11156910755936011541&q=478+F.3d+370,&hl=en&as_sdt=40000006#p401 |quote=As such, we hold it unconstitutional. }}
- Parker v. D.C., 478 F.3d 370, 401 (D.C. Cir. 2007) ("As such, we hold it unconstitutional.").
- Using
|postscript=none
The Religious Freedom Restoration Act of 1993 (RFRA) was enacted in the wake of {{cite court | litigants=Employment Div., Dept. of Human Resources of Ore. v. Smith | vol=494 | reporter=U.S. | opinion=872 | url=https://scholar.google.com/scholar_case?case=10098593029363815472&q=494+U.S.+872&hl=en&as_sdt=40000006 | postscript=none }}, to provide a remedy to redress Federal Government violations of the right to free exercise under the First Amendment.
- The Religious Freedom Restoration Act of 1993 (RFRA) was enacted in the wake of Employment Div., Dept. of Human Resources of Ore. v. Smith, 494 U.S. 872, to provide a remedy to redress Federal Government violations of the right to free exercise under the First Amendment.
Description of fields
All fields are optional!
- litigants
- The title of the case, such as "Miranda v. Arizona". If a Misplaced Pages article using this exact string exists, a link will automatically be created. Alternately, if an article exists but another name is desired for display, a wikilink may be specified; i.e.,
]
. - litigants-force-plain
- If given any value, disables the automatic link.
- reporter
- The abbreviated term for whatever reporter is being referenced; i.e., "U.S." for the U.S. Supreme Court's "United States Reports". Important: "reporter" in this context means an official law publication, not a journalist.
- vol
- Volume of the reporter. Only used for US case citations (and those given in the same format); otherwise, just include the information as part of
|reporter=
in the format given by the source. - opinion
- The opinion number, often the number of the first page of the case. Only used for US case citations (and those given in the same format); otherwise, just include the information as part of
|reporter=
in the format given by the source. - pinpoint
- Identifies a specific part of a decision, typically by page or paragraph number.
- court
- The name or (optionally) standard abbreviation for the court being cited (e.g. "3d Cir." or "M.D. Ala." or "Allahabad High Court, India"). If the abbreviated form would be a red link, use the long one (even if it is also a red link for now). See here for a list of courts in the United States.
- date
- The year or full date in which the court rendered its decision. Alias: year.
- postscript
- Controls the closing punctuation for a citation; defaults to a period (
.
); for no terminating punctuation, specify|postscript=none
. Additional text or templates beyond the terminating punctuation may generate an error message. - quote
- Text quoted from the document. Displays enclosed in quotes and parentheses.
- ref
- Specify a reference name for shortened footnotes to link to, typically using {{SfnRef}}. For instance,
|ref=
can be linked to from{{SfnRef|Windsor|2013}}
{{Sfn|Windsor|2013}}
. - url
- A Web address for the court document(s). For widely available US reporters, Google Scholar typically presents the best reading interface. One of several alternatives is FindLaw, which, for U.S. Supreme Court cases, has URLs of the form
http://caselaw.lp.findlaw.com/scripts/getcase.pl?navby=CASE&court=US&vol={{{vol}}}&page={{{page}}}
. An article about the case should be cited with {{Cite web}} or a specific {{cite xxx}} template. This template is for citing a legal document and its wording directly. - archive-url
- The URL of an archived copy of a document, at Internet Archive (see Misplaced Pages:Using the Wayback Machine), archive.today (see Help:Using archive.today), or other archival site.
- url-status
- This parameter controls whether
|url=
or|archive-url=
is linked in the citation. Uselive
to select|url=
when the document is preemptively archived; otherwise the template will select|archive-url=
. If there is no archived copy, use{{dead link}}
rather than this parameter.
Tracking categories
- Category:Pages using cite court with unknown parameters (317) – Note: Some unsupported parameters used in this template could be added to the template instead of removed from articles. Discuss potential changes and additions on the template's talk page.
Template Data
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Cite court in articles based on its TemplateData.TemplateData for Cite court
Cite a court judgment
Parameter | Description | Type | Status | |
---|---|---|---|---|
Litigants | litigants | The title of the case. If a Misplaced Pages article using this exact string exists, a link will automatically be created. Alternately, if an article exists but another name is desired for display, a wikilink may be specified; i.e., "]".
| String | suggested |
Volume | vol | Volume of the reporter | Unknown | suggested |
Reporter | reporter | The abbreviated term for whatever reporter is being referenced
| String | suggested |
Opinion number | opinion | The opinion number, often the number of the first page of the case. | String | suggested |
Pinpoint citation | pinpoint | Identifies a specific part of a decision, typically by page or paragraph number. | String | optional |
Court name | court | The standard abbreviation for the court being cited
| String | suggested |
Date | date year | The year or date in which the court rendered its decision. | Date | suggested |
Quote | quote | A quote from the judgment | String | optional |
Postscript | postscript | The closing punctuation for the citation
| String | optional |
URL | url | A web site or other online article with information on the case. | URL | optional |
Archive URL | archive-url | The URL of an archived copy of a web page, if or in case the URL becomes unavailable | URL | optional |
Archive date | archive-date | Date when the original URL was archived; do not wikilink | Date | optional |
URL status | url-status | If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live. Set to "dead" for broken links.
| String | optional |
Ref | ref | Reference anchor identifier. Creates a target for links in shortened footnotes. | Unknown | optional |
Old URL | text | Deprecated. Was previously used to create links following the citation. | URL | deprecated |
Disable the linking of the litigants parameter | litigants-force-plain | If given any value, disables the automatic link. | Unknown | optional |