Difference between revisions of "Template:Verdict"
From cm2.liecourt.com
Line 46: | Line 46: | ||
|Role={{{Role|}}} | |Role={{{Role|}}} | ||
|User={{{User|}}} | |User={{{User|}}} | ||
− | |Truth={{{Truth|}}} | + | |Truth={{#replace:{{{Truth|}}}|,|.}} |
|Truth percentage={{{Truth percentage|}}} | |Truth percentage={{{Truth percentage|}}} | ||
|Truth text={{#if:{{{Truth text|}}}|{{{Truth text|}}}|-}} | |Truth text={{#if:{{{Truth text|}}}|{{{Truth text|}}}|-}} | ||
− | |Whole truth={{{Whole truth|}}} | + | |Whole truth={{#replace:{{{Whole truth|}}}|,|.}} |
|Whole truth percentage={{{Whole truth percentage|}}} | |Whole truth percentage={{{Whole truth percentage|}}} | ||
− | |Whole truth text={{#if:{{{Whole truth text|}}}|{{{Whole truth text|}}}|-}} | + | |Whole truth text={{#replace:{{#if:{{{Whole truth text|}}}|{{{Whole truth text|}}}|-}}|,|.}} |
|Nothing But the truth={{{Nothing But the truth|}}} | |Nothing But the truth={{{Nothing But the truth|}}} | ||
|Nothing But the truth percentage={{{Nothing But the truth percentage|}}} | |Nothing But the truth percentage={{{Nothing But the truth percentage|}}} | ||
|Nothing But the truth text={{#if:{{{Nothing But the truth text|}}}|{{{Nothing But the truth text|}}}|-}} | |Nothing But the truth text={{#if:{{{Nothing But the truth text|}}}|{{{Nothing But the truth text|}}}|-}} | ||
− | |Deceit={{{Deceit|}}} | + | |Deceit={{#replace:{{{Deceit|}}}|,|.}} |
|Deceit percentage={{{Deceit percentage|}}} | |Deceit percentage={{{Deceit percentage|}}} | ||
− | |Deceit text={{#if:{{{Deceit text|}}}|{{{Deceit text|}}}|-}} | + | |Deceit text={{#replace:{{#if:{{{Deceit text|}}}|{{{Deceit text|}}}|-}}|,|.}} |
− | |Deceit intended={{{Deceit intended|}}} | + | |Deceit intended={{#replace:{{{Deceit intended|}}}|,|.}} |
|Deceit intended percentage={{{Deceit intended percentage|}}} | |Deceit intended percentage={{{Deceit intended percentage|}}} | ||
− | |Deceit intended text={{#if:{{{Deceit intended text|}}}|{{{Deceit intended text|}}}|}} | + | |Deceit intended text={{#replace:{{#if:{{{Deceit intended text|}}}|{{{Deceit intended text|}}}|}}|,|.}} |
− | |Motivation={{{Motivation|}}} | + | |Motivation={{#replace:{{{Motivation|}}}|,|.}} |
|Motivation percentage={{{Motivation percentage|}}} | |Motivation percentage={{{Motivation percentage|}}} | ||
− | |Motivation text={{#if:{{{Motivation text|}}}|{{{Motivation text|}}}|-}} | + | |Motivation text={{#replace:{{#if:{{{Motivation text|}}}|{{{Motivation text|}}}|-}}|,|.}} |
− | |Social acceptability={{{Social acceptability|}}} | + | |Social acceptability={{#replace:{{{Social acceptability|}}}|,|.}} |
|Social acceptability percentage={{{Social acceptability percentage|}}} | |Social acceptability percentage={{{Social acceptability percentage|}}} | ||
− | |Social acceptability text={{#if:{{{Social acceptability text|}}}|{{{Social acceptability text|}}}|-}} | + | |Social acceptability text={{#replace:{{#if:{{{Social acceptability text|}}}|{{{Social acceptability text|}}}|-}}|,|.}} |
− | |Label={{{Label|}}} | + | |Label={{#replace:{{{Label|}}}|,|.}} |
|Label percentage={{{Label percentage|}}} | |Label percentage={{{Label percentage|}}} | ||
− | |Label text={{#if:{{{Label text|}}}|{{{Label text|}}}|}} | + | |Label text={{#replace:{{#if:{{{Label text|}}}|{{{Label text|}}}|}}|,|.}} |
|Context={{{Context|None}}} | |Context={{{Context|None}}} | ||
|Name={{{Name|}}} | |Name={{{Name|}}} | ||
Line 316: | Line 316: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>If it is Factually True, is it the Whole Factual Truth?</h3> | |1=<h3>If it is Factually True, is it the Whole Factual Truth?</h3> | ||
− | |2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts | + | |2={{#ifeq:{{{Role|}}}|Plaintiff||{{#tag:html|<details><summary>{{#ifeq:{{{Role|}}}|Judge|Verdicts|Plaintiff answer}}</summary>}}{{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><wsfield type="button" class="btn copy-verdict" onclick="copyVerdict(this)">Copy</wsfield><div class="d-flex"><div class="verdict-type">{{#if:{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|30}}|{{#explode:@@@|<PROP>|2}} }}</div><div class="w-100 verdict-wrapper"><div class="d-flex"> </div><div class="d-flex"><div class="vi {{#ifeq:{{#explode:@@@|<PROP>|7}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|7}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|8}}%,#f2f2f2 {{#explode:@@@|<PROP>|8}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|8}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|8}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|9}} </div><!-- |
--></div><!-- | --></div><!-- | ||
Line 435: | Line 435: | ||
--></div><!-- | --></div><!-- | ||
− | --></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" | + | --></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" placeholder="Label" >{{{Label|}}}</wsfield> |
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Label percentage" placeholder="0" value="{{{Label percentage|}}}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Label percentage" placeholder="0" value="{{{Label percentage|}}}" />%</span></div> | ||
<wsfield type="textarea" class="form-control mt-2" name="Label text" placeholder="{{#var:@support}}">{{{Label text|}}}</wsfield> | <wsfield type="textarea" class="form-control mt-2" name="Label text" placeholder="{{#var:@support}}">{{{Label text|}}}</wsfield> |
Revision as of 08:42, 10 December 2021
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= }}