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>&lt;div class='Infobox Detailbox'&gt;&lt;b class='Header'&gt;{{{Item|Peanut}}}&lt;/b&gt;&lt;i class='HeaderImage'&gt;&lt;img src='{{filepath:{{{Item|Peanut}}}.png|nowiki}}'&gt;&lt;/i&gt;&lt;b class='SubHeader'&gt;{{{Type|Details}}}&lt;/b&gt;&lt;dl&gt;{{#if:{{{Level|}}}|&lt;dt&gt;Level&lt;/dt&gt;&lt;dd&gt;{{{Level}}}&lt;/dd&gt;}}{{#if:{{{Class|}}}|&lt;dt&gt;Class&lt;/dt&gt;&lt;dd&gt;{{{Class}}}&lt;/dd&gt;}}{{#if:{{{WeaponPower|}}}|&lt;dt&gt;W.Power&lt;/dt&gt;&lt;dd&gt;{{{WeaponPower}}}&lt;/dd&gt;}}{{#if:{{{SkillPower|}}}|&lt;dt&gt;S.Power&lt;/dt&gt;&lt;dd&gt;{{{SkillPower}}}&lt;/dd&gt;}}{{#if:{{{UseSpeed|}}}|&lt;dt&gt;Speed&lt;/dt&gt;&lt;dd&gt;{{{UseSpeed}}}&lt;/dd&gt;}}{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}&gt;0|&lt;dt class='start'&gt;Stats&lt;/dt&gt;&lt;dd class='wide'&gt;{{#ifexpr:{{{STR|0}}}&gt;0|&lt;b class='str'&gt;STR&lt;/b&gt;x{{{STR}}}&nbsp;}} {{#ifexpr:{{{AGI|0}}}&gt;0|&lt;b class='agi'&gt;AGI&lt;/b&gt;x{{{AGI}}}&nbsp;}} {{#ifexpr:{{{WIS|0}}}&gt;0|&lt;b class='wis'&gt;WIS&lt;/b&gt;x{{{WIS}}}&nbsp;}} {{#ifexpr:{{{LUCK|0}}}&gt;0|&lt;b class='luk'&gt;LUK&lt;/b&gt;x{{{LUCK}}}&nbsp;}}&lt;/dd&gt;}}{{#if:{{{Defence|}}}|&lt;dt&gt;Def&lt;/dt&gt;&lt;dd&gt;{{{Defence}}}&lt;/dd&gt;}}{{#if:{{{FishSpeed|}}}|&lt;dt&gt;Reel Spd&lt;/dt&gt;&lt;dd&gt;{{{FishSpeed}}}&lt;/dd&gt;}}{{#if:{{{FishPower|}}}|&lt;dt&gt;Fish Pow&lt;/dt&gt;&lt;dd&gt;{{{FishPower}}}&lt;/dd&gt;}}{{#if:{{{GreenDepth|}}}|&lt;dt&gt;G.Depth&lt;/dt&gt;&lt;dd&gt;{{{GreenDepth}}}&lt;/dd&gt;}}{{#if:{{{YellowDepth|}}}|&lt;dt&gt;Y.Depth&lt;/dt&gt;&lt;dd&gt;{{{YellowDepth}}}&lt;/dd&gt;}}{{#if:{{{RedDepth|}}}|&lt;dt&gt;R.Depth&lt;/dt&gt;&lt;dd&gt;{{{RedDepth}}}&lt;/dd&gt;}}{{#if:{{{PurpleDepth|}}}|&lt;dt&gt;P.Depth&lt;/dt&gt;&lt;dd&gt;{{{PurpleDepth}}}&lt;/dd&gt;}}{{#if:{{{ExpBonus|}}}|&lt;dt&gt;Fish EXP&lt;/dt&gt;&lt;dd&gt;{{{ExpBonus}}}&lt;/dd&gt;}}{{#if:{{{Reach|}}}|&lt;dt&gt;Reach&lt;/dt&gt;&lt;dd&gt;{{{Reach}}}&lt;/dd&gt;}}{{#if:{{{Upgrade|}}}|&lt;dt&gt;Slots&lt;/dt&gt;&lt;dd&gt;{{{Upgrade}}}&lt;/dd&gt;}}{{#if:{{{MISC|}}}|&lt;dt class='start'&gt;Misc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC}}}&lt;/dd&gt;}}{{#if:{{{MISC2|}}}|&lt;dt class='start'&gt;Misc2&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC2}}}&lt;/dd&gt;}}{{#if:{{{Bonus|}}}|&lt;dt class='start'&gt;Bonus&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Bonus}}}&lt;/dd&gt;}}{{#if:{{{BonusRate|}}}|&lt;dt class='start'&gt;Rate&lt;/dt&gt;&lt;dd class='wide'&gt;Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}&lt;/dd&gt;}}{{#if:{{{Description|}}}|&lt;dt class='start'&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&lt;/dd&gt;}}{{#if:{{{StampMat|}}}|&lt;dt class='start'&gt;Uses&lt;/dt&gt;&lt;dd class='wide'&gt;{{{StampMat}}}&lt;/dd&gt;}}&lt;/dl&gt;&lt;/div&gt;</includeonly><noinclude>HTML entity names are used within this template to avoid parsing the contents early. The readable version is as follows:
<includeonly>&lt;div class='Infobox Detailbox'&gt;&lt;b class='Header'&gt;{{{Item|Peanut}}}&lt;/b&gt;&lt;i class='HeaderImage'&gt;&lt;img src='{{filepath:{{{Item|Peanut}}}.png|nowiki}}'&gt;&lt;/i&gt;&lt;b class='SubHeader'&gt;{{{Type|Details}}}&lt;/b&gt;&lt;dl&gt;{{#ifeq:{{{Level|}}}|0||&lt;dt&gt;Level&lt;/dt&gt;&lt;dd&gt;{{{Level}}}&lt;/dd&gt;}}{{#ifeq:{{{Class|}}}|Null||&lt;dt&gt;Class&lt;/dt&gt;&lt;dd&gt;{{{Class}}}&lt;/dd&gt;}}{{#ifeq:{{{WeaponPower|}}}|&lt;dt&gt;W.Power&lt;/dt&gt;&lt;dd&gt;{{{WeaponPower}}}&lt;/dd&gt;}}{{#ifeq:{{{SkillPower|}}}|0||&lt;dt&gt;S.Power&lt;/dt&gt;&lt;dd&gt;{{{SkillPower}}}&lt;/dd&gt;}}{{#ifeq:{{{UseSpeed|}}}|0||&lt;dt&gt;Speed&lt;/dt&gt;&lt;dd&gt;{{{UseSpeed}}}&lt;/dd&gt;}}{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}&gt;0|&lt;dt class='start'&gt;Stats&lt;/dt&gt;&lt;dd class='wide'&gt;{{#ifexpr:{{{STR|0}}}&gt;0|&lt;b class='str'&gt;STR&lt;/b&gt;x{{{STR}}}&nbsp;}} {{#ifexpr:{{{AGI|0}}}&gt;0|&lt;b class='agi'&gt;AGI&lt;/b&gt;x{{{AGI}}}&nbsp;}} {{#ifexpr:{{{WIS|0}}}&gt;0|&lt;b class='wis'&gt;WIS&lt;/b&gt;x{{{WIS}}}&nbsp;}} {{#ifexpr:{{{LUCK|0}}}&gt;0|&lt;b class='luk'&gt;LUK&lt;/b&gt;x{{{LUCK}}}&nbsp;}}&lt;/dd&gt;}}{{#ifeq:{{{Defence|}}}|0||&lt;dt&gt;Def&lt;/dt&gt;&lt;dd&gt;{{{Defence}}}&lt;/dd&gt;}}{{#if:{{{FishSpeed|}}}|&lt;dt&gt;Reel Spd&lt;/dt&gt;&lt;dd&gt;{{{FishSpeed}}}&lt;/dd&gt;}}{{#if:{{{FishPower|}}}|&lt;dt&gt;Fish Pow&lt;/dt&gt;&lt;dd&gt;{{{FishPower}}}&lt;/dd&gt;}}{{#if:{{{GreenDepth|}}}|&lt;dt&gt;G.Depth&lt;/dt&gt;&lt;dd&gt;{{{GreenDepth}}}&lt;/dd&gt;}}{{#if:{{{YellowDepth|}}}|&lt;dt&gt;Y.Depth&lt;/dt&gt;&lt;dd&gt;{{{YellowDepth}}}&lt;/dd&gt;}}{{#if:{{{RedDepth|}}}|&lt;dt&gt;R.Depth&lt;/dt&gt;&lt;dd&gt;{{{RedDepth}}}&lt;/dd&gt;}}{{#if:{{{PurpleDepth|}}}|&lt;dt&gt;P.Depth&lt;/dt&gt;&lt;dd&gt;{{{PurpleDepth}}}&lt;/dd&gt;}}{{#if:{{{ExpBonus|}}}|&lt;dt&gt;Fish EXP&lt;/dt&gt;&lt;dd&gt;{{{ExpBonus}}}&lt;/dd&gt;}}{{#ifeq:{{{Reach|}}}|0||&lt;dt&gt;Reach&lt;/dt&gt;&lt;dd&gt;{{{Reach}}}&lt;/dd&gt;}}{{#ifeq:{{{Upgrade|}}}|0||&lt;dt&gt;Slots&lt;/dt&gt;&lt;dd&gt;{{{Upgrade}}}&lt;/dd&gt;}}{{#ifeq:{{{MISC|}}}|Null||&lt;dt class='start'&gt;Misc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC}}}&lt;/dd&gt;}}{{#ifeq:{{{MISC2|}}}|Null||&lt;dt class='start'&gt;Misc2&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC2}}}&lt;/dd&gt;}}{{#ifeq:{{{Bonus|}}}|Null||&lt;dt&gt;Bonus&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Bonus}}}&lt;/dd&gt;}}{{#if:{{{BonusRate|}}}|&lt;dt&gt;Rate&lt;/dt&gt;&lt;dd class='wide'&gt;Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}&lt;/dd&gt;}}{{#ifeq:{{{Description|}}}|Null||&lt;dt&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&lt;/dd&gt;}}{{#if:{{{StampMat|}}}|&lt;dt&gt;Uses&lt;/dt&gt;&lt;dd class='wide'&gt;{{{StampMat}}}&lt;/dd&gt;}}&lt;/dl&gt;&lt;/div&gt;</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 5: Line 5:
<b class='SubHeader'>{{{Type|Details}}}</b>
<b class='SubHeader'>{{{Type|Details}}}</b>
<dl>
<dl>
{{#if:{{{Level|}}}|<dt>Level</dt><dd>{{{Level}}}</dd>}}
{{#ifeq:{{{Level|}}}|0||<dt>Level</dt><dd>{{{Level}}}</dd>}}
{{#if:{{{Class|}}}|<dt>Class</dt><dd>{{{Class}}}</dd>}}
{{#ifeq:{{{Class|}}}|Null||<dt>Class</dt><dd>{{{Class}}}</dd>}}
{{#if:{{{WeaponPower|}}}|<dt>W.Power</dt><dd>{{{WeaponPower}}}</dd>}}
{{#ifeq:{{{WeaponPower|}}}|<dt>W.Power</dt><dd>{{{WeaponPower}}}</dd>}}
{{#if:{{{SkillPower|}}}|<dt>S.Power</dt><dd>{{{SkillPower}}}</dd>}}
{{#ifeq:{{{SkillPower|}}}|0||<dt>S.Power</dt><dd>{{{SkillPower}}}</dd>}}
{{#if:{{{UseSpeed|}}}|<dt>Speed</dt><dd>{{{UseSpeed}}}</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}}}&nbsp;}} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}}&nbsp;}} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}}&nbsp;}} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}}&nbsp;}}</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}}}&nbsp;}} {{#ifexpr:{{{AGI|0}}}>0|<b class='agi'>AGI</b>x{{{AGI}}}&nbsp;}} {{#ifexpr:{{{WIS|0}}}>0|<b class='wis'>WIS</b>x{{{WIS}}}&nbsp;}} {{#ifexpr:{{{LUCK|0}}}>0|<b class='luk'>LUK</b>x{{{LUCK}}}&nbsp;}}</dd>}}
{{#if:{{{Defence|}}}|<dt>Def</dt><dd>{{{Defence}}}</dd>}}
{{#ifeq:{{{Defence|}}}|0||<dt>Def</dt><dd>{{{Defence}}}</dd>}}
{{#if:{{{FishSpeed|}}}|<dt>Reel Spd</dt><dd>{{{FishSpeed}}}</dd>}}
{{#if:{{{FishSpeed|}}}|<dt>Reel Spd</dt><dd>{{{FishSpeed}}}</dd>}}
{{#if:{{{FishPower|}}}|<dt>Fish Pow</dt><dd>{{{FishPower}}}</dd>}}
{{#if:{{{FishPower|}}}|<dt>Fish Pow</dt><dd>{{{FishPower}}}</dd>}}
Line 19: Line 19:
{{#if:{{{PurpleDepth|}}}|<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}}
{{#if:{{{PurpleDepth|}}}|<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}}
{{#if:{{{ExpBonus|}}}|<dt>Fish EXP</dt><dd>{{{ExpBonus}}}</dd>}}
{{#if:{{{ExpBonus|}}}|<dt>Fish EXP</dt><dd>{{{ExpBonus}}}</dd>}}
{{#if:{{{Reach|}}}|<dt>Reach</dt><dd>{{{Reach}}}</dd>}}
{{#ifeq:{{{Reach|}}}|0||<dt>Reach</dt><dd>{{{Reach}}}</dd>}}
{{#if:{{{Upgrade|}}}|<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}}
{{#ifeq:{{{Upgrade|}}}|0||<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}}
{{#if:{{{MISC|}}}|<dt class='start'>Misc</dt><dd class='wide'>{{{MISC}}}</dd>}}
{{#ifeq:{{{MISC|}}}|Null||<dt class='start'>Misc</dt><dd class='wide'>{{{MISC}}}</dd>}}
{{#if:{{{MISC2|}}}|<dt class='start'>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}}
{{#ifeq:{{{MISC2|}}}|Null||<dt class='start'>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}}
{{#if:{{{Bonus|}}}|<dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}}
{{#ifeq:{{{Bonus|}}}|Null||<dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}}
{{#if:{{{BonusRate|}}}|<dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}}
{{#if:{{{BonusRate|}}}|<dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}}
{{#if:{{{Description|}}}|<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
{{#ifeq:{{{Description|}}}|Null||<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
{{#if:{{{StampMat|}}}|<dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}
{{#if:{{{StampMat|}}}|<dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}
</dl>
</dl>
</div></pre></noinclude>
</div></pre></noinclude>

Revision as of 04:16, 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>}}
		{{#if:{{{FishSpeed|}}}|<dt>Reel Spd</dt><dd>{{{FishSpeed}}}</dd>}}
		{{#if:{{{FishPower|}}}|<dt>Fish Pow</dt><dd>{{{FishPower}}}</dd>}}
		{{#if:{{{GreenDepth|}}}|<dt>G.Depth</dt><dd>{{{GreenDepth}}}</dd>}}
		{{#if:{{{YellowDepth|}}}|<dt>Y.Depth</dt><dd>{{{YellowDepth}}}</dd>}}
		{{#if:{{{RedDepth|}}}|<dt>R.Depth</dt><dd>{{{RedDepth}}}</dd>}}
		{{#if:{{{PurpleDepth|}}}|<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}}
		{{#if:{{{ExpBonus|}}}|<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>}}
		{{#if:{{{BonusRate|}}}|<dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}}
		{{#ifeq:{{{Description|}}}|Null||<dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
		{{#if:{{{StampMat|}}}|<dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}
	</dl>
</div>