Difference between revisions of "Template:Participant"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 128: Line 128:
 
  -->{{#arraymap:{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>|@@@|{{#ifeq:@@@|done||<div class="btn btn-gray btn-square"> Juror {{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}{{#var:@countjur}}<br><small>Invited<!-- 1 day ago --></small><br><!--
 
  -->{{#arraymap:{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>|@@@|{{#ifeq:@@@|done||<div class="btn btn-gray btn-square"> Juror {{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}{{#var:@countjur}}<br><small>Invited<!-- 1 day ago --></small><br><!--
  
-->{{#vardefine:@user|{{PAGENAME:@@@}} }}<!--
 
-->{{#if:{{#show:User:{{#var:@user}}|?User right}}|
 
{{#tag:wsform|
 
{{#tag:wsemail||parselast=true|template=Template:Role invite}}
 
{{#tag:wsfield||type=hidden|name=User|value={{#var:@user}} }}
 
{{#tag:wsfield||type=submit|style=padding-right:24px;|value=Notify }}
 
|action=mail}}|{{#tag:wsfield||type=submit|style=padding-right:24px;|value=No e-mail|disabled=disabled}} }}<!--
 
  
 
-->{{#tag:wsform|{{#arraydefine:@random juror|{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>}}{{#arraydefine:@user|@@@ }}{{#arraydiff:new_key|@random juror|@user}}
 
-->{{#tag:wsform|{{#arraydefine:@random juror|{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>}}{{#arraydefine:@user|@@@ }}{{#arraydiff:new_key|@random juror|@user}}
Line 145: Line 138:
 
{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted|
 
{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted|
 
<wsform action="addToWiki" >
 
<wsform action="addToWiki" >
<wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" />
+
<wscreate mwwrite="Case/{{{Case ID|}}}" mwtemplate="Suit" />
 
<wsfield type="hidden" name="Title" value="{{#show:{{{Workflow|}}}|?Lie|link=none}}" />
 
<wsfield type="hidden" name="Title" value="{{#show:{{{Workflow|}}}|?Lie|link=none}}" />
 
<wsfield type="hidden" name="Case ID" value="{{{Case ID|}}}" />
 
<wsfield type="hidden" name="Case ID" value="{{{Case ID|}}}" />

Revision as of 13:29, 7 December 2020


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

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