Difference between revisions of "Template:Participant"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 24: Line 24:
 
<div class="col-12 col-lg-8 mt-4"><h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }}&nbsp;{{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }}</h1>
 
<div class="col-12 col-lg-8 mt-4"><h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }}&nbsp;{{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }}</h1>
 
<!--
 
<!--
-->{{#if:{{#var:@judge}}|<!--
+
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#if:{{#var:@judge}}|<!--
  
  
Line 62: Line 62:
 
                                           Approved: Class page:  {{#ask:[[Class::Workflow]][[Class case IDs::{{{Workflow|}}}]]|format=array|link=none}}                                        |Pending}} }}
 
                                           Approved: Class page:  {{#ask:[[Class::Workflow]][[Class case IDs::{{{Workflow|}}}]]|format=array|link=none}}                                        |Pending}} }}
 
}}
 
}}
}}<!--
+
}} }}<!--
  
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
Line 92: Line 92:
 
|1=<b>Lie locations</b>
 
|1=<b>Lie locations</b>
 
|2={{#arraymap:{{#show:{{{Workflow|}}}|?Locations}}|,|@@@|
 
|2={{#arraymap:{{#show:{{{Workflow|}}}|?Locations}}|,|@@@|
{{#widget:link|href=http:@@@|text=@@@|type=a}} |<br>}}
+
{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}} |<br>}}
 
}}<!--
 
}}<!--
  
Line 121: Line 121:
 
<!--
 
<!--
  
-->{{#ifeq:{{{Role|}}}|Judge|
+
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge|
 
{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted|
 
{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted|
 
<wsform action="addToWiki">     
 
<wsform action="addToWiki">     
Line 215: Line 215:
 
<wsfield type="submit" value="Mark case settled" class="btn btn-red mb-4 float-right"/>
 
<wsfield type="submit" value="Mark case settled" class="btn btn-red mb-4 float-right"/>
 
</wsform>
 
</wsform>
}}}}<!--
+
}}}} }}<!--
  
  

Revision as of 12:38, 19 May 2020


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

{{Participant
|User=
|Workflow=
|Case ID=
|Role=
}}