Difference between revisions of "Template:Verdict results"

From cm2.liecourt.com
Line 11: Line 11:
 
</pre>
 
</pre>
  
</noinclude><includeonly>hahahah
+
</noinclude><includeonly>
 
{{#vardefine:verdictsarray|{{#ask:{{#if:{{{Verdict|}}}|[[{{{Verdict|}}}]]|[[Class::Verdict]][[Case ID::{{{id|}}}]]{{#if:{{{Context|}}}|[[Context::{{{Context|}}}]]|[[Context::None]] }} }}
 
{{#vardefine:verdictsarray|{{#ask:{{#if:{{{Verdict|}}}|[[{{{Verdict|}}}]]|[[Class::Verdict]][[Case ID::{{{id|}}}]]{{#if:{{{Context|}}}|[[Context::{{{Context|}}}]]|[[Context::None]] }} }}
 
|?Case ID
 
|?Case ID
Line 48: Line 48:
 
|Format=array
 
|Format=array
 
|Sep=$
 
|Sep=$
}}}}<!--
+
}}}}
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<h3>Is it the Truth?</h3>
 +
|2={{#arraymap:{{#var:verdictsarray}}|$|@@@|
 +
 
 +
 
  
-->
 
  
 
# {{#explode:@@@|<PROP>|1}}
 
# {{#explode:@@@|<PROP>|1}}
Line 69: Line 73:
  
  
{{Item responsive |Cols={{#var:@cols|4-8}}
+
<div class="verdict-item"><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>|4}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|4}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|5}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|5}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|6}} </div><!--  
|1=<h3>Is it the Truth?</h3>
 
|2={{#arraymap:{{#var:verdictsarray}}|$|@@@|<div class="verdict-item"><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>|4}}|yes|truth-yes|truth-no}}">{{#explode:@@@|<PROP>|4}}</div><div class="vi ml-2" style="background: linear-gradient(to right, #329966 0%,#329966 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 {{#explode:@@@|<PROP>|5}}%,#f2f2f2 100%); background: conic-gradient(from 180deg, #329966 {{#explode:@@@|<PROP>|5}}%, #f2f2f2 0 0);"><div class="inner-percentage">{{#explode:@@@|<PROP>|5}}%</div></div></div><div class="d-flex "> <div class="vi mt-2 w-100 bg-white">{{#explode:@@@|<PROP>|6}} </div><!--  
 
  
 
-->{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{#explode:@@@|<PROP>|0}}]]|?=|?Modification date|Format=array|link=none}}|,|###|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=vi attachment mt-2 |text={{fa|image}} }}<!--
 
-->{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Verdict file]][[Verdict::{{#explode:@@@|<PROP>|0}}]]|?=|?Modification date|Format=array|link=none}}|,|###|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=vi attachment mt-2 |text={{fa|image}} }}<!--

Revision as of 12:15, 6 July 2021


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

{{Verdict results }}