Template:Cite BAILII: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>GDallimore
(update output example)
m (68 revisions imported)
 
(45 intermediate revisions by 12 users not shown)
Line 1: Line 1:
''[http://www.bailii.org/{{#ifeq:{{{country|}}}|ie|ie|ew}}/cases/{{{court}}}{{#if:{{{division|}}}|/{{{division}}}}}/{{{year}}}/{{{num}}}.htm{{#if:{{{para|}}}|l#para{{{para}}}}} {{{litigants}}}]'' [{{{year}}}] {{{court}}} {{{num}}}{{#if:{{{division|}}}|&nbsp;({{{division}}})}}{{#if:{{{para|}}}|, paragraph {{{para}}}}}<noinclude>
{{#if:{{{ref|}}}|<cite class="citation wikicite" id="{{{ref}}}">}}{{#if:{{{litigants|}}}
 
  |{{#if:{{{link|}}}
This template currently has a '''minor''' bug which doesn't prevent it from working but results in untidy html code for the links. Please see if you can help on the [[Template talk:Cite BAILII|talk page]].
    |''[[{{{link}}}|{{{litigants}}}]]''&#32;
 
    |''{{{litigants}}}''&#32;
It is used to cite judgments listed in the [[Free Access to Law Movement#BAILII|BAILII]] database.
  }}
==Usage==
}}[https://www.bailii.org/{{#switch:{{{court}}}
<pre>{{cite BAILII
  |ECHR
|country=
  |EUECJ = eu
|litigants=
  |IECA
|court=
  |IECCA
|division=
  |IEHC
|year=
  |IESC = ie
|num=
  |NICA
|para=
  |NICC
|date=
  |NIHC = nie
}}</pre>
  |ScotCS
 
  |ScotHC
* '''optional:''' ''country'' add '''ie''' for Ireland if an Irish judgment. Can add '''ew''' for England and Wales, although it defaults to this latter option.
  |ScotSC = scot
* ''litigants'' is the list of litigants, such as '''Miranda v. Arizona'''.
  |UKHL
* ''court'' is the code used by BAILII in the '''Neutral Citation Number''' to identify the court. eg EWCA for the [[Court of Appeal of England and Wales]].
  |UKIAT
* '''optional:''' ''division'' is the code used by BAILII in the '''Neutral Citation Number''' to identify the division. eg Civ for the Civil division. Not all cases cite a division - eg some Irish decisions.
  |UKPC
* ''year'' is the year of the decision, as indicated in the '''Neutral Citation Number'''.
  |UKSC
* ''num'' is the judgment number, as indicated in the '''Neutral Citation Number'''.
  |UKUT = uk
* '''optional:''' ''para'' is a specific paragraph number.
  |#default = ew
* '''optional:''' ''date'' is the date in which the court rendered its decision.
}}/cases/{{{court}}}{{#switch:{{{court}}}
 
  |EWCA
**The output of the template is of the form: '''''Litigants''''' ['''year'''] '''court''' '''num''' ('''division'''), paragraph '''para'''
  |EWHC
::The names of the litigants is rendered as a link to the judgment on BAILII
  |NIHC = {{#if:{{{division|}}}|/{{{division}}}}}
**The BAILII urls are of the form: http://www.bailii.org/''country''/cases/''court''/''division''/''year''/''num''.html#para''para''
  |
 
}}/{{{year}}}/{{#ifeq:{{{court}}}|IEHC|{{#ifexpr:{{{year}}}>2004|H|}}|}}{{#if:{{{reporter|}}}
[[Category:Law citation templates|Cite BAILII]]
  |{{{year}}}_{{#if:{{{volume|}}}|{{{volume}}}_}}{{{reporter}}}_{{{firstpage}}}.html &#91;{{{year}}}&#93; {{#switch:{{{court}}}
</noinclude>
    |ScotCS = CS{{#ifeq:{{{scotcase}}}|IH|IH|OH}}
    |ScotHC = HCJAC
    |{{{court}}}
  }} {{{num}}}, {{#if:{{{volume|}}}|({{{year}}}) {{{volume}}}|{{{year}}}}} {{{reporter}}} {{{firstpage}}}]
  |{{#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
    |{{{num}}}.htm{{#if:{{{para|}}}|l#para{{{para}}}|l}}
  }} &#91;{{{year}}}&#93; {{#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|}}}|&#32;({{{division}}})}}]
      }}
  }}
}}{{#if:{{{para|}}}|&#32;at para. {{{para}}}}}{{#if:{{{paras|}}}|&#32;at paras. {{{paras}}}}}{{#if:{{{pinpoint|}}}|&#32;at {{{pinpoint}}}}}{{#if:{{{parallelcite|}}}|, {{{parallelcite}}}}}{{#if:{{{date|}}}|&#32;({{date|{{{date}}}}})}}{{#ifeq:{{{courtname|}}}|auto
  |, {{#switch:{{{court}}}
    |ECHR = [[European Court of Human Rights]]
    |EUECJ = [[European Court of Justice]]
    |EWCA = [[Court of Appeal of England and Wales|Court of Appeal]] (England and Wales)
    |EWCC = [[County Court#England and Wales|County Court]] (England and Wales)
    |EWHC = [[High Court of Justice|High Court]] (England and Wales)
    |EWMC = [[Magistrates' Court (England and Wales)|Magistrates' Court]] (England and Wales)
    |EWPCC = [[Patents County Court]] (England and Wales)
    |IECA = [[Court of Appeal (Ireland)|Court of Appeal]] (Ireland)
    |IECCA = [[Court of Criminal Appeal (Ireland)|Court of Criminal Appeal]] (Ireland)
    |IEHC = [[High Court (Ireland)|High Court]] (Ireland)
    |IESC = [[Supreme Court of Ireland|Supreme Court]] (Ireland)
    |NICA = [[Courts of Northern Ireland#Court of Appeal|Court of Appeal]] (Northern Ireland)
    |NICC = [[Courts of Northern Ireland#Crown Court|Crown Court]] (Northern Ireland)
    |NIHC = [[Courts of Northern Ireland#High Court|High Court]] (Northern Ireland)
    |ScotCS = [[Court of Session]] (Scotland)
    |ScotHC = [[High Court of Justiciary]] (Scotland)
    |ScotSC = [[Sheriff Court]] (Scotland)
    |UKHL = [[Judicial functions of the House of Lords|House of Lords]] (UK)
    |UKIAT = [[Asylum and Immigration Tribunal]] (UK)
    |UKPC = [[Judicial Committee of the Privy Council|Privy Council]]{{#if:{{{juris|}}}|&#32;(on appeal from {{{juris}}})}}
    |UKSC = [[Supreme Court of the United Kingdom|Supreme Court]] (UK)
    |UKUT = [[Upper Tribunal]] (UK)
  }}
  |{{#if:{{{courtname|}}}|, {{{courtname}}}}}{{#if:{{{juris|}}}
    |{{#ifeq:{{{court}}}|UKPC
        |&#32;(on appeal from {{{juris}}})
        |&#32;({{{juris}}})
      }}
  }}
}}{{#if:{{{ref|}}}|</cite>}}<noinclude><!--NOTE: Please place categories and interwikis in [[Template:Cite BAILII/doc]]. -->{{Documentation}}</noinclude>

Latest revision as of 12:58, 3 September 2020

[{{{year}}}] {{{court}}} {{{num}}}