Difference between revisions of "Template:Verdict"

From cm2.liecourt.com
(Fill database)
Line 281: Line 281:
 
<div class="d-flex">{{#widget:Check input |type=radio |name=Truth  |text=yes |id=truthyes |value=yes |checked={{#ifeq:{{{Truth|}}}|no||checked}} }}
 
<div class="d-flex">{{#widget:Check input |type=radio |name=Truth  |text=yes |id=truthyes |value=yes |checked={{#ifeq:{{{Truth|}}}|no||checked}} }}
 
{{#widget:Check input |type=radio |name=Truth |text=no |id=truthno |value=no  |checked={{#ifeq:{{{Truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Truth percentage" placeholder="0" value="{{{Truth percentage|}}}" />%</span></div>
 
{{#widget:Check input |type=radio |name=Truth |text=no |id=truthno |value=no  |checked={{#ifeq:{{{Truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Truth percentage" placeholder="0" value="{{{Truth percentage|}}}" />%</span></div>
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Truth text" placeholder="Evidence">{{{Truth text|}}}</wsfield>{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{FULLPAGENAME}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{fa|image}} }}<!--
+
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Truth text" placeholder="Accusation">{{{Truth text|}}}</wsfield>{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{FULLPAGENAME}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{fa|image}} }}<!--
  
 
-->{{Modal
 
-->{{Modal
Line 318: Line 318:
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Whole truth  |text=yes |id=wholetruthdyes |value=yes |checked={{#ifeq:{{{Whole truth|}}}|no||checked}} }}
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Whole truth  |text=yes |id=wholetruthdyes |value=yes |checked={{#ifeq:{{{Whole truth|}}}|no||checked}} }}
 
{{#widget:Check input |type=radio |name=Whole truth |text=no |id=wholetruthno |value=no  |checked={{#ifeq:{{{Whole truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Whole truth percentage" placeholder="0" value="{{{Whole truth percentage|}}}" />%</span></div>
 
{{#widget:Check input |type=radio |name=Whole truth |text=no |id=wholetruthno |value=no  |checked={{#ifeq:{{{Whole truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Whole truth percentage" placeholder="0" value="{{{Whole truth percentage|}}}" />%</span></div>
<wsfield type="textarea" class="form-control mt-2" name="Whole truth text" placeholder="Evidence">{{{Whole truth text|}}}</wsfield>
+
<wsfield type="textarea" class="form-control mt-2" name="Whole truth text" placeholder="Accusation">{{{Whole truth text|}}}</wsfield>
 
}}
 
}}
  
Line 329: Line 329:
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Nothing But the truth  |text=yes |id=nothingyes |value=yes |checked={{#ifeq:{{{Nothing But the truth|}}}|no||checked}} }}
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Nothing But the truth  |text=yes |id=nothingyes |value=yes |checked={{#ifeq:{{{Nothing But the truth|}}}|no||checked}} }}
 
{{#widget:Check input |type=radio |name=Nothing But the truth |text=no |id=nothingno |value=no  |checked={{#ifeq:{{{Nothing But the truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Nothing But the truth percentage" placeholder="0" value="{{{Nothing But the truth percentage|}}}" />%</span></div>
 
{{#widget:Check input |type=radio |name=Nothing But the truth |text=no |id=nothingno |value=no  |checked={{#ifeq:{{{Nothing But the truth|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Nothing But the truth percentage" placeholder="0" value="{{{Nothing But the truth percentage|}}}" />%</span></div>
<wsfield type="textarea" class="form-control mt-2" name="Nothing But the truth text" placeholder="Evidence">{{{Nothing But the truth text|}}}</wsfield>
+
<wsfield type="textarea" class="form-control mt-2" name="Nothing But the truth text" placeholder="Accusation">{{{Nothing But the truth text|}}}</wsfield>
 
}}
 
}}
  
Line 346: Line 346:
  
 
|}} {{#tag:html|</details>}} }}{{#arraymap:{{{Deceit text|}}}|,|@@@|
 
|}} {{#tag:html|</details>}} }}{{#arraymap:{{{Deceit text|}}}|,|@@@|
{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans">{{#explode:{{{Deceit|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>
+
{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Accusation">{{#explode:{{{Deceit|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{#explode:{{{Deceit percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{#explode:{{{Deceit percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div>
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Evidence" >{{#explode:{{{Deceit text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more deceit">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}
+
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Accusation" >{{#explode:{{{Deceit text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more deceit">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}
 
|}}
 
|}}
 
}}
 
}}
Line 362: Line 362:
  
  
|}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans">{{{Deceit|}}}</wsfield>
+
|}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Accusation">{{{Deceit|}}}</wsfield>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{{Deceit percentage|}}}" />%</span></div>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{{Deceit percentage|}}}" />%</span></div>
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Evidence">{{{Deceit text|}}}</wsfield><!--<span class="add-more deceit">{{fa|plus}}</span>--></div></div>
+
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Accusation">{{{Deceit text|}}}</wsfield><!--<span class="add-more deceit">{{fa|plus}}</span>--></div></div>
 
}}
 
}}
 
}}
 
}}
Line 376: Line 376:
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Deceit intended  |text=yes |id=deceitintendedyes |value=yes |checked={{#ifeq:{{{Deceit intended|}}}|no||checked}} }}
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Deceit intended  |text=yes |id=deceitintendedyes |value=yes |checked={{#ifeq:{{{Deceit intended|}}}|no||checked}} }}
 
{{#widget:Check input |type=radio |name=Deceit intended |text=no |id=deceitintendedno |value=no  |checked={{#ifeq:{{{Deceit intended|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit intended percentage" placeholder="0" value="{{{Deceit intended percentage|}}}" />%</span></div>
 
{{#widget:Check input |type=radio |name=Deceit intended |text=no |id=deceitintendedno |value=no  |checked={{#ifeq:{{{Deceit intended|}}}|no|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit intended percentage" placeholder="0" value="{{{Deceit intended percentage|}}}" />%</span></div>
<wsfield type="textarea" class="form-control mt-2" name="Deceit intended text" placeholder="Evidence">{{{Deceit intended text|}}}</wsfield>
+
<wsfield type="textarea" class="form-control mt-2" name="Deceit intended text" placeholder="Accusation">{{{Deceit intended text|}}}</wsfield>
 
}}
 
}}
  
Line 393: Line 393:
  
 
|}}  {{#tag:html|</details>}} }}{{#arraymap:{{{Motivation text|}}}|,|@@@|
 
|}}  {{#tag:html|</details>}} }}{{#arraymap:{{{Motivation text|}}}|,|@@@|
{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans">{{#explode:{{{Motivation|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>
+
{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Accusation">{{#explode:{{{Motivation|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{#explode:{{{Motivation percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{#explode:{{{Motivation percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div>
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Evidence">{{#explode:{{{Motivation text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more motivation">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}
+
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Accusation">{{#explode:{{{Motivation text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more motivation">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }}
 
|}}
 
|}}
 
}}
 
}}
Line 409: Line 409:
  
  
|}}  {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans">{{{Motivation|}}}</wsfield>
+
|}}  {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Accusation">{{{Motivation|}}}</wsfield>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{{Motivation percentage|}}}" />%</span></div>
 
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{{Motivation percentage|}}}" />%</span></div>
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Evidence">{{{Motivation text|}}}</wsfield><!--<span class="add-more motivation">{{fa|plus}}</span>--></div></div>
+
<div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Accusation">{{{Motivation text|}}}</wsfield><!--<span class="add-more motivation">{{fa|plus}}</span>--></div></div>
 
}}
 
}}
 
}}
 
}}
Line 423: Line 423:
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Social acceptability  |text=Acceptable |id=socialacceptabilityyes |value=Acceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable||checked}} }}
 
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex">{{#widget:Check input |type=radio |name=Social acceptability  |text=Acceptable |id=socialacceptabilityyes |value=Acceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable||checked}} }}
 
