Difference between revisions of "Template:User"

From cm2.liecourt.com
(Fill database)
Line 55: Line 55:
 
<div id="info-tab-form" class="tab-pane fade"  role="tabpanel" aria-labelledby="info-tab-form">
 
<div id="info-tab-form" class="tab-pane fade"  role="tabpanel" aria-labelledby="info-tab-form">
 
{{User form
 
{{User form
|Target={{FULLPAGENAME}}
 
 
|Name={{{Name|}}}
 
|Name={{{Name|}}}
 
|Email={{{Email|}}}
 
|Email={{{Email|}}}
Line 88: Line 87:
 
-->{{#vardefine:@sent|{{#arraymap:{{#ask:[[Class::Transaction]][[User::{{FULLPAGENAME}}]][[To::!None]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@sent|{{#arraymap:{{#ask:[[Class::Transaction]][[User::{{FULLPAGENAME}}]][[To::!None]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@recieved|{{#arraymap:{{#ask:[[Class::Transaction]][[To::{{FULLPAGENAME}}]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@recieved|{{#arraymap:{{#ask:[[Class::Transaction]][[To::{{FULLPAGENAME}}]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
-->{{#vardefine:@balance|{{#expr:{{#if:{{#var:@bought}}|{{#var:@bought}}|0}} + {{#if:{{#var:@recieved}}|{{#var:@recieved}}|0}} - {{#expr:{{#if:{{#var:@spent}}|{{#var:@spent}}|0}} + {{#if:{{#var:@sent}}|{{#var:@sent}}|0}} }} }} }}
+
-->{{#vardefine:@balance|{{#expr:{{#expr:{{#if:{{#var:@bought}}|{{#var:@bought}}|0}} + {{#if:{{#var:@recieved}}|{{#var:@recieved}}|0}} - {{#expr:{{#if:{{#var:@spent}}|{{#var:@spent}}|0}} + {{#if:{{#var:@sent}}|{{#var:@sent}}|0}} }} }} + 1 }} }}
 
<span class="truth-token">{{fa|gavel}}</span>× <span class="nr">{{#var:@balance}}</span>  {{#tag:wsfield|Buy more|type=button|onclick=buyMore()|class=btn ml-4 btn-green|id=buy-more-button}}</div>
 
<span class="truth-token">{{fa|gavel}}</span>× <span class="nr">{{#var:@balance}}</span>  {{#tag:wsfield|Buy more|type=button|onclick=buyMore()|class=btn ml-4 btn-green|id=buy-more-button}}</div>
{{#tag:wsfield|Send to a friend|type=button|onclick=sendTokens()|class=btn |id=send-tokens}}
+
{{#tag:wsfield|Send to a friend|type=button|onclick=sendTokens()|class=btn d-none|id=send-tokens}}
 
<div id="buy-more" class="d-none">
 
<div id="buy-more" class="d-none">
 
<wsform action="addToWiki" >
 
<wsform action="addToWiki" >

Revision as of 12:39, 25 May 2020


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

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