Difference between revisions of "Template:Suit"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 230: Line 230:
 
}}
 
}}
  
<br></div></div><div class="col-12 col-lg-4"><div class="info-box ">
+
<br></div></div><div class="col-12 col-lg-4"><!-- #ask: Class::Participant Workflow::{{{Workflow|}}} User::{{CURRENTLOGGEDUSER}} link=none-->{{#if:{{#vardefineecho:@participantpage|{{#ask:[[Class::Participant]] [[Workflow::{{{Workflow|}}}]] [[User::{{CURRENTLOGGEDUSER}}]]|link=none}} }}|<!--
 +
-->{{#vardefine:@participantrole|{{#show:{{#var:@participantrole}}|?Role}} }}<div class="info-box ">
 +
<h2>{{#switch:{{#var:@participantrole}}|Juror={{Fa|balance-scale}}|Judge={{Fa|gavel}} }}</h2>
 +
<div ><b>[[{{#var:@participantpage}}|View]]</div>
 +
</div>}}<!--
 +
 
 +
--><div class="info-box ">
 
<h2>Docket</h2>
 
<h2>Docket</h2>
 
<div ><b>Settlement date</b><br>{{#time:d M Y|{{{Suit date}}} }}</div>
 
<div ><b>Settlement date</b><br>{{#time:d M Y|{{{Suit date}}} }}</div>
Line 307: Line 313:
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
 
{{Item responsive |Cols=6-6
 
{{Item responsive |Cols=6-6
|1=<b>{{#explode:@@@|.|0}}</b>
+
|1=
|2={{#widget:link|href=http://@@@|text=@@@|type=a}}
+
|2={{#widget:link|href=http:@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}
 
}}
 
}}
 
|}}
 
|}}
Line 372: Line 378:
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@|
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@|
 
{{Item responsive |Cols=6-6
 
{{Item responsive |Cols=6-6
|1=<b>{{#explode:@@@|.|0}}</b>
+
|1=
|2={{#widget:link|href=http://@@@|text=@@@|type=a}}
+
|2={{#widget:link|href=http:@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}
 
}}
 
}}
 
|}}
 
|}}

Revision as of 12:38, 19 May 2020


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

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