Template:ItemDetails/tooltipbox: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
mNo edit summary
 
(48 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><span class="Infobox Detailbox"><span class="Header">{{{Item|Peanut}}}</span><span class="HeaderImage">[[File:{{{Item|Peanut}}}.png|40px|link=]]</span>{{#if:{{{SellPrice|}}}|<span class="SellPrice">{{Coindisplay|{{{SellPrice|1}}}}}</span>}}<span class="SubHeader">{{{Type|Details}}}</span><span class="dl">{{#ifexpr:{{{Level|0}}}>0|<span class="dt">Level</span><span class="dd">{{{Level|1}}}</span>}}{{#if:{{{Class|}}}|<span class="dt">Class</span><span class="dd">{{#switch:{{{Class}}}|Warrior|warrior=[[File:Warrior Classicon.png|24px|link=]]|Mage|mage=[[File:Mage Classicon.png|24px|link=]]|Archer|archer=[[File:Archer Classicon.png|24px|link=]]|Beginner|beginner=[[File:Journeyman Classicon.png|24px|link=]]|All|all=All}}</span>}}{{#ifexpr:{{{WeaponPower|0}}}>0|<span class="dt">W.Power</span><span class="dd">{{{WeaponPower}}}</span>}}{{#ifexpr:{{{SkillPower|0}}}>0|<span class="dt">S.Power</span><span class="dd">{{{SkillPower}}}</span>}}{{#ifexpr:{{{UseSpeed|0}}}>0|<span class="dt">Speed</span><span class="dd">{{{UseSpeed}}}</span>}}{{#ifexpr:{{{STR|0}}}{{{AGI|0}}}{{{WIS|0}}}{{{LUCK|0}}} > 0 |<span class="clearfix"></span><span class="dt">Stats</span><span class="dd wide">{{#ifexpr:{{{STR|0}}}>0|[[File:STR Staticon.png|24px|link=]]x{{{STR}}}}} {{#ifexpr:{{{AGI|0}}}>0|[[File:AGI Staticon.png|24px|link=]]x{{{AGI}}}}} {{#ifexpr:{{{WIS|0}}}>0|[[File:WIS Staticon.png|24px|link=]]x{{{WIS}}}}} {{#ifexpr:{{{LUCK|0}}}>0|[[File:LUK Staticon.png|24px|link=]]x{{{LUCK}}}}}</span><span class="clearfix"></span>}}{{#ifexpr:{{{Defence|0}}}>0|<span class="dt">Def</span><span class="dd">{{{Defence}}}</span>}}{{#ifexpr:{{{Reach|0}}}>0|<span class="dt">Reach</span><span class="dd">{{{Reach}}}</span>}}{{#ifexpr:{{{Upgrade|0}}}>0|<span class="dt">Slots</span><span class="dd">{{{Upgrade}}}</span>}}{{#if:{{{MISC|}}}|<span class="clearfix"></span><span class="dt">Misc</span><span class="dd wide">{{{MISC}}}</span>}}{{#if:{{{MISC2|}}}|<span class="clearfix"></span><span class="dt">Misc2</span><span class="dd wide">{{{MISC2}}}</span>}}{{#if:{{{Bonus|}}}|<span class="clearfix"></span><span class="dt">Bonus</span><span class="dd wide">{{{Bonus}}}</span>}}{{#if:{{{Description|}}}|<span class="clearfix"></span><span class="dt">Desc</span><span class="dd wide">{{{Description}}}</span>}}</span></span></includeonly>
<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;{{#ifexpr:{{{Level|0}}}&gt;0|&lt;dt&gt;Level&lt;/dt&gt;&lt;dd&gt;{{{Level}}}&lt;/dd&gt;}}{{#ifeq:{{{Class|Null}}}|Null||&lt;dt&gt;Class&lt;/dt&gt;&lt;dd&gt;{{{Class}}}&lt;/dd&gt;}}{{#ifexpr:{{{WeaponPower|0}}}&gt;0|&lt;dt&gt;W.Power&lt;/dt&gt;&lt;dd&gt;{{{WeaponPower}}}&lt;/dd&gt;}}{{#ifexpr:{{{SkillPower|0}}}&gt;0|&lt;dt&gt;S.Power&lt;/dt&gt;&lt;dd&gt;{{{SkillPower}}}&lt;/dd&gt;}}{{#ifexpr:{{{UseSpeed|0}}}&gt;0|&lt;dt&gt;Speed&lt;/dt&gt;&lt;dd&gt;{{{UseSpeed}}}&nbsp;({{#switch:{{{UseSpeed|}}}|0=Immobile|1=Molasses|2=Sluggish|3=Slower|4=Slow|5=Medium|6=Quick|7=Fast|8=Faster|9=Turbo|10=Supersonic}})&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;}}{{#ifexpr:{{{Defence|0}}}&gt;0|&lt;dt&gt;Def&lt;/dt&gt;&lt;dd&gt;{{{Defence}}}&lt;/dd&gt;}}{{#ifexpr:{{{FishSpeed|0}}}&gt;0|&lt;dt&gt;Reel Spd&lt;/dt&gt;&lt;dd&gt;{{{FishSpeed}}}&lt;/dd&gt;}}{{#ifexpr:{{{FishPower|0}}}&gt;0|&lt;dt&gt;Fish Pow&lt;/dt&gt;&lt;dd&gt;{{{FishPower}}}&lt;/dd&gt;}}{{#ifexpr:{{{GreenDepth|0}}}&gt;0|&lt;dt&gt;G.Depth&lt;/dt&gt;&lt;dd&gt;{{{GreenDepth}}}&lt;/dd&gt;}}{{#ifexpr:{{{YellowDepth|0}}}&gt;0|&lt;dt&gt;Y.Depth&lt;/dt&gt;&lt;dd&gt;{{{YellowDepth}}}&lt;/dd&gt;}}{{#ifexpr:{{{RedDepth|0}}}&gt;0|&lt;dt&gt;R.Depth&lt;/dt&gt;&lt;dd&gt;{{{RedDepth}}}&lt;/dd&gt;}}{{#ifexpr:{{{PurpleDepth|0}}}&gt;0|&lt;dt&gt;P.Depth&lt;/dt&gt;&lt;dd&gt;{{{PurpleDepth}}}&lt;/dd&gt;}}{{#ifexpr:{{{ExpBonus|0}}}&gt;0|&lt;dt&gt;Fish EXP&lt;/dt&gt;&lt;dd&gt;{{{ExpBonus}}}&lt;/dd&gt;}}{{#ifexpr:{{{Reach|0}}}&gt;0|&lt;dt&gt;Reach&lt;/dt&gt;&lt;dd&gt;{{{Reach}}}&lt;/dd&gt;}}{{#ifexpr:{{{Upgrade|0}}}&gt;0|&lt;dt&gt;Slots&lt;/dt&gt;&lt;dd&gt;{{{Upgrade}}}&lt;/dd&gt;}}{{#ifeq:{{{MISC|Null}}}|Null||&lt;dt class='start'&gt;Misc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC}}}&lt;/dd&gt;}}{{#ifeq:{{{MISC2|Null}}}|Null||&lt;dt class='start'&gt;Misc2&lt;/dt&gt;&lt;dd class='wide'&gt;{{{MISC2}}}&lt;/dd&gt;}}{{#ifeq:{{{Bonus|Null}}}|Null||&lt;dt class='start'&gt;Bonus&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Bonus}}}&lt;/dd&gt;}}{{#ifeq:{{{BonusRate|0}}}|0||&lt;dt class='start'&gt;Value&lt;/dt&gt;&lt;dd class='wide'&gt;&lt;b&gt;{{{BonusRate}}}&lt;/b&gt;/&lt;b class='starrank1'&gt;{{#expr:{{{BonusRate}}}*2}}&lt;/b&gt;/&lt;b class='starrank2'&gt;{{#expr:{{{BonusRate}}}*3}}&lt;/b&gt;/&lt;b class='starrank3'&gt;{{#expr:{{{BonusRate}}}*4}}&lt;/b&gt;/&lt;b class='starrank4'&gt;{{#expr:{{{BonusRate}}}*5}}&lt;/b&gt;/&lt;b class='starrank5'&gt;{{#expr:{{{BonusRate}}}*6}}&lt;/b&gt;&lt;/dd&gt;}}{{#ifeq:{{{TierReq|0}}}|0||&lt;dt class='start'&gt;Cards&nbsp;Req&lt;/dt&gt;&lt;dd class='wide'&gt;&lt;b class='starrank1'&gt;{{InfoCard/TierReqForm|{{{TierReq}}}|0|{{{Item}}}}}&lt;/b&gt;/&lt;b class='starrank2'&gt;{{InfoCard/TierReqForm|{{{TierReq}}}|1|{{{Item}}}}}&lt;/b&gt;/&lt;b class='starrank3'&gt;{{InfoCard/TierReqForm|{{{TierReq}}}|2|{{{Item}}}}}&lt;/b&gt;/&lt;b class='starrank4'&gt;{{InfoCard/TierReqForm|{{{TierReq}}}|3|{{{Item}}}}}&lt;/b&gt;/&lt;b class='starrank5'&gt;{{InfoCard/TierReqForm|{{{TierReq}}}|4|{{{Item}}}}}&lt;/b&gt;&lt;/dd&gt;}}{{#ifeq:{{{Description|Null}}}|Null||&lt;dt class='start'&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&lt;/dd&gt;}}{{#ifeq:{{{StampMat|Null}}}|Null||&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:
<pre><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|}}}|0||<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}}}{{nbsp}}({{#switch:{{{UseSpeed|}}}|0=Immobile|1=Molasses|2=Sluggish|3=Slower|4=Slow|5=Medium|6=Quick|7=Fast|8=Faster|9=Turbo|10=Supersonic}})</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>}}
{{#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 class='start'>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}}
{{#ifeq:{{{BonusRate|0}}}|0||<dt class='start'>Value:</dt><dd class='wide'><b>{{{BonusRate}}}</b>{{nbsp}}<b class='starrank1'>{{#expr:{{{BonusRate}}}*2}}</b>{{nbsp}}<b class='starrank2'>{{#expr:{{{BonusRate}}}*3}}</b>{{nbsp}}<b class='starrank3'>{{#expr:{{{BonusRate}}}*4}}</b>{{nbsp}}<b class='starrank4'>{{#expr:{{{BonusRate}}}*5}}</b>{{nbsp}}<b class='starrank5'>{{#expr:{{{BonusRate}}}*6}}</b></dd>}}
        {{#ifeq:{{{TierReq|0}}}|0||<dt class='start'>Cards Req:</dt><dd class='wide'><b class='starrank1'>{{InfoCard/TierReqForm|{{{TierReq}}}|0|{{{Item}}}}}</b>{{nbsp}}<b class='starrank2'>{{InfoCard/TierReqForm|{{{TierReq}}}|1|{{{Item}}}}}</b>{{nbsp}}<b class='starrank3'>{{InfoCard/TierReqForm|{{{TierReq}}}|2|{{{Item}}}}}</b>{{nbsp}}<b class='starrank4'>{{InfoCard/TierReqForm|{{{TierReq}}}|3|{{{Item}}}}}</b>{{nbsp}}<b class='starrank5'>{{InfoCard/TierReqForm|{{{TierReq}}}|4|{{{Item}}}}}</b></dd>}}
{{#ifeq:{{{Description|}}}|Null||<dt class='start'>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
{{#ifeq:{{{StampMat|}}}|Null||<dt class='start'>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}
</dl>
</div></pre></noinclude>

Latest revision as of 09:08, 13 December 2023

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|}}}|0||<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}}}{{nbsp}}({{#switch:{{{UseSpeed|}}}|0=Immobile|1=Molasses|2=Sluggish|3=Slower|4=Slow|5=Medium|6=Quick|7=Fast|8=Faster|9=Turbo|10=Supersonic}})</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>}}
		{{#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 class='start'>Bonus</dt><dd class='wide'>{{{Bonus}}}</dd>}}
		{{#ifeq:{{{BonusRate|0}}}|0||<dt class='start'>Value:</dt><dd class='wide'><b>{{{BonusRate}}}</b>{{nbsp}}<b class='starrank1'>{{#expr:{{{BonusRate}}}*2}}</b>{{nbsp}}<b class='starrank2'>{{#expr:{{{BonusRate}}}*3}}</b>{{nbsp}}<b class='starrank3'>{{#expr:{{{BonusRate}}}*4}}</b>{{nbsp}}<b class='starrank4'>{{#expr:{{{BonusRate}}}*5}}</b>{{nbsp}}<b class='starrank5'>{{#expr:{{{BonusRate}}}*6}}</b></dd>}}
        {{#ifeq:{{{TierReq|0}}}|0||<dt class='start'>Cards Req:</dt><dd class='wide'><b class='starrank1'>{{InfoCard/TierReqForm|{{{TierReq}}}|0|{{{Item}}}}}</b>{{nbsp}}<b class='starrank2'>{{InfoCard/TierReqForm|{{{TierReq}}}|1|{{{Item}}}}}</b>{{nbsp}}<b class='starrank3'>{{InfoCard/TierReqForm|{{{TierReq}}}|2|{{{Item}}}}}</b>{{nbsp}}<b class='starrank4'>{{InfoCard/TierReqForm|{{{TierReq}}}|3|{{{Item}}}}}</b>{{nbsp}}<b class='starrank5'>{{InfoCard/TierReqForm|{{{TierReq}}}|4|{{{Item}}}}}</b></dd>}}
		{{#ifeq:{{{Description|}}}|Null||<dt class='start'>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
		{{#ifeq:{{{StampMat|}}}|Null||<dt class='start'>Uses</dt><dd class='wide'>{{{StampMat}}}</dd>}}
	</dl>
</div>