Template:Gemshop/row: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 4: Line 4:
<td>{{{description|MTX Description}}}</td>
<td>{{{description|MTX Description}}}</td>
<td style="text-align:center;">{{#ifeq:{{{maxPurchases|}}}|100000|∞|{{{maxPurchases|0}}}}}</td>
<td style="text-align:center;">{{#ifeq:{{{maxPurchases|}}}|100000|∞|{{{maxPurchases|0}}}}}</td>
<td>'''Base:''' {{{cost|0}}}{{#ifeq:{{{costIncrement|0}}}|0||<br/>'''Increment:''' {{{costIncrement}}}<br/>'''Final:''' {{#expr:{{{cost}}} + ({{{costIncrement}}} * ({{{maxPurchases}}} - 1))}}}}{{#ifexpr:1 < {{{maxPurchases|0}}} < 100000|<br/>'''Total:''' {{#expr:{{{cost}}} * {{{maxPurchases}}} + ({{{costIncrement}}} * ({{{maxPurchases}}} - 1))}}}}</td>
<td>'''Base:''' {{{cost|0}}}{{#ifeq:{{{costIncrement|0}}}|0||<br/>'''Increment:''' {{{costIncrement}}}<br/>'''Final:''' {{#expr:{{{cost}}} + ({{{costIncrement}}} * ({{{maxPurchases}}} - 1))}}}}{{#ifexpr:(1 < {{{maxPurchases|0}}}) and ({{{maxPurchases|0}}} < 100000)|<br/>'''Total:''' {{#expr:{{{cost}}} * {{{maxPurchases}}} + ({{{costIncrement}}} * ({{{maxPurchases}}} - 1))}}}}</td>
</tr></includeonly><noinclude>
</tr></includeonly><noinclude>
[[category:Table templates]]
[[category:Table templates]]
{{#expr:1 < 0 < 100}}
</noinclude>
</noinclude>

Revision as of 03:55, 25 February 2023

1