Difference between revisions of "Template:User"

From cm2.liecourt.com
(Fill database)
Line 19: Line 19:
  
 
</noinclude><includeonly>{{#vardefine:@roles|{{#ifeq:{{{Be candidate|Yes}}}|Yes|{{#if:{{{Roles|}}}|{{{Roles|}}}|Juror, Judge}} }} }}
 
</noinclude><includeonly>{{#vardefine:@roles|{{#ifeq:{{{Be candidate|Yes}}}|Yes|{{#if:{{{Roles|}}}|{{{Roles|}}}|Juror, Judge}} }} }}
<div class="d-none">__NOTITLE__ __NOTOC__{{#if:{{{Name|}}}|{{#set:Class=Member|Role={{#if:{{#ask:[[{{FULLPAGENAME}}]][[User group::sysop]]|?User group}}| |{{#var:@roles}} }}|+sep=,|User={{{User|}}}|Name={{{Name|}}}|Email={{{Email|}}}|Volunteer={{{Volunteer|}}}|Tokens spent={{{Tokens spent|}}}|Pagename={{FULLPAGENAME}} }} }}
+
<div class="d-none">__NOTITLE__ __NOTOC__{{#if:{{{Name|}}}|{{#set:Class=Member|Role={{#if:{{#ask:[[{{FULLPAGENAME}}]][[User group::sysop]]|?User group|limit=999}}| |{{#var:@roles}} }}|+sep=,|User={{{User|}}}|Name={{{Name|}}}|Email={{{Email|}}}|Volunteer={{{Volunteer|}}}|Tokens spent={{{Tokens spent|}}}|Pagename={{FULLPAGENAME}} }} }}
 
</div>
 
</div>
 
{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{FULLPAGENAME}}|Yes|{{#ifsysop:Yes|No}}}}}}  
 
{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{FULLPAGENAME}}|Yes|{{#ifsysop:Yes|No}}}}}}  
Line 58: Line 58:
 
</div>
 
</div>
 
</div><div class="box">
 
</div><div class="box">
<h2>Active in {{#vardefine:@nrcases|{{#ask:[[Class::Participant]][[User::{{FULLPAGENAME}}]]|format=count}} }}{{#var:@nrcases}} {{#ifeq:{{#var:@nrcases}}|1|case|cases}}</h2>
+
<h2>Active in {{#vardefine:@nrcases|{{#ask:[[Class::Participant]][[User::{{FULLPAGENAME}}]]|format=count|limit=9999}} }}{{#var:@nrcases}} {{#ifeq:{{#var:@nrcases}}|1|case|cases}}</h2>
  
 
{{Item responsive |Cols={{#var:@cols|8-4}}
 
{{Item responsive |Cols={{#var:@cols|8-4}}
Line 64: Line 64:
 
|2=<b>Role</b>
 
|2=<b>Role</b>
 
}}
 
}}
{{#arraymap:{{#ask:[[Class::Participant]][[User::{{FULLPAGENAME}}]]|?Workflow|?Role|?Workflow.Lie|format=array|link=none}}|,|@@@|
+
{{#arraymap:{{#ask:[[Class::Participant]][[User::{{FULLPAGENAME}}]]|?Workflow|?Role|?Workflow.Lie|format=array|link=none|limit=9999}}|,|@@@|
 
{{Item responsive |Cols={{#var:@cols|8-4}}
 
{{Item responsive |Cols={{#var:@cols|8-4}}
 
|1={{#if:{{#explode:@@@|<PROP>|3}}|[[{{#explode:@@@|<PROP>|0}}|{{#explode:@@@|<PROP>|3}}]]|[[{{#explode:@@@|<PROP>|0}}]]}}
 
|1={{#if:{{#explode:@@@|<PROP>|3}}|[[{{#explode:@@@|<PROP>|0}}|{{#explode:@@@|<PROP>|3}}]]|[[{{#explode:@@@|<PROP>|0}}]]}}
Line 82: Line 82:
 
<div class="info-box">
 
<div class="info-box">
 
<h2>Messages</h2>
 
<h2>Messages</h2>
{{#arraymap:{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]][[Stage::Settled]]|?Settled seen by|format=array}}|,|@@@|
+
{{#arraymap:{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]][[Stage::Settled]]|?Settled seen by|format=array|limit=9999}}|,|@@@|
 
{{#arraydefine:@seen|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }}
 
{{#arraydefine:@seen|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }}
 
{{#if:{{#arraysearch:@seen|{{FULLPAGENAME}} }}| |
 
{{#if:{{#arraysearch:@seen|{{FULLPAGENAME}} }}| |
Line 88: Line 88:
 
<summary>A case you filed is settled</summary>}}
 
<summary>A case you filed is settled</summary>}}
 
  <div class="info-row"><b>Case ID:</b>{{#show:{{#explode:@@@|<PROP>|0}}|?Case ID|link=none}}</div>
 
  <div class="info-row"><b>Case ID:</b>{{#show:{{#explode:@@@|<PROP>|0}}|?Case ID|link=none}}</div>
<div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]}}
+
<div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]|limit=9999}}
 
</div>{{#tag:wsform|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Settled seen by|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}}, {{FULLPAGENAME}}|{{FULLPAGENAME}} }} }}
 
</div>{{#tag:wsform|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Settled seen by|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}}, {{FULLPAGENAME}}|{{FULLPAGENAME}} }} }}
 
{{#tag:wsfield||type=submit|value=Remove message|class=btn btn-green mt-4 mb-4}}
 
{{#tag:wsfield||type=submit|value=Remove message|class=btn btn-green mt-4 mb-4}}
Line 95: Line 95:
 
|}}<!--
 
|}}<!--
  
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Jurors::{{FULLPAGENAME}}]][[Change::!none]]|?Change seen by|?Suit date|link=none|format=array}}|,|@@@|<!--
+
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Jurors::{{FULLPAGENAME}}]][[Change::!none]]|?Change seen by|?Suit date|link=none|format=array|limit=9999}}|,|@@@|<!--
 
 
 
-->{{#arraydefine:@change|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }}
 
-->{{#arraydefine:@change|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}} }}
Line 101: Line 101:
 
<summary>A case you are jurying is changed</summary>}}
 
<summary>A case you are jurying is changed</summary>}}
 
<div class="info-row"><b>Case ID:</b>{{#show:{{#explode:@@@|<PROP>|0}}|?Case ID|link=none}}</div>
 
<div class="info-row"><b>Case ID:</b>{{#show:{{#explode:@@@|<PROP>|0}}|?Case ID|link=none}}</div>
<div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]}}</div>
+
<div class="info-row"><b>Suit:</b>{{#ask:[[Class::Suit]][[Workflow::{{#explode:@@@|<PROP>|0}}]]|limit=9999}}</div>
 
<div class="info-row"><b>Suit date:</b>{{#explode:@@@|<PROP>|2}}</div>
 
<div class="info-row"><b>Suit date:</b>{{#explode:@@@|<PROP>|2}}</div>
 
{{#tag:wsform|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Change seen by|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}}, {{FULLPAGENAME}}|{{FULLPAGENAME}} }} }}
 
{{#tag:wsform|{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}}}}|template=Workflow|formfield=Change seen by|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|###|###|,}}, {{FULLPAGENAME}}|{{FULLPAGENAME}} }} }}
Line 109: Line 109:
  
  
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Judge::{{FULLPAGENAME}}]][[Class request::!Declined]][[Class request::!Approved]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Class request|?Class title|link=none|format=array}}|,|@@@|
+
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Judge::{{FULLPAGENAME}}]][[Class request::!Declined]][[Class request::!Approved]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Class request|?Class title|link=none|format=array|limit=9999}}|,|@@@|
 
<div class="info-item">
 
<div class="info-item">
 
{{#tag:html|<details>
 
{{#tag:html|<details>
Line 120: Line 120:
 
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div>
 
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div>
 
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}|<br>}}</div>
 
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}|<br>}}</div>
<div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:@@@|<PROP>|3}}]]|format=plainlist}}</div>
+
<div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:@@@|<PROP>|3}}]]|limit=9999|format=plainlist}}</div>
 
<h2>Class information</h2>
 
<h2>Class information</h2>
 
{{#ifeq:{{#explode:@@@|<PROP>|12}}|New|
 
{{#ifeq:{{#explode:@@@|<PROP>|12}}|New|
Line 129: Line 129:
  
  
|{{#vardefine:@classinfo|{{#ask:[[Class::Workflow]][[{{#explode:@@@|<PROP>|12}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Class request|link=none|format=array}}}}
+
|{{#vardefine:@classinfo|{{#ask:[[Class::Workflow]][[{{#explode:@@@|<PROP>|12}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Class request|link=none|format=array|limit=9999}}}}
 
<div class="info-row"><b>Lie</b>{{#explode:{{#var:@classinfo}}|<PROP>|4}}</div>
 
<div class="info-row"><b>Lie</b>{{#explode:{{#var:@classinfo}}|<PROP>|4}}</div>
 
<div class="info-row"><b>Topic</b>{{#explode:{{#var:@classinfo}}|<PROP>|5}}</div>
 
<div class="info-row"><b>Topic</b>{{#explode:{{#var:@classinfo}}|<PROP>|5}}</div>
Line 135: Line 135:
 
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:{{#var:@classinfo}}|<PROP>|7}}</div></div>
 
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:{{#var:@classinfo}}|<PROP>|7}}</div></div>
 
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:{{#var:@classinfo}}|<PROP>|9}}|,|@@@|{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}|<br>}}</div>
 
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:{{#var:@classinfo}}|<PROP>|9}}|,|@@@|{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}|<br>}}</div>
<div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:{{#var:@classinfo}}|<PROP>|3}}]]|format=plainlist}}</div>
+
<div class="info-row"><b>Link</b>{{#ask:[[Class::Suit]][[Case ID::{{#explode:{{#var:@classinfo}}|<PROP>|3}}]]|format=plainlist|limit=9999}}</div>
 
}}<!-- if new -->
 
}}<!-- if new -->
 
<div class="d-flex">
 
<div class="d-flex">
Line 150: Line 150:
 
{{#tag:wsfield||type=hidden|name=Type|value=Class }}
 
{{#tag:wsfield||type=hidden|name=Type|value=Class }}
 
{{#tag:wsfield||type=hidden|name=Filed by|value={{#explode:@@@|<PROP>|2}} }}
 
{{#tag:wsfield||type=hidden|name=Filed by|value={{#explode:@@@|<PROP>|2}} }}
{{#tag:wsfield||type=hidden|name=Random judge|value={{#ask:[[User group::icol-user]][[Class::Member]][[Role::Judge]][[!{{FULLPAGENAME}}]]|Limit=1|format=array|order=random}} }}
+
{{#tag:wsfield||type=hidden|name=Random judge|value={{#ask:[[User group::icol-user]][[Class::Member]][[Role::Judge]][[!{{FULLPAGENAME}}]]|Limit=1|format=array|order=random|limit=9999}} }}
 
{{#tag:wsfield||type=hidden|name=Case ID|value=1234-{{#time: U | now}}-{{#time: U | now}} }}
 
{{#tag:wsfield||type=hidden|name=Case ID|value=1234-{{#time: U | now}}-{{#time: U | now}} }}
 
{{#tag:wsfield||type=hidden|name=Class case IDs|value={{{Workflow|}}} }}
 
{{#tag:wsfield||type=hidden|name=Class case IDs|value={{{Workflow|}}} }}
Line 173: Line 173:
  
  
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]][[Plaintiff verdict::No]]|?Case ID|?Lie|link=none|format=array}}|,|@@@|
+
-->{{#arraymap:{{#ask:[[Class::Workflow]][[Filed by::{{FULLPAGENAME}}]][[Plaintiff verdict::No]]|?Case ID|?Lie|link=none|format=array|limit=9999}}|,|@@@|
 
<div class="info-item">
 
<div class="info-item">
 
{{#tag:html|<details>
 
{{#tag:html|<details>
 
<summary>Please fill in your plaintiff verdict</summary>}}
 
<summary>Please fill in your plaintiff verdict</summary>}}
 
<div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|2}}</div>
 
<div class="info-row"><b>Lie</b>{{#explode:@@@|<PROP>|2}}</div>
{{#vardefine:@partpage|{{#ask:[[Class::Participant]][[User::{{FULLPAGENAME}}]][[Workflow::{{#explode:@@@|<PROP>|0}}]]|link=none}} }}
+
{{#vardefine:@partpage|{{#ask:[[Class::Participant]][[User::{{FULLPAGENAME}}]][[Workflow::{{#explode:@@@|<PROP>|0}}]]|link=none|limit=9999}} }}
 
{{#if:{{#var:@partpage}}|
 
{{#if:{{#var:@partpage}}|
 
{{#widget:link|type=a|href={{#var:@partpage}}|class=btn btn-green mt-4 mb-4|text=Create verdict}}
 
{{#widget:link|type=a|href={{#var:@partpage}}|class=btn btn-green mt-4 mb-4|text=Create verdict}}
Line 194: Line 194:
 
|}}
 
|}}
  
{{#arraymap:{{#ask:[[Class::Workflow]][[Random judge::{{FULLPAGENAME}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Reason for judge decline|link=none|format=array|sep=$$$}}|$$$|@@@|
+
{{#arraymap:{{#ask:[[Class::Workflow]][[Random judge::{{FULLPAGENAME}}]]|?Declined judge|?Filed by|?Case ID|?Lie|?Topic|?Description|?Markup|?Facts|?Locations|?Type|?Class case IDs|?Reason for judge decline|link=none|format=array|sep=$$$|limit=9999}}|$$$|@@@|
 
<div class="info-item">
 
<div class="info-item">
 
{{#tag:html|<details>
 
{{#tag:html|<details>
Line 204: Line 204:
 
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div>
 
<div class="info-row"><b>Marked truth and lies </b><div class="lie-input">{{#explode:@@@|<PROP>|7}}</div></div>
 
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}|<br>}}</div>
 
<div class="info-row"><b>Locations</b>{{#arraymap:{{#explode:@@@|<PROP>|9}}|,|@@@|{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}|<br>}}</div>
<div class="info-row"><b>Screenshot</b>{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#explode:@@@|<PROP>|3}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{fa|image}} }}<!--
+
<div class="info-row"><b>Screenshot</b>{{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#explode:@@@|<PROP>|3}}]]|?=|?Modification date|Format=array|link=none|limit=9999}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{fa|image}} }}<!--
  
 
-->{{Modal
 
-->{{Modal
Line 251: Line 251:
 
|Format=array
 
|Format=array
 
|Sep=$
 
|Sep=$
 +
|limit=9999
 
}}}}
 
}}}}
 
<div class="info-row"><b>Is it the Truth?</b>{{#explode:{{#var:@plver}}|<PROP>|4}} <span class="percnt">{{#explode:{{#var:@plver}}|<PROP>|5}}%</span><br>{{#explode:{{#var:@plver}}|<PROP>|6}}</div>
 
<div class="info-row"><b>Is it the Truth?</b>{{#explode:{{#var:@plver}}|<PROP>|4}} <span class="percnt">{{#explode:{{#var:@plver}}|<PROP>|5}}%</span><br>{{#explode:{{#var:@plver}}|<PROP>|6}}</div>
Line 263: Line 264:
 
<div class="info-row"><b>Reason</b>{{#explode:@@@|<PROP>|12}}</div>}}
 
<div class="info-row"><b>Reason</b>{{#explode:@@@|<PROP>|12}}</div>}}
 
{{#tag:wsform|<h2>Reason for decline</h2>  
 
{{#tag:wsform|<h2>Reason for decline</h2>  
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Random judge|value={{#ask:[[User group::icol-user]][[Class::Member]]{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}[[!{{#explode:@@@|<PROP>|2}}]][[!{{FULLPAGENAME}}]][[Role::Judge]]|Limit=1|format=array|order=random}}}}
+
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Random judge|value={{#ask:[[User group::icol-user]][[Class::Member]]{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}[[!{{#explode:@@@|<PROP>|2}}]][[!{{FULLPAGENAME}}]][[Role::Judge]]|Limit=1|searchlabel=-|format=array|order=random}}}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Declined judge|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{FULLPAGENAME}}| {{FULLPAGENAME}} }} }}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Declined judge|value={{#if:{{#explode:@@@|<PROP>|1}}|{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|@@@|,}}, {{FULLPAGENAME}}| {{FULLPAGENAME}} }} }}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Reason for judge decline}}
 
{{#tag:wsedit||target={{PAGEID:{{#explode:@@@|<PROP>|0}} }}|template=Workflow|formfield=Reason for judge decline}}
Line 283: Line 284:
 
{{#tag:html|</details>}}
 
{{#tag:html|</details>}}
 
|}}
 
|}}
{{#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=$$$}}|$$$|@@@|
+
{{#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=$$$|limit=9999}}|$$$|@@@|
 
<div class="info-item">
 
<div class="info-item">
 
{{#tag:html|<details>
 
{{#tag:html|<details>
Line 297: Line 298:
 
<div class="d-flex justify-content-center pb-4">
 
<div class="d-flex justify-content-center pb-4">
 
{{#tag:wsform| {{#arraydefine:@random juror|{{#explode:@@@|<PROP>|13}}|<MANY>}}{{#arraydefine:@user|{{FULLPAGENAME}} }}{{#arraydiff:new_key|@random juror|@user}}
 
{{#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={{#if:{{#arrayprint:new_key}}| {{#arrayprint:new_key}}, }}{{#ask:[[User group::icol-user]][[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=Random juror|value={{#if:{{#arrayprint:new_key}}| {{#arrayprint:new_key}}, }}{{#ask:[[User group::icol-user]][[Class::Member]][[!{{FULLPAGENAME}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]]{{#arraymap:{{#explode:@@@|<PROP>|13}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|searchlabel=-|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>|@@@|@@@|,}}, {{FULLPAGENAME}}| {{FULLPAGENAME}} }} }}
 
{{#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}}|
Line 315: Line 316:
 
{{#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=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}}, }}{{#vardefine:@limit|{{#expr:{{#explode:@@@|<PROP>|10}} {{#if:{{#arrayprint:new_key}}|- {{#arraysize:new_key}}| - 0 }}{{#if:{{#arraysize:@countjurors}}|- {{#arraysize:@countjurors}}|- 0}} }} }}{{#ifexpr:{{#var:@limit}} > 0|{{#ask:[[User group::icol-user]][[Class::Member]][[!{{FULLPAGENAME}}]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit={{#var:@limit}}|format=array|order=random}} }}
+
  -->{{#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}}, }}{{#vardefine:@limit|{{#expr:{{#explode:@@@|<PROP>|10}} {{#if:{{#arrayprint:new_key}}|- {{#arraysize:new_key}}| - 0 }}{{#if:{{#arraysize:@countjurors}}|- {{#arraysize:@countjurors}}|- 0}} }} }}{{#ifexpr:{{#var:@limit}} > 0|{{#ask:[[User group::icol-user]][[Class::Member]][[!{{FULLPAGENAME}}]][[!{{{Filed by|}}}]][[Role::Juror]][[!{{#explode:@@@|<PROP>|12}}]][[!{{#explode:@@@|<PROP>|13}}]]{{#arraymap:{{#explode:@@@|<PROP>|11}}|<MANY>|@@@|[[!@@@]]|}}{{#arraymap:{{#explode:@@@|<PROP>|1}}|<MANY>|@@@|[[!@@@]]|}}|Limit={{#var:@limit}}|searchlabel=-|format=array|order=random}} }}
 
}} }}
 
}} }}
 
{{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}|
 
{{#ifexpr:{{#arraysize:@jurrors}} < {{#explode:@@@|<PROP>|10}}|

Revision as of 15:04, 5 July 2021


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

{{User
|User=
|Roles=
|Name=
|Filed by=
|be candidate=
}}