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|format=array|link=none}} }}{{#explode:{{#var:@workflow}}|<PROP>|1}}
+
|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}}
 
}}
 
}}
 
{{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:{{{Suit date|}}}|{{#time:d M Y|{{{Suit date|}}} }}|undecided }}</div>
+
<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>Settlement date</b><br>{{#if:{{{Settlement date|}}}|{{#time:d M Y|{{{Settlement 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>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
 
<div ><b>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
 
</div><!--  
 
</div><!--  

Revision as of 09:40, 22 May 2020


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

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