Difference between revisions of "Template:Participant"

From cm2.liecourt.com
m (Text replacement - "|Workflow=" to "{{subst:#if:1||}}|Workflow=")
m (Text replacement - "{{subst:#if:1||}}" to "")
Line 10: Line 10:
 
{{Participant
 
{{Participant
 
|User=
 
|User=
{{subst:#if:1||}}|Workflow=
+
|Workflow=
 
|Case ID=
 
|Case ID=
 
|Role=
 
|Role=
Line 21: Line 21:
 
  --><div data-poll="Participant" data-workflow="{{{Workflow|}}}" data-parameters="Currentuser={{#var:@currentuser}}^Servername={{#var:@servername}}
 
  --><div data-poll="Participant" data-workflow="{{{Workflow|}}}" data-parameters="Currentuser={{#var:@currentuser}}^Servername={{#var:@servername}}
 
^Role={{{Role|}}}^Workflow={{{Workflow|}}}^User={{{User|}}}^Case ID={{{Case ID|}}}"></div><!--  
 
^Role={{{Role|}}}^Workflow={{{Workflow|}}}^User={{{User|}}}^Case ID={{{Case ID|}}}"></div><!--  
  --><div class="d-none">__NOTOC__ __NOTITLE__{{#if:{{{User|}}}|{{#set:Class=Participant|Role={{{Role|}}}{{subst:#if:1||}}|Workflow={{{Workflow|}}}|User={{{User|}}}|Case ID={{{Case ID|}}}|Name={{{Name|}}} }} }}</div><!--
+
  --><div class="d-none">__NOTOC__ __NOTITLE__{{#if:{{{User|}}}|{{#set:Class=Participant|Role={{{Role|}}}|Workflow={{{Workflow|}}}|User={{{User|}}}|Case ID={{{Case ID|}}}|Name={{{Name|}}} }} }}</div><!--
 
-->{{#vardefine:@allowed|{{#ifeq:User:{{#var:@currentuser}}|{{{User|}}}|Yes|{{#ifsysop:Yes|No}}}}}}
 
-->{{#vardefine:@allowed|{{#ifeq:User:{{#var:@currentuser}}|{{{User|}}}|Yes|{{#ifsysop:Yes|No}}}}}}
 
{{#vardefine:@judge|{{#show:{{{Workflow|}}}|?Judge}} }}
 
{{#vardefine:@judge|{{#show:{{{Workflow|}}}|?Judge}} }}

Revision as of 10:09, 10 December 2021


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

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