Template:Cite BAILII: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>GDallimore
(Undid revision 176983884 - I know, but it has to be done like this to solve a bug. See talk page)
meta>GDallimore
(change in output format)
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}}} {{#if:{{{division|}}}|{{{division}}}}} {{{num}}}){{#if:{{{para|}}}|, paragraph {{{para}}}}}<noinclude>
''[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|}}}| ({{{division}}})}}){{#if:{{{para|}}}|, paragraph {{{para}}}}}<noinclude>


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]].
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]].
Line 25: Line 25:
* '''optional:''' ''date'' is the date in which the court rendered its decision.
* '''optional:''' ''date'' is the date in which the court rendered its decision.


**The output of the template is of the form: '''''Litigants''''' (['''year'''] '''court''' '''division''' '''num'''), paragraph '''para'''
**The output of the template is of the form: '''''Litigants''''' (['''year'''] '''court''' '''num''' ('''division''')), paragraph '''para'''
::The names of the litigants is rendered as a link to the judgment on BAILII
::The names of the litigants is rendered as a link to the judgment on BAILII
**The BAILII urls are of the form: http://www.bailii.org/''country''/cases/''court''/''division''/''year''/''num''.html#para''para''
**The BAILII urls are of the form: http://www.bailii.org/''country''/cases/''court''/''division''/''year''/''num''.html#para''para''

Revision as of 11:06, 19 February 2008

{{{litigants}}} ([{{{year}}}] {{{court}}} {{{num}}})

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 talk page.

It is used to cite judgments listed in the BAILII database.

Usage

{{cite BAILII
 |country=
 |litigants=
 |court=
 |division=
 |year=
 |num=
 |para=
 |date=
}}
  • optional: country add ie for Ireland if an Irish judgment. Can add ew for England and Wales, although it defaults to this latter option.
  • litigants is the list of litigants, such as Miranda v. Arizona.
  • 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.
  • 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.
  • year is the year of the decision, as indicated in the Neutral Citation Number.
  • num is the judgment number, as indicated in the Neutral Citation Number.
  • optional: para is a specific paragraph number.
  • optional: date is the date in which the court rendered its decision.
    • The output of the template is of the form: Litigants ([year] court num (division)), paragraph para
The names of the litigants is rendered as a link to the judgment on BAILII