{{#widget:Check input |type=radio |name=Social acceptability |text=Unacceptable |id=socialacceptabilityno |value=Unacceptable  |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Social acceptability percentage" placeholder="0" value="{{{Social acceptability percentage|}}}" />%</span></div>
 
{{#widget:Check input |type=radio |name=Social acceptability |text=Unacceptable |id=socialacceptabilityno |value=Unacceptable  |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable|checked|}} }}<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Social acceptability percentage" placeholder="0" value="{{{Social acceptability percentage|}}}" />%</span></div>
<wsfield type="textarea" class="form-control mt-2" name="Social acceptability text" placeholder="Evidence">{{{Social acceptability text|}}}</wsfield>
+
<wsfield type="textarea" class="form-control mt-2" name="Social acceptability text" placeholder="Accusation">{{{Social acceptability text|}}}</wsfield>
 
}}
 
}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
Line 431: Line 431:
 
--></div><!--  
 
--></div><!--  
  
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" value="{{{Label|}}}" placeholder="label" />
+
--></div></div></div>|}}{{#tag:html|</details>}} }}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" value="{{{Label|}}}" placeholder="Accusation" />
 
<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="Evidence">{{{Label text|}}}</wsfield>
+
<wsfield type="textarea" class="form-control mt-2" name="Label text" placeholder="Accusation">{{{Label text|}}}</wsfield>
 
}}
 
}}
  

Revision as of 14:16, 28 May 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= 
}}