Template:ItemDetails/tooltipbox: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No 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;hr&gt;&lt;dt&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;&lt;hr&gt;}}{{#if:{{{Defence|}}}|&lt;dt&gt;Def&lt;/dt&gt;&lt;dd&gt;{{{Defence}}}&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;EXP Bonus&lt;/dt&gt;&lt;dd&gt;{{{ExpBonus}}}&lt;/dd&gt;}}{{#if:{{{FishSpeed|}}}|&lt;dt&gt;Reel Speed&lt;/dt&gt;&lt;dd&gt;{{{FishSpeed}}}&lt;/dd&gt;}}{{#if:{{{FishPower|}}}|&lt;dt&gt;Fish Power&lt;/dt&gt;&lt;dd&gt;{{{FishPower}}}&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;hr&gt;&lt;dt&gt;Misc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC}}}&lt;/dd&gt;}}{{#if:{{{MISC2|}}}|&lt;hr&gt;&lt;dt&gt;Misc2&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC2}}}&lt;/dd&gt;}}{{#if:{{{Bonus|}}}|&lt;hr&gt;&lt;dt&gt;Bonus&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Bonus}}}&lt;/dd&gt;}}{{#if:{{{BonusRate|}}}|&lt;hr&gt;&lt;dt&gt;Rate&lt;/dt&gt;&lt;dd class='wide'&gt;Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}&lt;/dd&gt;}}{{#if:{{{Description|}}}|&lt;hr&gt;&lt;dt&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&lt;/dd&gt;}}{{#if:{{{StampMat|}}}|&lt;hr&gt;&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:
<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;hr&gt;&lt;dt&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;&lt;hr&gt;}}{{#if:{{{Defence|}}}|&lt;dt&gt;Def&lt;/dt&gt;&lt;dd&gt;{{{Defence}}}&lt;/dd&gt;}}{{#if:{{{FishSpeed|}}}|&lt;dt&gt;Reel Speed&lt;/dt&gt;&lt;dd&gt;{{{FishSpeed}}}&lt;/dd&gt;}}{{#if:{{{FishPower|}}}|&lt;dt&gt;Fish Power&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;EXP Bonus&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;hr&gt;&lt;dt&gt;Misc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC}}}&lt;/dd&gt;}}{{#if:{{{MISC2|}}}|&lt;hr&gt;&lt;dt&gt;Misc2&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC2}}}&lt;/dd&gt;}}{{#if:{{{Bonus|}}}|&lt;hr&gt;&lt;dt&gt;Bonus&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Bonus}}}&lt;/dd&gt;}}{{#if:{{{BonusRate|}}}|&lt;hr&gt;&lt;dt&gt;Rate&lt;/dt&gt;&lt;dd class='wide'&gt;Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}&lt;/dd&gt;}}{{#if:{{{Description|}}}|&lt;hr&gt;&lt;dt&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&lt;/dd&gt;}}{{#if:{{{StampMat|}}}|&lt;hr&gt;&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 12: Line 12:
{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<hr><dt>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><hr>}}
{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<hr><dt>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><hr>}}
{{#if:{{{Defence|}}}|<dt>Def</dt><dd>{{{Defence}}}</dd>}}
{{#if:{{{Defence|}}}|<dt>Def</dt><dd>{{{Defence}}}</dd>}}
{{#if:{{{FishSpeed|}}}|<dt>Reel Speed</dt><dd>{{{FishSpeed}}}</dd>}}
{{#if:{{{FishPower|}}}|<dt>Fish Power</dt><dd>{{{FishPower}}}</dd>}}
{{#if:{{{GreenDepth|}}}|<dt>G.Depth</dt><dd>{{{GreenDepth}}}</dd>}}
{{#if:{{{GreenDepth|}}}|<dt>G.Depth</dt><dd>{{{GreenDepth}}}</dd>}}
{{#if:{{{YellowDepth|}}}|<dt>Y.Depth</dt><dd>{{{YellowDepth}}}</dd>}}
{{#if:{{{YellowDepth|}}}|<dt>Y.Depth</dt><dd>{{{YellowDepth}}}</dd>}}
Line 17: Line 19:
{{#if:{{{PurpleDepth|}}}|<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}}
{{#if:{{{PurpleDepth|}}}|<dt>P.Depth</dt><dd>{{{PurpleDepth}}}</dd>}}
{{#if:{{{ExpBonus|}}}|<dt>EXP Bonus</dt><dd>{{{ExpBonus}}}</dd>}}
{{#if:{{{ExpBonus|}}}|<dt>EXP Bonus</dt><dd>{{{ExpBonus}}}</dd>}}
{{#if:{{{FishSpeed|}}}|<dt>Reel Speed</dt><dd>{{{FishSpeed}}}</dd>}}
{{#if:{{{FishPower|}}}|<dt>Fish Power</dt><dd>{{{FishPower}}}</dd>}}
{{#if:{{{Reach|}}}|<dt>Reach</dt><dd>{{{Reach}}}</dd>}}
{{#if:{{{Reach|}}}|<dt>Reach</dt><dd>{{{Reach}}}</dd>}}
{{#if:{{{Upgrade|}}}|<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}}
{{#if:{{{Upgrade|}}}|<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}}

Revision as of 18:25, 29 October 2021

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>
		{{#if:{{{Level|}}}|<dt>Level</dt><dd>{{{Level}}}</dd>}}
		{{#if:{{{Class|}}}|<dt>Class</dt><dd>{{{Class}}}</dd>}}
		{{#if:{{{WeaponPower|}}}|<dt>W.Power</dt><dd>{{{WeaponPower}}}</dd>}}
		{{#if:{{{SkillPower|}}}|<dt>S.Power</dt><dd>{{{SkillPower}}}</dd>}}
		{{#if:{{{UseSpeed|}}}|<dt>Speed</dt><dd>{{{UseSpeed}}}</dd>}}
		{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}}>0|<hr><dt>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><hr>}}
		{{#if:{{{Defence|}}}|<dt>Def</dt><dd>{{{Defence}}}</dd>}}
		{{#if:{{{FishSpeed|}}}|<dt>Reel Speed</dt><dd>{{{FishSpeed}}}</dd>}}
		{{#if:{{{FishPower|}}}|<dt>Fish Power</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>EXP Bonus</dt><dd>{{{ExpBonus}}}</dd>}}
		{{#if:{{{Reach|}}}|<dt>Reach</dt><dd>{{{Reach}}}</dd>}}
		{{#if:{{{Upgrade|}}}|<dt>Slots</dt><dd>{{{Upgrade}}}</dd>}}
		{{#if:{{{MISC|}}}|<hr><dt>Misc</dt><dd class='wide'>{{{MISC}}}</dd>}}
		{{#if:{{{MISC2|}}}|<hr><dt>Misc2</dt><dd class='wide'>{{{MISC2}}}</dd>}}
		{{#if:{{{Bonus|}}}|<hr><dt>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}}
		{{#if:{{{BonusRate|}}}|<hr><dt>Rate</dt><dd class='wide'>Base: {{{BonusRate}}}, Max: {{#expr:{{{BonusRate}}} * 4}}</dd>}}
		{{#if:{{{Description|}}}|<hr><dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
		{{#if:{{{StampMat|}}}|<hr><dt>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}
	</dl>
</div>