Difference between revisions of "Template:Verdict"

From cm2.liecourt.com
(Fill database)
(6 intermediate revisions by 2 users not shown)
Line 206: Line 206:
 
{{#ifeq:{{#var:@allowed}}|Yes|{{#vardefine:@stage|{{#show:{{{Workflow|}}}|?Stage|link=none}} }}
 
{{#ifeq:{{#var:@allowed}}|Yes|{{#vardefine:@stage|{{#show:{{{Workflow|}}}|?Stage|link=none}} }}
 
{{#vardefine:@myparticipantpage|{{#ask:[[Class::Participant]] [[User::User:{{CURRENTLOGGEDUSER}}]] [[Case ID::{{{Case ID|}}}]]|link=none }} }}<!--  
 
{{#vardefine:@myparticipantpage|{{#ask:[[Class::Participant]] [[User::User:{{CURRENTLOGGEDUSER}}]] [[Case ID::{{{Case ID|}}}]]|link=none }} }}<!--  
  --><wsform action="mail" id="verdict-form" enctype="multipart/form-data"  mwreturn="{{#if:{{#var:@myparticipantpage}}|{{fullurl:{{#var:@myparticipantpage}} }}|{{#if:{{{Participant|}}}|{{fullurl:{{{Participant|}}} }}|{{#if:{{#urlget:Participant}}|{{fullurl:{{#urldecode:{{#urlget:Participant}} }} }}|{{fullurl:{{FULLPAGENAME}} }} }} }} }}" >
+
  --><wsform action="addToWiki" id="verdict-form"  mwreturn="{{#if:{{#var:@myparticipantpage}}|{{fullurl:{{#var:@myparticipantpage}} }}|{{#if:{{{Participant|}}}|{{fullurl:{{{Participant|}}} }}|{{#if:{{#urlget:Participant}}|{{fullurl:{{#urldecode:{{#urlget:Participant}} }} }}|{{fullurl:{{FULLPAGENAME}} }} }} }} }}" >
 
<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Verdict" />
 
<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Verdict" />
  
 
{{#ifeq:{{#var:@stage}}|Waiting for Plaintiff verdict|
 
{{#ifeq:{{#var:@stage}}|Waiting for Plaintiff verdict|
{{#vardefine:@randomjudge|{{#ask:[[Class::Member]][[Role::Judge]][[!{{{User|}}}]]|Limit=1|format=array|order=random}} }}
+
{{#vardefine:@randomjudge|{{#ask:[[User group::icol-user]][[Class::Member]][[Role::Judge]][[!{{{User|}}}]]|Limit=1|format=array|order=random}} }}
 
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Stage|value=Needs judge}}
 
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Stage|value=Needs judge}}
 
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Plaintiff verdict|value=Yes}}
 
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Plaintiff verdict|value=Yes}}
 
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Random judge|value={{#var:@randomjudge}} }}
 
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Random judge|value={{#var:@randomjudge}} }}
 
}}<!--
 
}}<!--
-->{{#tag:wsemail||parselast=true|template=Template:Role invite}}<!--
+
--><wsfield type="hidden" name="Role"  value="{{{Role|}}}" />
-->{{#tag:wsfield||type=hidden|name=User|value={{PAGENAME:{{#var:@randomjudge}} }} }}
 
 
 
<wsfield type="hidden" name="Role"  value="{{{Role|}}}" />
 
 
<wsfield type="hidden" name="Workflow"  value="{{{Workflow|}}}" />
 
<wsfield type="hidden" name="Workflow"  value="{{{Workflow|}}}" />
 
<wsfield type="hidden" name="Case ID"  value="{{{Case ID|}}}" />
 
<wsfield type="hidden" name="Case ID"  value="{{{Case ID|}}}" />
Line 224: Line 221:
 
<wsfield type="hidden" name="Name"  value="{{{Name|}}}" />
 
<wsfield type="hidden" name="Name"  value="{{{Name|}}}" />
 
<wsfield type="hidden" name="Context"  value="{{{Context|}}}" />
 
<wsfield type="hidden" name="Context"  value="{{{Context|}}}" />
<h1><span>{{{Role|}}} verdict</span><span>{{{Context|}}}</span><span>Suit: {{{Case ID|}}}</span></h1><!--  
+
<h1><span>{{{Role|}}} verdict</span><span>{{{Context|}}}</span><span>Suit: {{{Case ID|}}}</span></h1>Every decision should include your 0 - 100% confidence in the decision<!--  
 
  -->{{#vardefine:verdictsarray|{{#ask:[[Class::Verdict]][[Case ID:: {{{Case ID|}}}]]{{#ifeq:{{{Role|}}}|Judge|[[Role::!Judge]]|[[Role::Plaintiff]]}}
 
  -->{{#vardefine:verdictsarray|{{#ask:[[Class::Verdict]][[Case ID:: {{{Case ID|}}}]]{{#ifeq:{{{Role|}}}|Judge|[[Role::!Judge]]|[[Role::Plaintiff]]}}
 
|?Case ID
 
|?Case ID

Revision as of 13:29, 7 December 2020


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

{{Verdict
|Workflow=
|Case ID=
|Role=
|User=
|Truth=
|Truth percentage=
|Truth text=
|Whole truth=
|Whole truth percentage=
|Whole truth text=
|Nothing But the truth=
|Nothing But the truth percentage=
|Nothing But the truth text=
|Deceit=
|Deceit percentage=
|Deceit text=
|Deceit intended=
|Deceit intended percentage=
|Deceit intended text=
|Motivation=
|Motivation percentage=
|Motivation text=
|Social acceptability=
|Social acceptability percentage=
|Social acceptability text=
|Label=
|Label percentage=
|Label text=
|Context= 
}}