Difference between revisions of "Template:Suit"

From cm2.liecourt.com
(Fill database)
m (Text replacement - "{{subst:#if:1||}}" to "")
 
(5 intermediate revisions by 2 users not shown)
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|?Accusation|format=array|link=none}} }}{{#explode:{{#var:@workflow}}|<PROP>|1}}
+
|2={{#vardefine:@workflow|{{#ask:[[{{{Workflow|}}}]]|?Stage|?Locations|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Slot|?Settlement date|?Accusation|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:{{#explode:{{#var:@workflow}}|<PROP>|9}}|{{#explode:{{#var:@workflow}}|<PROP>|9}}|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:{{#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>
Line 283: Line 283:
 
}}<!--
 
}}<!--
 
--><div class="row">
 
--><div class="row">
<div class="col-lg-8 col-12 box mt-0">
+
<div class="col-lg-12 col-12 box mt-0">
 
<h2>The Case</h2>
 
<h2>The Case</h2>
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
|1=<b>Lie topic</b>
+
|1=<b>Lie category</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
}}
 
{{Item responsive |Cols=4-8
 
|1=<b>The Lie and Context</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
 
}}
 
}}
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
Line 298: Line 294:
 
}}<!--  
 
}}<!--  
 
  -->{{Item responsive |Cols=4-8
 
  -->{{Item responsive |Cols=4-8
|1=<b>Marked-up <span class="dark-blue">Truth</span> and <span class="red">Lies</span> </b>
+
|1=<b>Markup <span class="red">Lie</span> and any <span class="dark-blue">Truths</span> </b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
}}
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
|1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }}
+
|1=<b>Evidence screenshot</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }}
 
|2={{#vardefine:@counter|0}}{{#if:{{#var:@uuid}}|{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!--
 
|2={{#vardefine:@counter|0}}{{#if:{{#var:@uuid}}|{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!--
  
Line 317: Line 313:
 
}}
 
}}
 
</div>
 
</div>
<div class="col-12 col-lg-4 mt-0">
+
<div class="col-12 col-lg-12 mt-0 box" >
<div class="box">
+
<div >
<h2>Lie locations</h2>
+
<h2>Lie location</h2>
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
 
{{Item responsive |Cols=2-10
 
{{Item responsive |Cols=2-10
Line 350: Line 346:
 
|
 
|
 
<div class="row">
 
<div class="row">
<div class="col-12 col-lg-8 box mt-0">
+
<div class="col-12 col-lg-12 box mt-0">
 
<h2>The Case</h2>
 
<h2>The Case</h2>
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
|1=<b>Lie topic</b>
+
|1=<b>Lie Category</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
}}
 
{{Item responsive |Cols=4-8
 
|1=<b>The Lie and Context</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
 
}}
 
}}
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
Line 365: Line 357:
 
}}<!--  
 
}}<!--  
 
  -->{{Item responsive |Cols=4-8
 
  -->{{Item responsive |Cols=4-8
|1=<b>Marked-up <span class="dark-blue">Truth</span> and <span class="red">Lies</span></b>
+
|1=<b>Markup <span class="red">Lie</span> and any <span class="dark-blue">Truths</span></b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
}}
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
|1=<b>Evidence of lie appearance</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }}
+
|1=<b>Evidence screenshot</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }}
 
|2={{#vardefine:@counter|0}}{{#if:{{#var:@uuid}}|{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!--
 
|2={{#vardefine:@counter|0}}{{#if:{{#var:@uuid}}|{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!--
  
Line 384: Line 376:
 
}}
 
}}
 
</div>
 
</div>
<div class="col-12 col-lg-4">
+
<div class="col-12 col-lg-12 box mt-0">
<div class="box mt-0">
+
<div class="">
<h2>Lie locations</h2>
+
<h2>Lie location</h2>
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@|
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@|
 
{{Item responsive |Cols=2-10
 
{{Item responsive |Cols=2-10

Latest revision as of 10:12, 10 December 2021


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

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