Template:Cost: Difference between revisions

From Exiled Kingdoms Wiki
(Created page with "<noinclude>Category:Templates ==Usage== Input 1 = Value = Cost / 4<br /> Input 2 = Cost = Val * 4<br /> Input 3 = 1 if you need to get the cost from the value </noinclu...")
 
mNo edit summary
 
Line 1: Line 1:
<noinclude>[[Category:Templates]]
<noinclude>[[Category:Templates]]
==Usage==
==Usage==
Input 1 = Value = Cost / 4<br />
Input 1 = Cost = Val * 4<br />


Input 2 = Cost = Val * 4<br />
Input 2 = Value = Cost / 4<br />


Input 3 = 1 if you need to get the cost from the value
Input 3 = 1 if you need to get the cost from the value


</noinclude>{{#if:{{{3|}}}|{{#if:{{{2|}}}|{{{2}}}|{{#expr:({{#if:{{{1|}}}|{{{1}}}|0}} * 4)round0}}}}
</noinclude>{{#if:{{{3|}}}|{{#if:{{{1|}}}|{{{1}}}|{{#expr:({{#if:{{{2|}}}|{{{2}}}|0}} * 4)round0}}}}|{{#if:{{{2|}}}|{{{2}}}|{{#expr:({{#if:{{{1|}}}|{{{1}}}|4}} div 4)round0}}}}}}
|{{#if:{{{1|}}}|{{{1}}}|{{#expr:({{#if:{{{2|}}}|{{{2}}}|4}} div 4)round0}}}}}}

Latest revision as of 16:04, 2 June 2017

Usage

Input 1 = Cost = Val * 4

Input 2 = Value = Cost / 4

Input 3 = 1 if you need to get the cost from the value

1