Template:ItemDetails: Difference between revisions

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

Latest revision as of 03:25, 22 March 2024