Template:ItemDetails/tooltipbox: Difference between revisions
From IdleOn MMO Wiki
imported>Wekhter mNo edit summary |
imported>Wekhter mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class='Infobox Detailbox'><b class='Header'>{{{Item|Peanut}}}</b><i class='HeaderImage'><img src='{{filepath:{{{Item|Peanut}}}.png|nowiki}}'></i><b class='SubHeader'>{{{Type|Details}}}</b><dl>{{#ifeq:{{{Level|}}}|0||<dt>Level</dt><dd>{{{Level}}}</dd>}}{{#ifeq:{{{Class|}}}|Null||<dt>Class</dt><dd>{{{Class}}}</dd>}}{{#ifeq:{{{WeaponPower|}}}|<dt>W.Power</dt><dd>{{{WeaponPower}}}</dd>}}{{#ifeq:{{{SkillPower|}}}|0||<dt>S.Power</dt><dd>{{{SkillPower}}}</dd>}}{{#ifeq:{{{UseSpeed|}}}|0||<dt>Speed</dt><dd>{{{UseSpeed}}}</dd>}}{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<dt class='start'>Stats</dt><dd class='wide'>{{#ifexpr:{{{STR|0}}}>0|<b class='str'>STR</b>x{{{STR}}} }} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}} }} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}} }} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}} }}</dd>}}{{#ifeq:{{{Defence|}}}|0||<dt>Def</dt><dd>{{{Defence}}}</dd>}}{{# | <includeonly><div class='Infobox Detailbox'><b class='Header'>{{{Item|Peanut}}}</b><i class='HeaderImage'><img src='{{filepath:{{{Item|Peanut}}}.png|nowiki}}'></i><b class='SubHeader'>{{{Type|Details}}}</b><dl>{{#ifeq:{{{Level|}}}|0||<dt>Level</dt><dd>{{{Level}}}</dd>}}{{#ifeq:{{{Class|}}}|Null||<dt>Class</dt><dd>{{{Class}}}</dd>}}{{#ifeq:{{{WeaponPower|}}}|<dt>W.Power</dt><dd>{{{WeaponPower}}}</dd>}}{{#ifeq:{{{SkillPower|}}}|0||<dt>S.Power</dt><dd>{{{SkillPower}}}</dd>}}{{#ifeq:{{{UseSpeed|}}}|0||<dt>Speed</dt><dd>{{{UseSpeed}}}</dd>}}{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<dt class='start'>Stats</dt><dd class='wide'>{{#ifexpr:{{{STR|0}}}>0|<b class='str'>STR</b>x{{{STR}}} }} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}} }} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}} }} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}} }}</dd>}}{{#ifeq:{{{Defence|}}}|0||<dt>Def</dt><dd>{{{Defence}}}</dd>}}{{#ifeq:{{{FishSpeed|}}}|0||<dt>Reel Spd</dt><dd>{{{FishSpeed}}}</dd>}}{{#ifeq:{{{FishPower|}}}|0||<dt>Fish Pow</dt><dd>{{{FishPower}}}</dd>}}{{#ifeq:{{{GreenDepth|}}}|0||<dt>G.Depth</dt><dd>{{{GreenDepth}}}</dd>}}{{#ifeq:{{{YellowDepth|}}}|0||<dt>Y.Depth</dt><dd>{{{YellowDepth}}}</dd>}}{{#ifeq:{{{RedDepth|}}}|0||<dt>R.Depth</dt><dd>{{{RedDepth}}}</dd>}}{{#ifeq:{{{PurpleDepth|}}}|0||<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}}{{#ifeq:{{{ExpBonus|}}}|0||<dt>Fish EXP</dt><dd>{{{ExpBonus}}}</dd>}}{{#ifeq:{{{Reach|}}}|0||<dt>Reach</dt><dd>{{{Reach}}}</dd>}}{{#ifeq:{{{Upgrade|}}}|0||<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}}{{#ifeq:{{{MISC|}}}|Null||<dt class='start'>Misc</dt><dd class='wide'>{{{MISC}}}</dd>}}{{#ifeq:{{{MISC2|}}}|Null||<dt class='start'>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}}{{#ifeq:{{{Bonus|}}}|Null||<dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}}{{#ifeq:{{{BonusRate|}}}|0||<dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}}{{#ifeq:{{{Description|}}}|Null||<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}{{#ifeq:{{{StampMat|}}}|Null||<dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}</dl></div></includeonly><noinclude>HTML entity names are used within this template to avoid parsing the contents early. The readable version is as follows: | ||
<pre><div class='Infobox Detailbox'> | <pre><div class='Infobox Detailbox'> | ||
<b class='Header'>{{{Item|Peanut}}}</b> | <b class='Header'>{{{Item|Peanut}}}</b> | ||
Line 12: | Line 12: | ||
{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<dt class='start'>Stats</dt><dd class='wide'>{{#ifexpr:{{{STR|0}}}>0|<b class='str'>STR</b>x{{{STR}}} }} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}} }} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}} }} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}} }}</dd>}} | {{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<dt class='start'>Stats</dt><dd class='wide'>{{#ifexpr:{{{STR|0}}}>0|<b class='str'>STR</b>x{{{STR}}} }} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}} }} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}} }} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}} }}</dd>}} | ||
{{#ifeq:{{{Defence|}}}|0||<dt>Def</dt><dd>{{{Defence}}}</dd>}} | {{#ifeq:{{{Defence|}}}|0||<dt>Def</dt><dd>{{{Defence}}}</dd>}} | ||
{{# | {{#ifeq:{{{FishSpeed|}}}|0||<dt>Reel Spd</dt><dd>{{{FishSpeed}}}</dd>}} | ||
{{# | {{#ifeq:{{{FishPower|}}}|0||<dt>Fish Pow</dt><dd>{{{FishPower}}}</dd>}} | ||
{{# | {{#ifeq:{{{GreenDepth|}}}|0||<dt>G.Depth</dt><dd>{{{GreenDepth}}}</dd>}} | ||
{{# | {{#ifeq:{{{YellowDepth|}}}|0||<dt>Y.Depth</dt><dd>{{{YellowDepth}}}</dd>}} | ||
{{# | {{#ifeq:{{{RedDepth|}}}|0||<dt>R.Depth</dt><dd>{{{RedDepth}}}</dd>}} | ||
{{# | {{#ifeq:{{{PurpleDepth|}}}|0||<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}} | ||
{{# | {{#ifeq:{{{ExpBonus|}}}|0||<dt>Fish EXP</dt><dd>{{{ExpBonus}}}</dd>}} | ||
{{#ifeq:{{{Reach|}}}|0||<dt>Reach</dt><dd>{{{Reach}}}</dd>}} | {{#ifeq:{{{Reach|}}}|0||<dt>Reach</dt><dd>{{{Reach}}}</dd>}} | ||
{{#ifeq:{{{Upgrade|}}}|0||<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}} | {{#ifeq:{{{Upgrade|}}}|0||<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}} | ||
Line 24: | Line 24: | ||
{{#ifeq:{{{MISC2|}}}|Null||<dt class='start'>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}} | {{#ifeq:{{{MISC2|}}}|Null||<dt class='start'>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}} | ||
{{#ifeq:{{{Bonus|}}}|Null||<dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}} | {{#ifeq:{{{Bonus|}}}|Null||<dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}} | ||
{{# | {{#ifeq:{{{BonusRate|}}}|0||<dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}} | ||
{{#ifeq:{{{Description|}}}|Null||<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}} | {{#ifeq:{{{Description|}}}|Null||<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}} | ||
{{# | {{#ifeq:{{{StampMat|}}}|Null||<dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}} | ||
</dl> | </dl> | ||
</div></pre></noinclude> | </div></pre></noinclude> |
Revision as of 04:31, 31 March 2022
HTML entity names are used within this template to avoid parsing the contents early. The readable version is as follows:
<div class='Infobox Detailbox'> <b class='Header'>{{{Item|Peanut}}}</b> <i class='HeaderImage'><img src='{{filepath:{{{Item|Peanut}}}.png|nowiki}}'></i> <b class='SubHeader'>{{{Type|Details}}}</b> <dl> {{#ifeq:{{{Level|}}}|0||<dt>Level</dt><dd>{{{Level}}}</dd>}} {{#ifeq:{{{Class|}}}|Null||<dt>Class</dt><dd>{{{Class}}}</dd>}} {{#ifeq:{{{WeaponPower|}}}|<dt>W.Power</dt><dd>{{{WeaponPower}}}</dd>}} {{#ifeq:{{{SkillPower|}}}|0||<dt>S.Power</dt><dd>{{{SkillPower}}}</dd>}} {{#ifeq:{{{UseSpeed|}}}|0||<dt>Speed</dt><dd>{{{UseSpeed}}}</dd>}} {{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<dt class='start'>Stats</dt><dd class='wide'>{{#ifexpr:{{{STR|0}}}>0|<b class='str'>STR</b>x{{{STR}}} }} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}} }} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}} }} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}} }}</dd>}} {{#ifeq:{{{Defence|}}}|0||<dt>Def</dt><dd>{{{Defence}}}</dd>}} {{#ifeq:{{{FishSpeed|}}}|0||<dt>Reel Spd</dt><dd>{{{FishSpeed}}}</dd>}} {{#ifeq:{{{FishPower|}}}|0||<dt>Fish Pow</dt><dd>{{{FishPower}}}</dd>}} {{#ifeq:{{{GreenDepth|}}}|0||<dt>G.Depth</dt><dd>{{{GreenDepth}}}</dd>}} {{#ifeq:{{{YellowDepth|}}}|0||<dt>Y.Depth</dt><dd>{{{YellowDepth}}}</dd>}} {{#ifeq:{{{RedDepth|}}}|0||<dt>R.Depth</dt><dd>{{{RedDepth}}}</dd>}} {{#ifeq:{{{PurpleDepth|}}}|0||<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}} {{#ifeq:{{{ExpBonus|}}}|0||<dt>Fish EXP</dt><dd>{{{ExpBonus}}}</dd>}} {{#ifeq:{{{Reach|}}}|0||<dt>Reach</dt><dd>{{{Reach}}}</dd>}} {{#ifeq:{{{Upgrade|}}}|0||<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}} {{#ifeq:{{{MISC|}}}|Null||<dt class='start'>Misc</dt><dd class='wide'>{{{MISC}}}</dd>}} {{#ifeq:{{{MISC2|}}}|Null||<dt class='start'>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}} {{#ifeq:{{{Bonus|}}}|Null||<dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}} {{#ifeq:{{{BonusRate|}}}|0||<dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}} {{#ifeq:{{{Description|}}}|Null||<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}} {{#ifeq:{{{StampMat|}}}|Null||<dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}} </dl> </div>