Template:ItemDetails: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(39 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| class="Infobox" style="width:250px;float:left;"
<includeonly>{{#cargo_query:tables=Items
! colspan="2" style="text-align:center;" |{{{item|Item Name}}}
|fields=_pageName=Item, Image=Image, Type=Type, Level=Level, Class=Class, WeaponPower=WeaponPower, SkillPower=SkillPower, UseSpeed=UseSpeed, Bonus=Bonus, STR=STR, AGI=AGI, WIS=WIS, LUCK=LUCK, MISC=MISC, MISC2=MISC2, Reach=Reach, Upgrade=Upgrade, Defence=Defence, Skill=Skill, Quest=Quest, Description=Description, Rarity=Rarity, Tier=Tier, Family=Family
|-
|where=_pageName LIKE "{{{1|}}}"
| colspan="2" style="text-align:center;" |[[File:{{{item|Peanut}}}.png|40px]]
|format=template
|-
|template=ItemDetails/tooltipbox
! colspan="2" style="text-align:center;" |Details
|named args=yes
|-
|default={{#cargo_query:tables=Cards
{{#if:{{{level|}}}{{{class|}}}|{{#if:{{{level|}}}|! style="width: 50px;" {{!}}Level
|fields=_pageName=Item, CONCAT(Category, " Card")=Type, Effect=Bonus, Bonus=BonusRate, TierAquirements=TierReq
{{!}}{{{level|1}}} }}
|where=_pageName LIKE "{{{1|}}}"
{{#if:{{{class|}}}|! style="width: 50px;" {{!}}Class
|format=template
{{!}}{{{class}}} }}
|template=ItemDetails/tooltipbox
{{!}}-}}
|named args=yes
{{#ifexpr:{{{weaponpower|0}}} > 0 | !Weapon Power
|default={{#cargo_query:tables=Stamps
{{!}}{{{weaponpower}}}
  |fields=_pageName=Item, Type, Bonus, Material=StampMat
{{!}}-}}
  |where=_pageName LIKE "{{{1|}}}"
{{#ifexpr:{{{skillpower|0}}} > 0 | !Skill Power
  |format=template
{{!}}{{{skillpower}}}
  |template=ItemDetails/tooltipbox
{{!}}-}}
  |named args=yes
{{#if:{{{usespeed|}}} | !Speed
  |default={{#cargo_query:tables=Fishing_Accessories
{{!}}{{{usespeed}}}
  |fields=_pageName=Item, GreenDepth, YellowDepth, RedDepth, PurpleDepth, ExpBonus, SpeedBonus=FishSpeed, PowerBonus=FishPower, Type
{{!}}-}}
  |where=_pageName LIKE "{{{1|}}}"
{{#ifexpr:{{{str|0}}}{{{agi|0}}}{{{wis|0}}}{{{luk|0}}} > 0 | !Stats
  |format=template
{{!}}{{#ifexpr:{{{str|0}}}>0|STR: {{{str}}}}} {{#ifexpr:{{{agi|0}}}>0|AGI: {{{agi}}}}} {{#ifexpr:{{{wis|0}}}>0|WIS: {{{wis}}}}} {{#ifexpr:{{{luk|0}}}>0|LUK: {{{luk}}}}}
  |template=ItemDetails/tooltipbox
{{!}}-}}
  |named args=yes
{{#ifexpr:{{{defence|0}}}{{{upgrade|0}}}>0|{{#if:{{{defence|0}}}>0|! style="width: 50px;" {{!}}Defence
  |default=
{{!}}{{{defence}}} }}
  }}
{{#if:{{{upgrade|0}}}>0|! style="width: 50px;" {{!}}Upgrade
  }}
{{!}}{{{upgrade}}} }}
}}
{{!}}-}}
}}</includeonly>
{{#ifexpr:{{{reach|0}}} > 0 | !Reach
{{!}}{{{reach}}}
{{!}}-}}
{{#if:{{{misc|}}} | !MISC
{{!}}{{{misc}}}
{{!}}-}}
{{#if:{{{bonus|}}} | !Special Bonus
{{!}}{{{bonus}}}
{{!}}-}}
| colspan="2" style="text-align:right;" |{{Coindisplay|{{{sellprice|9999999}}}}}
|}</includeonly>

Latest revision as of 03:25, 22 March 2024