Template:Traps/row: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
Line 2: Line 2:
{{#if:{{{name|}}}|{{!}} rowspan="{{{rowspan|}}}" {{!}}[[File:{{{name}}}.png]]|}}
{{#if:{{{name|}}}|{{!}} rowspan="{{{rowspan|}}}" {{!}}[[File:{{{name}}}.png]]|}}
{{#if:{{{name|}}}|{{!}} rowspan="{{{rowspan|}}}" {{!}}{{{name}}}|}}
{{#if:{{{name|}}}|{{!}} rowspan="{{{rowspan|}}}" {{!}}{{{name}}}|}}
|{{#if:{{{minutes|}}}|{{{minutes}}} minutes}}{{#if:{{{hours|}}}|{{{hours}}} hours}}{{#if:{{{days|}}}|{{{days}}} days}}
|{{#if:{{#ifexpr: {{{minutes|}}} >= 1440| {{#expr:{{{minutes}}} / 1440}} Days{{#vardefine:tUnit|Days}}|{{#ifexpr: {{{minutes|}}} >= 60 | {{#expr:{{{minutes}}} / 60}} Hours{{#vardefine:tUnit|Hours}}|{{#ifexpr: {{{minutes|}}} > 0 | {{{minutes}}} Minutes{{#vardefine:tUnit|Minutes}}| No Time<!--Minutes End-->}}<!--Hours End-->}}<!--Days End-->}}
|{{{qty}}}x
|{{{qty}}}x
|{{#if:{{{xp|}}}|{{{xp}}}x}}
|{{#if:{{{xp|}}}|{{{xp}}}x}}
|{{#if:{{{shiny|}}}|{{{shiny}}}x}}
|{{#if:{{{shiny|}}}|{{{shiny}}}x}}
|{{#if:{{{minutes|}}}|QTY Eff: {{#expr:{{{qty}}}*3}}x/h}}{{#if:{{{hours|}}}|QTY Eff: {{#expr:{{#expr:{{{qty}}}/{{{hours}}}}} round 2}}x/h}}{{#if:{{{days|}}}|QTY Eff: {{#expr:{{#expr:{{{qty}}}/({{{days}}}*24)}}round 2}}x/h}}
|{{#switch:{{#var:tUnit}}
{{#if:{{{xp|}}}|{{#if:{{{minutes|}}}|XP Eff: {{#expr:{{{xp}}}*3}}x/h}}{{#if:{{{hours|}}}|XP Eff: {{#expr:{{#expr:{{{xp}}}/{{{hours}}}}} round 2}}x/h}}{{#if:{{{days|}}}|XP Eff: {{#expr:{{#expr:{{{xp}}}/({{{days}}}*24)}} round 2}}x/h}}}}<includeonly><noinclude>
|Days|Hours=QTY Eff: {{#expr:{{#expr:{{{minutes}}} / 60 }} * {{{qty}}}}}x/h
|Minutes=QTY Eff: {{#expr:{{#expr:60 / {{{minutes}}} }} * {{{qty}}}}}x/h
}}{{#if:{{{xp|}}}|</br>
{{#switch:{{#var:tUnit}}
|Days|Hours=XP Eff: {{#expr:{{#expr:{{{minutes}}} / 60 }} * {{{xp}}}}}x/h
|Minutes=XP Eff: {{#expr:{{#expr:60 / {{{minutes}}} }} * {{{xp}}}}}x/h
}}<includeonly><noinclude>
<pre>
<pre>
Usage:
Usage:

Revision as of 04:34, 17 June 2021