Difference between revisions of "Template:User"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 345: | Line 345: | ||
</div> | </div> | ||
|}} | |}} | ||
− | {{#arraymap:{{#ask:[[Class::Workflow]][[Random juror::{{FULLPAGENAME}}]]|?Declined juror|?Filed by|?Case ID|?Lie|?Topic|?Description|? | + | {{#arraymap:{{#ask:[[Class::Workflow]][[Random juror::{{FULLPAGENAME}}]]|?Declined juror|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Juror amount|?Jurors|?Judge|?Random juror|?Suit date|link=none|format=array|sep=$$$}}|$$$|@@@| |
<div class="info-item"> | <div class="info-item"> | ||
{{#tag:html|<details> | {{#tag:html|<details> | ||
<summary>You have been selected as a Juror</summary>}} | <summary>You have been selected as a Juror</summary>}} | ||
<h2>Case information</h2> | <h2>Case information</h2> | ||
+ | <div class="info-row"><b>Suit date</b>{{#time:d M Y|{{#explode:@@@|<PROP>|14}} }}</div> | ||
<div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|4}}</div> | <div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|4}}</div> | ||
<div class="info-row"><b>Topic</b>{{#explode:@@@|<PROP>|5}}</div> | <div class="info-row"><b>Topic</b>{{#explode:@@@|<PROP>|5}}</div> | ||
<div class="info-row"><b>Description</b>{{#explode:@@@|<PROP>|6}}</div> | <div class="info-row"><b>Description</b>{{#explode:@@@|<PROP>|6}}</div> | ||
− | <div class="info-row"><b>Lies</b> | + | <div class="info-row"><b>Marked-up Truth and Lies</b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div> |
− | <div class=" | ||
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|<br>}}</div> | <div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|@@@|<br>}}</div> | ||
{{#arraydefine:@jurrors|{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|@@@|,}} }} | {{#arraydefine:@jurrors|{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|@@@|,}} }} | ||
<div class="d-flex justify-content-center pb-4"> | <div class="d-flex justify-content-center pb-4"> | ||
− | {{#tag:wsform| | + | {{#tag:wsform| {{#arraydefine:@random juror|{{#explode:@@@|<PROP>|13}}|<MANY>}}{{#arraydefine:@user|{{FULLPAGENAME}} }}{{#arraydiff:new_key|@random juror|@user}} |
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[!{{ | + | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#if:{{#arrayprint:new_key}}| {{#arrayprint:new_key}}, }}{{#ask:[[Class::Member]][[!{{FULLPAGENAME}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]]{{#arraymap:{{#explode:@@@|<PROP>|13}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit={{#expr:{{#explode:@@@|<PROP>|10}} {{#if:{{#arrayprint:new_key}}|- {{#arraysize:new_key}}| - 0 }} }}|format=array|order=random}} }} |
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{ | + | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{FULLPAGENAME}}| {{FULLPAGENAME}} }} }} |
{{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| | {{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| | ||
{{#tag:wsfield||type=submit|value=Decline juror role|class=btn btn-red btn-half}} | {{#tag:wsfield||type=submit|value=Decline juror role|class=btn btn-red btn-half}} | ||
Line 374: | Line 374: | ||
{{#ifeq:{{#arraysize:@jurrors}}|{{#expr:{{#explode:@@@|<PROP>|10}} - 1 }}| | {{#ifeq:{{#arraysize:@jurrors}}|{{#expr:{{#explode:@@@|<PROP>|10}} - 1 }}| | ||
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value=done}} | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value=done}} | ||
− | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=In progress}}|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit= | + | {{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Stage|value=In progress}}|<!-- |
+ | -->{{#arraydefine:@random juror|{{#explode:@@@|<PROP>|13}}|<MANY>}}{{#arraydefine:@user|{{FULLPAGENAME}} }}{{#arraydiff:new_key|@random juror|@user}}{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Random juror|value={{#if:{{#arrayprint:new_key}}| {{#arrayprint:new_key}}, }}{{#ask:[[Class::Member]][[!{{FULLPAGENAME}}]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit={{#expr:{{#explode:@@@|<PROP>|10}} {{#if:{{#arrayprint:new_key}}|- {{#arraysize:new_key}}| - 0 }} }}|format=array|order=random}} }} | ||
}} | }} | ||
{{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| | {{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}| |
Revision as of 13:34, 18 May 2020
This is the Member template. It should be called in the following format:
{{Member |User= |Roles= |Name= |Filed by= }}
TruthTokens
× 3
Please log in first.
Messages
Participant in 0 case