Template:ItemDetails: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(25 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="4" 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="4" style="text-align:center;" |[[File:{{{item|Peanut}}}.png|40px]]
|format=template
|-
|template=ItemDetails/tooltipbox
! colspan="4" 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: 45px;" {{!}}Class
|format=template
{{!}}{{#switch:{{{class}}}
|template=ItemDetails/tooltipbox
|Warrior|warrior=[[File:Warrior Classicon.png|32px]]
|named args=yes
|Mage|mage=[[File:Mage Classicon.png|32px]]
|default={{#cargo_query:tables=Stamps
|Archer|archer=[[File:Archer Classicon.png|32px]]
  |fields=_pageName=Item, Type, Bonus, Material=StampMat
|Beginner|beginner=[[File:Journeyman Classicon.png|32px]]
  |where=_pageName LIKE "{{{1|}}}"
|All|all=[[File:Warrior Classicon.png|32px]][[File:Mage Classicon.png|32px]][[File:Archer Classicon.png|32px]][[File:Journeyman Classicon.png|32px]] }}
  |format=template
}}
  |template=ItemDetails/tooltipbox
{{!}}-}}
  |named args=yes
{{#ifexpr:{{{weaponpower|0}}} > 0 | !Weapon Power
  |default={{#cargo_query:tables=Fishing_Accessories
{{!}} colspan="3" {{!}}{{{weaponpower}}}
  |fields=_pageName=Item, GreenDepth, YellowDepth, RedDepth, PurpleDepth, ExpBonus, SpeedBonus=FishSpeed, PowerBonus=FishPower, Type
{{!}}-}}
  |where=_pageName LIKE "{{{1|}}}"
{{#ifexpr:{{{skillpower|0}}} > 0 | !Skill Power
  |format=template
{{!}} colspan="3" {{!}}{{{skillpower}}}
  |template=ItemDetails/tooltipbox
{{!}}-}}
  |named args=yes
{{#ifexpr:{{{str|0}}}{{{agi|0}}}{{{wis|0}}}{{{luk|0}}} > 0 | !Stats
  |default=
{{!}} colspan="3" {{!}}{{#ifexpr:{{{str|0}}}>0|[[File:STR Staticon.png|32px]]x{{{str}}}}} {{#ifexpr:{{{agi|0}}}>0|[[File:AGI Staticon.png|32px]]x{{{agi}}}}} {{#ifexpr:{{{wis|0}}}>0|[[File:WIS Staticon.png|32px]]x{{{wis}}}}} {{#ifexpr:{{{luk|0}}}>0|[[File:LUK Staticon.png|32px]]x{{{luk}}}}}
  }}
{{!}}-}}
  }}
{{#ifexpr:{{{defence|0}}}{{{upgrade|0}}}>0|{{#if:{{{defence|0}}}>0|! style="width: 50px;" {{!}}Defence
}}
{{!}}{{{defence}}} }}
}}</includeonly>
{{#if:{{{upgrade|0}}}>0|! style="width: 50px;" {{!}}Upgrade
{{!}}{{{upgrade}}} }}
{{!}}-}}
{{#ifexpr:{{{speed|0}}}{{{reach|0}}}>0|{{#if:{{{speed|0}}}>0|! style="width: 50px;" {{!}}Speed
{{!}}{{{speed}}} }}
{{#if:{{{reach|0}}}>0|! style="width: 50px;" {{!}}Reach
{{!}}{{{reach}}} }}
{{!}}-}}
{{#if:{{{misc|}}} | !MISC
{{!}} colspan="3" {{!}}{{{misc}}}
{{!}}-}}
{{#if:{{{bonus|}}} | !Special Bonus
{{!}} colspan="3" {{!}}{{{bonus}}}
{{!}}-}}
| colspan="4" style="text-align:right;" |{{Coindisplay|{{{sellprice|9999999}}}}}
|}</includeonly>

Latest revision as of 03:25, 22 March 2024