Template:Cite BAILII
{{#if:{{{ref|}}}|
|{{#if:{{{link|}}}
|{{{litigants}}}
}}
}}[https://www.bailii.org/{{#switch:{{{court}}}
|ECHR
|EUECJ = eu
|IECA
|IECCA
|IEHC
|IESC = ie
|NICA
|NICC
|NIHC = nie
|ScotCS
|ScotHC
|ScotSC = scot
|UKHL
|UKIAT
|UKPC
|UKSC
|UKUT
|UKET
|UKEAT
|UKVAT = uk
|#default = ew
}}/cases/{{{court}}}{{#switch:{{{court}}}
|EWCA
|EWHC
|NIHC = {{#if:{{{division|}}}|/{{{division}}}}}
|
}}/{{{year}}}/{{#if:{{{reporter|}}}
|{{{year}}}_{{#if:{{{volume|}}}|{{{volume}}}_}}{{{reporter}}}_{{{firstpage}}}.html [{{{year}}}] {{#switch:{{{court}}}
|ScotCS = CS{{#ifeq:{{{scotcase}}}|IH|IH|OH}}
|ScotHC = HCJAC
|{{{court}}}
}} {{{num}}}, {{#if:{{{volume|}}}|({{{year}}}) {{{volume}}}|{{{year}}}}} {{{reporter}}} {{{firstpage}}}]
|{{#ifeq: {{#invoke:String|sub|{{{court}}}|1|2}} | IE
| {{#ifexpr: {{{format|0}}} = 3
| {{{year}}}_{{{court}}}_{{{num}}}
| {{#ifexpr: {{{year}}} > 2019 or {{{format|0}}} = 4
| {{{year}}}{{{court}}}{{{num}}}
| {{#ifexpr: {{{year}}} > 2005 and {{{year}}} < 2019 or {{{format|0}}} = 2
| {{#switch:{{{court}}}
| IECA = CA
| IECCA = C
| IEHC = H
| IESC = S
}}{{#invoke:String|match|s={{{num}}}|pattern=%d+|start=1|match=-1|nomatch={{{num}}}}}
| {{{num}}}
}}
}}
}}.htm{{#if:{{{para|}}}|l#para{{{para}}}|l}}
|{{#switch:{{{format|}}}
|1 = {{#switch:{{{court}}}
|ScotCS = CS{{#ifeq:{{{scotcase}}}|IH|IH|OH}}
|ScotHC = HCJAC
|UKPC = {{{year}}}
}}_{{{num}}}.html
|2 = {{{year}}}{{#switch:{{{court}}}
|ScotCS = CS{{#ifeq:{{{scotcase}}}|IH|IH|OH}}
|ScotHC = HCJAC
}}{{{num}}}.html
|3 = {{{year}}}_{{#switch:{{{court}}}
|ScotCS = CS{{#ifeq:{{{scotcase}}}|IH|IH|OH}}
|ScotHC = HCJAC
}}_{{{num}}}.html
|5 = {{#switch:{{{court}}}
|UKET = {{{num}}}_{{{year}}}
}}.html
|{{{num}}}.htm{{#if:{{{para|}}}|l#para{{{para}}}|l}}
}}
}} [{{{year}}}] {{#switch:{{{court}}}
|EUECJ = EUECJ {{{eucase}}}], Case {{{eucase}}}
|ScotCS = CS{{#ifeq:{{{scotcase}}}|IH|IH|OH}} {{{num}}}]
|ScotHC = HCJAC {{{num}}}]
|{{#switch:{{{division|}}}
|Civ = {{{court}}} Civ {{{num}}}]
|Crim = {{{court}}} Crim {{{num}}}]
|{{{court}}} {{{num}}}{{#if:{{{division|}}}| ({{{division}}})}}]
}}
}}
}}{{#if:{{{para|}}}| at para. {{{para}}}}}{{#if:{{{paras|}}}| at paras. {{{paras}}}}}{{#if:{{{pinpoint|}}}| at {{{pinpoint}}}}}{{#if:{{{parallelcite|}}}|, {{{parallelcite}}}}}{{#if:{{{date|}}}| ({{date|{{{date}}}}})}}{{#ifeq:{{{courtname|}}}|auto
|, {{#switch:{{{court}}}
|ECHR = European Court of Human Rights
|EUECJ = European Court of Justice
|EWCA = Court of Appeal (England and Wales)
|EWCC = County Court (England and Wales)
|EWHC = High Court (England and Wales)
|EWMC = Magistrates' Court (England and Wales)
|EWPCC = Patents County Court (England and Wales)
|IECA = Court of Appeal (Ireland)
|IECCA = Court of Criminal Appeal (Ireland)
|IEHC = High Court (Ireland)
|IESC = Supreme Court (Ireland)
|NICA = Court of Appeal (Northern Ireland)
|NICC = Crown Court (Northern Ireland)
|NIHC = High Court (Northern Ireland)
|ScotCS = Court of Session (Scotland)
|ScotHC = High Court of Justiciary (Scotland)
|ScotSC = Sheriff court (Scotland)
|UKHL = House of Lords (UK)
|UKIAT = Asylum and Immigration Tribunal (UK)
|UKPC = Privy Council{{#if:{{{juris|}}}| (on appeal from {{{juris}}})}}
|UKSC = Supreme Court (UK)
|UKUT = Upper Tribunal (UK)
|UKET = Employment Tribunal (UK)
|UKEAT = Employment Appeal Tribunal
|UKVAT = VAT & Duties Tribunal
}}
|{{#if:{{{courtname|}}}|, {{{courtname}}}}}{{#if:{{{juris|}}}
|{{#ifeq:{{{court}}}|UKPC
| (on appeal from {{{juris}}})
| ({{{juris}}})
}}
}}
}}{{#if:{{{ref|}}}|}}
{
"params": {
"ref": {
"label": "Ref",
"description": "The 'ref' parameter from CS1, which can be used with 'sfn' etc.",
"type": "string"
},
"litigants": {
"label": "Litigants",
"description": "The parties to the litigation",
"example": "Council of Civil Service Unions v Minister for the Civil Service",
"type": "string",
"required": true
},
"link": {
"label": "Link",
"description": "The name of a Wikipedia article about the case, which will be linked",
"example": "Council of Civil Service Unions v Minister for the Civil Service",
"type": "wiki-page-name"
},
"court": {
"label": "Court",
"description": "The neutral citation code used by BAILII to identify the court that decided the case",
"example": "UKHL",
"type": "string",
"suggestedvalues": [
"UKSC",
"EWCA",
"UKHL",
"ECHR",
"EUECJ",
"EWHC",
"EWCC",
"EWMC",
"EWPCC",
"UKIAT",
"UKPC",
"UKUT",
"UKEAT",
"UKET",
"UKVAT",
"ScotCS",
"ScotHC",
"ScotSC",
"NICA",
"NICC",
"NIHC",
"IECA",
"IECCA",
"IEHC",
"IESC"
],
"required": true
},
"division": {
"label": "Division",
"description": "The division of the court (mandatory for some cases - e.g. EWCA Civ)",
"example": "Civ",
"type": "string",
"suggestedvalues": [
"Civ",
"Crim"
]
},
"year": {
"label": "Year",
"type": "string"
},
"reporter": {
"label": "Reporter",
"description": "Used for some Scottish cases",
"type": "string",
"suggestedvalues": [
"R",
"F",
"JC",
"SC"
]
},
"volume": {
"label": "Volume",
"description": "Mandatory for some Scottish cases - the volume number"
},
"firstpage": {
"label": "First Page",
"description": "Mandatory for some Scottish cases: the first page number on which the case appears in a particular law reports series. ",
"type": "number"
},
"scotcase": {
"description": "Mandatory for Scottish Court of Session cases - IH for Inner House, OH for Outer House",
"type": "string",
"suggestedvalues": [
"OH",
"IH"
]
},
"num": {
"label": "Case number",
"type": "number",
"required": true
},
"format": {
"label": "Format",
"description": "Needed for some UKPC, Irish, Scottish and ET cases. See template page for details.",
"type": "number",
"suggestedvalues": [
"1",
"2",
"3",
"4",
"5"
]
},
"para": {
"label": "Paragraph cited",
"description": "A paragraph number. For a range, use the paras parameter.",
"example": "113",
"type": "number"
},
"eucase": {
"label": "European case number",
"description": "Case number for the European Court of Justice.",
"example": "C-46/93",
"type": "string"
},
"paras": {
"label": "Paragraphs cited",
"description": "A range of paragraph numbers cited - use an en dash to separate the numbers.",
"example": "113–129"
},
"pinpoint": {
"label": "Pinpoint",
"description": "The page or paragraph number at which information or a quotation you are referring to appears. When referring to a range of pages or paragraph numbers, separate the starting and ending numbers with an en dash.",
"example": "528–530",
"type": "string"
},
"parallelcite": {
"label": "Parallel cite",
"description": "Parallel citations to the case. Separate the citations with commas.",
"example": "[1985] AC 374, [1984] 3 All ER 935",
"type": "string"
},
"date": {
"label": "Date",
"description": "The date that the case was decided. You may enter the date in any format accepted by the 'date' template.",
"type": "date"
},
"courtname": {
"label": "Court Name",
"description": "The court that decided the case, which may be wikilinked. Use 'auto' to have it automatically set. For Privy Council decisions, to indicate the jurisdiction from which the case was appealed, use the juris parameter together with 'auto'.",
"type": "content",
"suggestedvalues": [
"auto"
]
},
"juris": {
"label": "Jurisdiction",
"description": "The jurisdiction that decided the case. For Privy Council decisions, it can be combined with courtname=auto to get \"on appeal from\".",
"type": "string",
"suggestedvalues": [
"England and Wales",
"Scotland",
"Northern Ireland",
"Ireland"
]
}
},
"description": "Used to cite judgments listed in the British and Irish Legal Information Institute (BAILII) database.",
"paramOrder": [
"litigants",
"link",
"court",
"division",
"year",
"num",
"format",
"reporter",
"volume",
"scotcase",
"firstpage",
"eucase",
"pinpoint",
"para",
"paras",
"parallelcite",
"courtname",
"date",
"juris",
"ref"
]
}