Difference between revisions of "Template:Suit"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 227: | Line 227: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Number of Jurors</b> | |1=<b>Number of Jurors</b> | ||
− | |2={{#arraydefine:@jurors|{{#explode:{{#var:@workflow}}|<PROP>|5}} }}{{#arraysize:@jurors}} | + | |2={{#arraydefine:@jurors|{{#explode:{{#var:@workflow}}|<PROP>|5}} }}{{#arraysize:@jurors}} / {{#explode:{{#var:@workflow}}|<PROP>|6}} accepted |
}} | }} | ||
− | <br></div></div><div class="col-12 col-lg-4"> | + | <br></div></div><div class="col-12 col-lg-4">{{#if:{{CURRENTLOGGEDUSER}}|{{#if:{{#vardefineecho:@participantpage|{{#ask:[[Class::Participant]][[Workflow::{{{Workflow|}}}]][[User::User:{{CURRENTLOGGEDUSER}}]]|link=none}} }}|<!-- |
− | -->{{#vardefine:@participantrole|{{#show:{{#var:@ | + | -->{{#vardefine:@participantrole|{{#show:{{#var:@participantpage}}|?Role|link=none}} }}<div class="info-box "> |
− | <h2>{{#switch:{{#var:@participantrole}}|Juror={{Fa|balance-scale}}|Judge={{Fa|gavel}} }}</h2> | + | <h2>{{#switch:{{#var:@participantrole}}|Juror={{Fa|balance-scale}}|Judge={{Fa|gavel}}|Plaintiff={{fa|book}} }}</h2> |
− | <div ><b>[[{{#var:@participantpage}}| | + | <div ><b>[[{{#var:@participantpage}}|Your participant page]]</b></div> |
− | </div>}}<!-- | + | </div>}} }}<!-- |
--><div class="info-box "> | --><div class="info-box "> | ||
<h2>Docket</h2> | <h2>Docket</h2> | ||
− | <div ><b>Settlement date</b><br>{{#time:d M Y|{{{ | + | <div ><b>Suit date</b><br>{{#if:{{{Suit date}}}|{{#time:d M Y|{{{Suit date}}} }} }}</div> |
+ | <div ><b>Settlement date</b><br>{{#if:{{{Settlement date}}}|{{#time:d M Y|{{{Settlement date}}} }} }}</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></div> | + | </div><!-- |
+ | -->{{#ifsysop:<div class="info-box "> | ||
+ | <h2>Sysop tools</h2><!-- | ||
+ | --><div ><b>Workflow</b><br>[[{{{Workflow|}}}]]</div><!-- | ||
+ | --><div ><b>Participants</b><br>{{#arraymap:{{#ask:[[Class::Participant]][[Workflow::{{{Workflow|}}}]]|?Role|?Name|format=array|link=none}}|,|@@@|[[{{#explode:@@@|<PROP>|0}}|{{#if:{{#explode:@@@|<PROP>|2}}|{{#explode:@@@|<PROP>|2}}|{{#explode:@@@|<PROP>|1}}}}]]|<br>}}</div><!-- | ||
+ | --></div>}}<!-- | ||
+ | --></div></div> | ||
+ | |||
{{#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}} }}<!-- | ||
Line 277: | Line 285: | ||
}}<!-- | }}<!-- | ||
--><div class="row"> | --><div class="row"> | ||
− | <div class="col- | + | <div class="col-lg-8 col-12"> |
<h2>The Lie</h2> | <h2>The Lie</h2> | ||
− | {{Item responsive |Cols= | + | {{Item responsive |Cols=4-8 |
|1=<b>Lie topic</b> | |1=<b>Lie topic</b> | ||
|2={{#explode:{{#var:@workflow}}|<PROP>|3}} | |2={{#explode:{{#var:@workflow}}|<PROP>|3}} | ||
}} | }} | ||
− | {{Item responsive |Cols= | + | {{Item responsive |Cols=4-8 |
|1=<b>Description</b> | |1=<b>Description</b> | ||
|2={{#explode:{{#var:@workflow}}|<PROP>|7}} | |2={{#explode:{{#var:@workflow}}|<PROP>|7}} | ||
}}<!-- | }}<!-- | ||
− | -->{{Item responsive |Cols= | + | -->{{Item responsive |Cols=4-8 |
|1=<b>Marked-up Truth and Lies </b> | |1=<b>Marked-up Truth and Lies </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= | + | {{Item responsive |Cols=4-8 |
|1=<b>Evidence of lie appearance</b> | |1=<b>Evidence of lie appearance</b> | ||
|2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#explode:{{#var:@workflow}}|<PROP>|2}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#explode:{{#var:@workflow}}|<PROP>|2}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- | ||
Line 307: | Line 315: | ||
}} | }} | ||
</div> | </div> | ||
− | <div class="col-1"> | + | <div class="col-1 d-none d-lg-block"> |
</div> | </div> | ||
− | <div class="col- | + | <div class="col-12 col-lg-3"> |
<h2>Lie locations</h2> | <h2>Lie locations</h2> | ||
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@| | {{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@| | ||
− | {{Item responsive |Cols= | + | {{Item responsive |Cols=2-10 |
− | |1= | + | |1=<b>{{fa|external-link-alt}}</b> |
− | |2={{#widget:link|href= | + | |2={{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}} |
}} | }} | ||
|}} | |}} | ||
Line 342: | Line 350: | ||
| | | | ||
<div class="row"> | <div class="row"> | ||
− | <div class="col- | + | <div class="col-12 col-lg-8"> |
<h2>The Lie</h2> | <h2>The Lie</h2> | ||
− | {{Item responsive |Cols= | + | {{Item responsive |Cols=4-8 |
|1=<b>Lie topic</b> | |1=<b>Lie topic</b> | ||
|2={{#explode:{{#var:@workflow}}|<PROP>|3}} | |2={{#explode:{{#var:@workflow}}|<PROP>|3}} | ||
}} | }} | ||
− | {{Item responsive |Cols= | + | {{Item responsive |Cols=4-8 |
|1=<b>Description</b> | |1=<b>Description</b> | ||
|2={{#explode:{{#var:@workflow}}|<PROP>|7}} | |2={{#explode:{{#var:@workflow}}|<PROP>|7}} | ||
}}<!-- | }}<!-- | ||
− | -->{{Item responsive |Cols= | + | -->{{Item responsive |Cols=4-8 |
|1=<b>Marked-up Truth and Lies </b> | |1=<b>Marked-up Truth and Lies </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= | + | {{Item responsive |Cols=4-8 |
|1=<b>Evidence of lie appearance</b> | |1=<b>Evidence of lie appearance</b> | ||
|2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{{Case ID|}}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{{Case ID|}}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- | ||
Line 372: | Line 380: | ||
}} | }} | ||
</div> | </div> | ||
− | <div class="col-1"> | + | <div class="col-1 d-none d-lg-block"> |
</div> | </div> | ||
− | <div class="col- | + | <div class="col-12 col-lg-3"> |
<h2>Lie locations</h2> | <h2>Lie locations</h2> | ||
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@| | {{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@| | ||
− | {{Item responsive |Cols= | + | {{Item responsive |Cols=2-10 |
− | |1= | + | |1=<b>{{fa|external-link-alt}}</b> |
− | |2={{#widget:link|href= | + | |2={{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}} |
}} | }} | ||
|}} | |}} |
Revision as of 11:29, 20 May 2020
This is the Suit template. It should be called in the following format:
{{Suit |Case ID= |Title= |Workflow= }}