Difference between revisions of "Template:Verdict"
From cm2.liecourt.com
Line 225: | Line 225: | ||
|2=<div class="d-flex">{{#widget:Check input |type=radio |name=Truth |text=yes |id=truthyes |value=yes |checked={{#ifeq:{{{Truth|}}}|no||checked}} }} | |2=<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" | + | <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}} }}<!-- |
-->{{Modal | -->{{Modal | ||
Line 258: | Line 258: | ||
|2=<div class="d-flex">{{#widget:Check input |type=radio |name=Whole truth |text=yes |id=wholetruthdyes |value=yes |checked={{#ifeq:{{{Whole truth|}}}|no||checked}} }} | |2=<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" | + | <wsfield type="textarea" class="form-control mt-2" name="Whole truth text" placeholder="Evidence" >{{{Whole truth text|}}}</wsfield> |
}} | }} | ||
Line 274: | Line 274: | ||
|1=<h3>What is the Deceit?</h3> | |1=<h3>What is the Deceit?</h3> | ||
|2={{#arraymap:{{{Deceit text|}}}|,|@@@| | |2={{#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" | + | {{#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> |
<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" | + | <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 }} }} |
|}} | |}} | ||
}} | }} | ||
Line 282: | Line 282: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>What is the Deceit?</h3> | |1=<h3>What is the Deceit?</h3> | ||
− | |2=<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans" | + | |2=<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans" >{{{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" | + | <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> |
}} | }} | ||
}} | }} | ||
Line 292: | Line 292: | ||
|2=<div class="d-flex">{{#widget:Check input |type=radio |name=Deceit intended |text=yes |id=deceitintendedyes |value=yes |checked={{#ifeq:{{{Deceit intended|}}}|no||checked}} }} | |2=<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" | + | <wsfield type="textarea" class="form-control mt-2" name="Deceit intended text" placeholder="Evidence" >{{{Deceit intended text|}}}</wsfield> |
}} | }} | ||
Line 301: | Line 301: | ||
|1=<h3>What is the Motivation behind the Lie?</h3> | |1=<h3>What is the Motivation behind the Lie?</h3> | ||
|2={{#arraymap:{{{Motivation text|}}}|,|@@@| | |2={{#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" | + | {{#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> |
<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" | + | <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 }} }} |
|}} | |}} | ||
}} | }} | ||
Line 309: | Line 309: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>What is the Motivation behind the Lie?</h3> | |1=<h3>What is the Motivation behind the Lie?</h3> | ||
− | |2=<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans" | + | |2=<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans" >{{{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" | + | <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> |
}} | }} | ||
}} | }} | ||
Line 319: | Line 319: | ||
|2=<div class="d-flex">{{#widget:Check input |type=radio |name=Social acceptability |text=Acceptable |id=socialacceptabilityyes |value=Acceptable |checked={{#ifeq:{{{Social acceptability|}}}|Unacceptable||checked}} }} | |2=<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" | + | <wsfield type="textarea" class="form-control mt-2" name="Social acceptability text" placeholder="Evidence" >{{{Social acceptability text|}}}</wsfield> |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<h3>What is the label for the lie needed to Improve the Social Acceptability?</h3> | |1=<h3>What is the label for the lie needed to Improve the Social Acceptability?</h3> | ||
− | |2=<div class="d-flex"><wsfield type="textarea" class="form-control" name="Label" | + | |2=<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="Evidence" | + | <wsfield type="textarea" class="form-control mt-2" name="Label text" placeholder="Evidence" >{{{Label text|}}}</wsfield> |
}} | }} | ||
Revision as of 09:23, 20 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= }}