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}}}|}}
|{{#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-->}}
|{{#ifexpr: {{{minutes|}}} >= 1440| {{#expr:{{{minutes}}} / 1440}} Days{|{{#ifexpr: {{{minutes|}}} >= 60 | {{#expr:{{{minutes}}} / 60}} Hours|{{#ifexpr: {{{minutes|}}} > 0 | {{{minutes}}} 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}}
|{{#switch:{{#var:tUnit}}
|QTY Eff: {{#expr: {{#expr:60 / {{{minutes}}} }} * {{{qty}}} }}x/h{{#if:{{{xp|}}}|</br>
|Days|Hours|Minutes=QTY Eff: {{#expr: {{#expr:60 / {{{minutes}}} }} * {{{qty}}} }}x/h
XP Eff: {{#expr: {{#expr:60 / {{{minutes}}} }} * {{{xp}}} }}x/h}}<includeonly><noinclude>
}}{{#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:43, 17 June 2021