Template:ItemDetails: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(47 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| class="Infobox"
<includeonly>{{#cargo_query:tables=Items
! colspan="2" |{{{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" |[[File:{{{item|Peanut}}}.png|40px]]
|format=template
|-
|template=ItemDetails/tooltipbox
! colspan="2" |Stats
|named args=yes
|-
|default={{#cargo_query:tables=Cards
! style="width: 50px;" |Level ||{{{level|1}}}
|fields=_pageName=Item, CONCAT(Category, " Card")=Type, Effect=Bonus, Bonus=BonusRate, TierAquirements=TierReq
|-
|where=_pageName LIKE "{{{1|}}}"
{{#if:{{{class|}}} | !Class {{!}}{{!}}{{{class}}}
|format=template
{{!}}-}}
|template=ItemDetails/tooltipbox
{{#ifexpr:{{{weaponpower|}}} > 0 | !Weapon Power {{!}}{{!}}{{{weaponpower}}}
|named args=yes
{{!}}-}}
|default={{#cargo_query:tables=Stamps
{{#ifexpr:{{{skillpower|}}} > 0 | !Skill Power {{!}}{{!}}{{{skillpower}}}
  |fields=_pageName=Item, Type, Bonus, Material=StampMat
{{!}}-}}
  |where=_pageName LIKE "{{{1|}}}"
{{#if:{{{usespeed|}}} | !Speed {{!}}{{!}}{{{speed}}}
  |format=template
{{!}}-}}
  |template=ItemDetails/tooltipbox
{{#ifexpr:{{{str|}}} > 0 | !STR {{!}}{{!}}{{{str}}}
  |named args=yes
{{!}}-}}
  |default={{#cargo_query:tables=Fishing_Accessories
{{#ifexpr:{{{agi|}}} > 0 | !AGI {{!}}{{!}}{{{agi}}}
  |fields=_pageName=Item, GreenDepth, YellowDepth, RedDepth, PurpleDepth, ExpBonus, SpeedBonus=FishSpeed, PowerBonus=FishPower, Type
{{!}}-}}
  |where=_pageName LIKE "{{{1|}}}"
{{#ifexpr:{{{wis|}}} > 0 | !WIS {{!}}{{!}}{{{wis}}}
  |format=template
{{!}}-}}
  |template=ItemDetails/tooltipbox
{{#ifexpr:{{{luk|}}} > 0 | !LUK {{!}}{{!}}{{{luk}}}
  |named args=yes
{{!}}-}}
  |default=
{{#ifexpr:{{{defence|}}} > 0 | !Defence {{!}}{{!}}{{{defence}}}
  }}
{{!}}-}}
  }}
{{#ifexpr:{{{reach|}}} > 0 | !Reach {{!}}{{!}}{{{reach}}}
}}
{{!}}-}}
}}</includeonly>
{{#if:{{{misc|}}} | !MISC {{!}}{{!}}{{{misc}}}
{{!}}-}}
{{#if:{{{bonus|}}} | !Special Bonus {{!}}{{!}}{{{bonus}}}
{{!}}-}}
{{#ifexpr:{{{upgrade|}}} > 0 | !Upgrades {{!}}{{!}}{{{upgrade}}}
{{!}}-}}
|}</includeonly>

Latest revision as of 03:25, 22 March 2024