Difference between revisions of "Template:Suit"

From cm2.liecourt.com
(Fill database)
Line 223: Line 223:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Status</b>
 
|1=<b>Status</b>
|2={{#vardefine:@workflow|{{#ask:[[{{{Workflow|}}}]]|?Stage|?Locations|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Suit date|?Settlement date|format=array|link=none}} }}{{#explode:{{#var:@workflow}}|<PROP>|1}}
+
|2={{#vardefine:@workflow|{{#ask:[[{{{Workflow|}}}]]|?Stage|?Locations|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|format=array|link=none}} }}{{#explode:{{#var:@workflow}}|<PROP>|1}}
 
}}
 
}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
Line 238: Line 238:
 
--><div class="info-box ">
 
--><div class="info-box ">
 
<h2>Docket</h2>
 
<h2>Docket</h2>
<div ><b>Suit date</b><br>{{#if:{{#explode:{{#var:@workflow}}|<PROP>|9}}|{{#time:d M Y|{{#explode:{{#var:@workflow}}|<PROP>|9}} }}|undecided }}</div>
+
<div ><b>Suit date</b><br>{{#if:{{{Suit date|}}}|{{#time:d M Y|{{{Suit date|}}} }}|undecided }}</div>
<div ><b>Settlement date</b><br>{{#if:{{#explode:{{#var:@workflow}}|<PROP>|10}}|{{#time:d M Y|{{#explode:{{#var:@workflow}}|<PROP>|10}} }}|undecided }}</div>
+
<div ><b>Settlement date</b><br>{{#if:{{{Settlement date|}}}|{{#time:d M Y|{{{Settlement date|}}} }}|undecided }}</div>
 
<div ><b>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
 
<div ><b>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
 
</div><!--  
 
</div><!--  
Line 251: Line 251:
 
{{#ifeq:{{#var:@type}}|Class|
 
{{#ifeq:{{#var:@type}}|Class|
 
{{#arraydefine:@cases|{{#show:{{{Workflow|}}}|?Class case IDs|link=none}} }}<!--  
 
{{#arraydefine:@cases|{{#show:{{{Workflow|}}}|?Class case IDs|link=none}} }}<!--  
  --><h1>Class information</h1>{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{{Workflow|}}}]][[Role::Judge]]}}|{{#tag:html|<details>
+
  --><h1>Class information</h1>{{#tag:html|<details>
 
<summary>Settlement Records</summary>
 
<summary>Settlement Records</summary>
 
}}<br><!--
 
}}<br><!--
Line 266: Line 266:
 
       -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
       -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
     --></div>|}}<!--
 
     --></div>|}}<!--
--></div>{{#tag:html|</details>}} }}
+
--></div>{{#tag:html|</details>}}
 
<h1>Cases</h1>
 
<h1>Cases</h1>
 
<h2>This Class suit contains {{#arraysize:@cases}} cases</h2>
 
<h2>This Class suit contains {{#arraysize:@cases}} cases</h2>
Line 328: Line 328:
 
</div>
 
</div>
 
<!--
 
<!--
--><br>hoi{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{#explode:{{#var:@workflow}}|<PROP>|0}}]][[Role::Judge]]}}|{{#tag:html|<details>
+
--><br>{{#tag:html|<details>
 
<summary>Settlement Records</summary>
 
<summary>Settlement Records</summary>
 
}}<br><!--
 
}}<br><!--
Line 343: Line 343:
 
       -->{{verdict results|id={{#explode:{{#var:@workflow}}|<PROP>|2}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
       -->{{verdict results|id={{#explode:{{#var:@workflow}}|<PROP>|2}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
     --></div>|}}<!--
 
     --></div>|}}<!--
--></div>{{#tag:html|</details>}} }}<!--
+
--></div>{{#tag:html|</details>}}<!--
  
 
     --></div><!--
 
     --></div><!--
Line 393: Line 393:
 
</div>
 
</div>
 
</div>
 
</div>
<br>{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{{Workflow|}}}]][[Role::Judge]]}}|{{#tag:html|<details>
+
<br>{{#tag:html|<details>
 
<summary>Settlement Records</summary>
 
<summary>Settlement Records</summary>
 
}}<br><!--
 
}}<br><!--
Line 408: Line 408:
 
       -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
       -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
     --></div>|}}<!--
 
     --></div>|}}<!--
--></div>{{#tag:html|</details>}} }}<!--  
+
--></div>{{#tag:html|</details>}}<!--  
 
  -->}}<!-- end if class
 
  -->}}<!-- end if class
  

Revision as of 14:13, 22 May 2020


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

{{Suit
|Case ID=
|Title=
|Workflow=
}}