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}}}{{Coindisplay|{{{SellPrice|}}}}}&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:{{{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:{{{Description|}}}|&lt;hr&gt;&lt;dt&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&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:{{{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:{{{Description|}}}|&lt;hr&gt;&lt;dt&gt;Desc&lt;/dt&gt;&lt;dd class='wide'&gt;{{{Description}}}&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>

Revision as of 15:23, 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:{{{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:{{{Description|}}}|<hr><dt>Desc</dt><dd class='wide'>{{{Description}}}</dd>}}
	</dl>
</div>