Permanently protected template

Template:Cite court: Difference between revisions

From Vigyanwiki
(Created page with "{{#if:{{{litigants|}}} |<cite>{{if all|{{#ifexist:{{{litigants|}}}|article by this name}} |{{#ifeq:{{#invoke:Redirect|main|{{{litigants}}}}}|{{FULLPAGENAME}}|...")
 
m (add ref to param check)
Line 1: Line 1:
{{#if:{{{litigants|}}}
{{#if:{{{litigants|}}}
  |<cite>{{if all|{{#ifexist:{{{litigants|}}}|article by this name}}
  |<cite {{#if:{{{ref|}}}|id="{{{ref}}}"}}>{{if all|{{#ifexist:{{{litigants|}}}|article by this name}}
                 |{{#ifeq:{{#invoke:Redirect|main|{{{litigants}}}}}|{{FULLPAGENAME}}||not a self-redirect}}
                 |{{#ifeq:{{#invoke:Redirect|main|{{{litigants}}}}}|{{FULLPAGENAME}}||not a self-redirect}}
                 |{{#ifeq:{{{litigants|}}}|{{PAGENAMEBASE}}||not a self-link or link to DAB for self}}
                 |{{#ifeq:{{{litigants|}}}|{{PAGENAMEBASE}}||not a self-link or link to DAB for self}}
Line 48: Line 48:
   |[{{{url}}} {{{text|Text}}}]
   |[{{{url}}} {{{text|Text}}}]
  }}
  }}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using cite court with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite court]] with unknown parameter "_VALUE_"|ignoreblank=y| court | date | litigants | opinion | pinpoint | postscript | quote | reporter | text | url | vol | year <!--The following parameters are documented but not yet active, so they are listed here:-->| accessdate | access-date | archive-date | archivedate | lang | url-status | via  }}<noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using cite court with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite court]] with unknown parameter "_VALUE_"|ignoreblank=y| court | date | litigants | opinion | pinpoint | postscript | quote | reporter | text | url | vol | year | ref<!--The following parameters are documented but not yet active, so they are listed here:-->| accessdate | access-date | archive-date | archivedate | lang | url-status | via  }}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 10:17, 25 September 2022

.

Template documentation


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= |vol= |reporter= |opinion= |pinpoint= |court= |date= |url= |access-date= |quote= |postscript= }}
Vertical list
{{cite court
|litigants=
|vol=
|reporter=
|opinion=
|pinpoint=
|court=
|date=
|url=
|access-date=
|quote=
|postscript=
}}

Examples

  • {{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.}}
  • Parker v. D.C., 478 F.3d 370, 401 (D.C. Cir. 2007) ("As such, we hold it unconstitutional.").
  • 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 | 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 Wikipedia 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., "[[Case article|This v. That]]". Note: This presently cannot be specified as title, which is inconsistent with other citation templates.
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. This presently cannot be specified as work, which is inconsistent with other citation templates. Do not wikilink.
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.
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. This presently cannot be specified as at, page, or pages, which is inconsistent with other citation templates.
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. In order for court to appear, date must also be specified. Note: This parameter also should likely not be optional.
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.
url
A Web address for the court document(s). For example, for a U.S. Supreme Court case, the URL to FindLaw is http://caselaw.lp.findlaw.com/scripts/getcase.pl?navby=CASE&court=US&vol={{{vol}}}&page={{{page}}}. 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 {{Cite web}} or {{Cite news}}. This template is for citing a legal document and its wording directly.
access-date
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.
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.
lang
Two-letter ISO 639-1 language code for the language in which the document is written, if it is not English (leave this parameter out if it is). This presently is not displayed, which is inconsistent with other citation templates.
archive-url
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.
archive-date
Date of the above archival. This presently is not displayed, which is inconsistent with other citation templates.
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.
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.
ref
Specify a reference name for use with {{sfn}}, typically using CITEREF. For instance, |ref={{SfnRef|Windsor|2013}} can be linked to from {{sfn|''Windsor''|2013}}

Tracking categories

Template Data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Cite court

[[Category:Templates using TemplateData{{#translation:}}]]

Cite a court judgment

Template parameters

ParameterDescriptionTypeStatus
Litigantslitigants

The title of the case. If a Wikipedia 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., "[[Case article|This v. That]]".

Example
Miranda v. Arizona
Stringsuggested
Court namecourt

The standard abbreviation for the court being cited

Example
3d Cir.
Stringsuggested
Reporterreporter

The abbreviated term for whatever reporter is being referenced

Example
"U.S." for the U.S. Supreme Court's United States Reports
Stringoptional
Volumevol

Volume of the reporter

Unknownoptional
Opinion numberopinion

The opinion number, often the number of the first page of the case.

Stringoptional
Pinpoint citationpinpoint

Identifies a specific part of a decision, typically by page or paragraph number.

Stringoptional
Datedate year

The year or date in which the court rendered its decision.

Dateoptional
URLurl

A web site or other online article with information on the case.

URLoptional
Quotequote

A quote from the judgment

Stringoptional
Postscriptpostscript

The closing punctuation for the citation

Default
.
Stringoptional