Template

Difference between revisions of "Case"

Line 94: Line 94:
 
<p>'''Subject(s):'''</p> {{add drilldown links ul|table=Cases|field=Subject|values={{{Subject|}}} }}<!---->{{#if: {{{Date|}}} | <p>'''Date:''' {{add drilldown link date|table=Cases|field=Date|value={{{Date|}}} }}</p> }}<!---->{{#if: {{{Court|}}} | <p>'''Court:''' {{add drilldown links|table=Cases|field=Court|values={{{Court|}}} }}</p> }}<!---->{{#if: {{{Judges|}}} | <p>'''Judge(s):'''</p> {{add drilldown links ul|table=Cases|field=Judges|values={{{Judges|}}} }} }}<!---->{{#if: {{{Parties|}}} | <p>'''Parties:'''</p> {{add drilldown links ul|table=Cases|field=Parties|values={{{Parties|}}} }} }}<!---->{{#if: {{{Judicial history first case|}}} |<p>'''Judicial history:'''</p>{{judicial history|{{{Judicial history first case|}}} }} }} <!----> {{#if: {{{Judicial history|}}} |<p>'''Judicial history:'''</p>
 
<p>'''Subject(s):'''</p> {{add drilldown links ul|table=Cases|field=Subject|values={{{Subject|}}} }}<!---->{{#if: {{{Date|}}} | <p>'''Date:''' {{add drilldown link date|table=Cases|field=Date|value={{{Date|}}} }}</p> }}<!---->{{#if: {{{Court|}}} | <p>'''Court:''' {{add drilldown links|table=Cases|field=Court|values={{{Court|}}} }}</p> }}<!---->{{#if: {{{Judges|}}} | <p>'''Judge(s):'''</p> {{add drilldown links ul|table=Cases|field=Judges|values={{{Judges|}}} }} }}<!---->{{#if: {{{Parties|}}} | <p>'''Parties:'''</p> {{add drilldown links ul|table=Cases|field=Parties|values={{{Parties|}}} }} }}<!---->{{#if: {{{Judicial history first case|}}} |<p>'''Judicial history:'''</p>{{judicial history|{{{Judicial history first case|}}} }} }} <!----> {{#if: {{{Judicial history|}}} |<p>'''Judicial history:'''</p>
 
{{{Judicial history|}}}  
 
{{{Judicial history|}}}  
}} <!---->{{#if: {{{Cites|}}} |  
+
 
<p>'''Cites:'''</p> <ul><li>{{#arraymap:{{{Cites|}}}|#|@@|[[@@]]|</li><li>}}</li></ul> }} <!---->{{#cargo_query:
+
}} <!---->{{#if: {{{Cites|}}} | <p>'''Cites:'''</p> <ul><li>{{#arraymap:{{{Cites|}}}|#|@@|[[@@]]|</li><li>}}</li></ul> }} <!---->{{#cargo_query:
 
tables=Cases
 
tables=Cases
 
|fields= CONCAT('[[',_pageTitle,']]')
 
|fields= CONCAT('[[',_pageTitle,']]')

Revision as of 13:06, 2 April 2020

This is the "Case" template. It should be called in the following format:

{{Case
|Sentence
|Summary=
|Detail=
|Subject=
|Judicial history=
|Judicial history first case=
|Date=
|Judges=
|Parties=
|Court=
|NCN=
|MHLR=
|ICLR=
|Essex=
|Other citations=
|Cites=
|External links=
|Judgment=
|News=
|RSS_pubdate=
}}

Edit the page to see the template text. This template defines the table "Cases". View table.This template adds rows to the table "News", which is declared by the template News. View table.