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}}} | |{{#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}} | ||
|{{# | |{{#switch:{{#var:tUnit}} | ||
{{#if:{{{xp|}}}|{{# | |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: |