Template:Gemshop/row: Difference between revisions

From IdleOn MMO Wiki
No edit summary
mNo edit summary
Line 1: Line 1:
  <includeonly>|-
<includeonly><tr>
{{!}}[[File:{{{image|{{{1}}}}}}.png|50px]]
<td>[[File:{{{name|Gem}}}.png|50px]]</td>
{{!}}{{{1}}}
<td>{{{mtxName|MTX Name}}}</td>
{{!}}{{{2}}}
<td>{{{description|MTX Description}}}</td>
{{!}}{{{3}}} {{#Switch:{{{4|None}}}|None=|#Default={{!}}{{!}}{{{4}}}}} {{#Switch:{{{5|None}}}|None=|#Default={{!}}{{!}}{{{5}}}}}</includeonly><noinclude>
<td style="text-align:center;">{{#ifeq:{{{maxPurchases|}}}|100000|∞|{{{maxPurchases|0}}}}}</td>
<pre>
<td>{{#ifeq:{{{costIncrement|0}}}|0|{{{cost|0}}}|'''Base:''' {{{cost|0}}}<br/>'''Increment:''' {{{costIncrement}}}<br/>'''Final:''' {{#expr:{{{cost}}} + ({{{costIncrement}}} * ({{{maxPurchases}}} - 1))}}<br/>}}{{#ifexpr:{{{maxPurchases|0}}} < 100000|'''Total:''' {{#expr:{{{cost}}} * {{{maxPurchases}}} + ({{{costIncrement}}} * ({{{maxPurchases}}} - 1))}}}}</td>
Usage:
</tr></includeonly><noinclude>
{{Gemshop/row|<Name>|<Description>|<Gem Cost>|<Optional Maximum Amount, otherwise enter None>|<Optional Max Purchases, otherwise enter None>}}
</pre>
[[category:Table templates]]
[[category:Table templates]]
</noinclude>
</noinclude>

Revision as of 03:46, 25 February 2023