Difference between revisions of "Template:Verdict"
From cm2.liecourt.com
(Fill database) |
|||
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" value="{{{Truth text|}}}" />{{#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" value="{{{Whole truth text|}}}" /> |
}} | }} | ||
Line 265: | Line 265: | ||
|2=<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}} }} | |2=<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" | + | <wsfield type="textarea" class="form-control mt-2" name="Nothing But the truth text" placeholder="Evidence" value="{{{Nothing But the truth text|}}}" /> |
}} | }} | ||
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" value="{{#explode:{{{Deceit|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" /> |
<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" value="{{#explode:{{{Deceit text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />{{#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" value="{{{Deceit|}}}" /> |
<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" value="{{{Deceit text|}}}" /><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" value="{{{Deceit intended text|}}}" /> |
}} | }} | ||
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" value="{{#explode:{{{Motivation|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" /> |
<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" value="{{#explode:{{{Motivation text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />{{#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" value="{{{Motivation|}}}" /> |
<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" value="{{{Motivation text|}}}" /><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" value="{{{Social acceptability text|}}}" /> |
}} | }} | ||
{{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" value="{{{Label|}}}" placeholder="label" /> |
<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" value="{{{Label text|}}}" /> |
}} | }} | ||
Revision as of 11:11, 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= }}