Difference between revisions of "Template:Suit"

From cm2.liecourt.com
(Fill database)
Line 207: Line 207:
 
}
 
}
 
</style>}}</div><!--
 
</style>}}</div><!--
-->{{#vardefine:@class|{{#ask:[[Class::Workflow]][[Class case IDs::{{{Workflow|}}}]]|format=array|link=none}} }} {{#if:{{#var:@class}}|This suit is part of a class: {{#ask:[[Class::Suit]][[Workflow::{{#var:@class}}]]}}|
+
-->{{#if:{{CURRENTLOGGEDUSER}}|{{#vardefine:@class|{{#ask:[[Class::Workflow]][[Class case IDs::{{{Workflow|}}}]]|format=array|link=none}} }} {{#if:{{#var:@class}}|This suit is part of a class: {{#ask:[[Class::Suit]][[Workflow::{{#var:@class}}]]}}|
  
 
{{#vardefine:@type|{{#show:{{{Workflow|}}}|?Type|link=none}} }}
 
{{#vardefine:@type|{{#show:{{{Workflow|}}}|?Type|link=none}} }}
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|?Suit date|?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 279: Line 279:
 
{{#arraymap:{{#arrayprint:@cases}}|,|@@@|<!--
 
{{#arraymap:{{#arrayprint:@cases}}|,|@@@|<!--
 
--><div id="cases-{{#var:@casecounter2}}" class="tab-pane  {{#ifeq:{{#var:@casecounter2}}|0|active}}"><!--
 
--><div id="cases-{{#var:@casecounter2}}" class="tab-pane  {{#ifeq:{{#var:@casecounter2}}|0|active}}"><!--
-->{{#vardefine:@workflow|{{#ask:[[@@@]]|?Lie|?Case ID|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Locations|format=array|link=none}} }}<!--
+
-->{{#vardefine:@workflow|{{#ask:[[@@@]]|?Lie|?Case ID|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Locations|?Accusation|format=array|link=none}} }}<!--
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Lie</b>
 
|1=<b>Lie</b>
Line 286: Line 286:
 
--><div class="row">
 
--><div class="row">
 
<div class="col-lg-8 col-12">
 
<div class="col-lg-8 col-12">
<h2>The Lie</h2>
+
<h2>The Case</h2>
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
 
|1=<b>Lie topic</b>
 
|1=<b>Lie topic</b>
Line 292: Line 292:
 
}}
 
}}
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
|1=<b>Description</b>
+
|1=<b>The Lie and Context</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 +
}}
 +
{{Item responsive |Cols=4-8
 +
|1=<b>The Plaintiff Accusation with Evidence</b>
 +
|2={{#explode:{{#var:@workflow}}|<PROP>|10}}
 
}}<!--  
 
}}<!--  
 
  -->{{Item responsive |Cols=4-8
 
  -->{{Item responsive |Cols=4-8
|1=<b>Marked-up Truth and Lies </b>
+
|1=<b>Marked-up <span class="dark-blue">Truth</span> and <span class="red">Lies</span> </b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
}}
Line 351: Line 355:
 
<div class="row">
 
<div class="row">
 
<div class="col-12 col-lg-8">
 
<div class="col-12 col-lg-8">
<h2>The Lie</h2>
+
<h2>The Case</h2>
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
 
|1=<b>Lie topic</b>
 
|1=<b>Lie topic</b>
Line 357: Line 361:
 
}}
 
}}
 
{{Item responsive |Cols=4-8
 
{{Item responsive |Cols=4-8
|1=<b>Description</b>
+
|1=<b>The Lie and Context</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 +
}}
 +
{{Item responsive |Cols=4-8
 +
|1=<b>The Plaintiff Accusation with Evidence</b>
 +
|2={{#explode:{{#var:@workflow}}|<PROP>|11}}
 
}}<!--  
 
}}<!--  
 
  -->{{Item responsive |Cols=4-8
 
  -->{{Item responsive |Cols=4-8
|1=<b>Marked-up Truth and Lies </b>
+
|1=<b>Marked-up <span class="dark-blue">Truth</span> and <span class="red">Lies</span></b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
}}
Line 411: Line 419:
 
  -->}}<!-- end if class
 
  -->}}<!-- end if class
  
-->}}<!--
+
-->}}|<div class="m-5 alert alert-danger">Not permitted</div>}}<!--
 
-->{{DISPLAYTITLE:{{{Title|}}} {{#ifeq:{{#var:@type}}|Class|(Class)}} }}  
 
-->{{DISPLAYTITLE:{{{Title|}}} {{#ifeq:{{#var:@type}}|Class|(Class)}} }}  
 
</includeonly>
 
</includeonly>

Revision as of 12:39, 25 May 2020


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

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