Difference between revisions of "Template:Order"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 11: Line 11:
 
</pre>
 
</pre>
  
</noinclude><includeonly>__NOTOC__ __NOTITLE__{{#if:{{{Errors|}}}|<div class="m-5 alert alert-danger">{{{Errors|}}}</div>}}
+
</noinclude><includeonly>__NOTOC__ __NOTITLE__{{#ifeq:{{{Version|}}}|Free|{{#if:{{{User|}}}|{{#set:Class=Order|User={{{User|}}}|Transaction=Free token|Tokens=1 }} }}|{{#if:{{{Errors|}}}|<div class="m-5 alert alert-danger">{{{Errors|}}}</div>}}
 
{{#if:{{{User|}}}|{{#set:Class=Order|User={{{User|}}}|Transaction={{{Transactions|}}}|Tokens={{{Tokens|}}}|Paytrace validated customer id={{{Paytrace validated customer id|}}} }} }}
 
{{#if:{{{User|}}}|{{#set:Class=Order|User={{{User|}}}|Transaction={{{Transactions|}}}|Tokens={{{Tokens|}}}|Paytrace validated customer id={{{Paytrace validated customer id|}}} }} }}
 
{{#if:{{{Transactions|}}}|<div class="m-5 alert alert-primary">Payment was successful {{#widget:link|type=a|href={{fullurl:{{{User|}}} }}|text=Back to profile page|class=btn btn-green}}</div>|
 
{{#if:{{{Transactions|}}}|<div class="m-5 alert alert-primary">Payment was successful {{#widget:link|type=a|href={{fullurl:{{{User|}}} }}|text=Back to profile page|class=btn btn-green}}</div>|
Line 32: Line 32:
 
|Paytrace validated customer id={{{Paytrace validated customer id|}}}
 
|Paytrace validated customer id={{{Paytrace validated customer id|}}}
 
}}
 
}}
}}</includeonly>
+
}} }}</includeonly>

Revision as of 12:39, 25 May 2020


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

{{Order }}