Template:ItemDetails: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(20 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|Peanut}}}]]
|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
|-
{{#if:{{{level|}}}{{{class|}}}|{{#if:{{{level|}}}|! style="width: 50px;" {{!}}Level
{{!}}{{{level|1}}} }}
{{#if:{{{class|}}}|! style="width: 45px;" {{!}}Class
{{!}}{{#switch:{{{class}}}
|Warrior|warrior=[[File:Warrior Classicon.png|32px]]
|Mage|mage=[[File:Mage Classicon.png|32px]]
|Archer|archer=[[File:Archer Classicon.png|32px]]
|Beginner|beginner=[[File:Journeyman Classicon.png|32px]]
|All|all=[[File:Warrior Classicon.png|32px]][[File:Mage Classicon.png|32px]][[File:Archer Classicon.png|32px]][[File:Journeyman Classicon.png|32px]] }}
}}
{{!}}-}}
{{#ifexpr:{{{weaponpower|0}}} > 0 | !Weapon Power
{{!}} colspan="3" {{!}}{{{weaponpower}}}
{{!}}-}}
{{#ifexpr:{{{skillpower|0}}} > 0 | !Skill Power
{{!}} colspan="3" {{!}}{{{skillpower}}}
{{!}}-}}
{{#ifexpr:{{{str|0}}}{{{agi|0}}}{{{wis|0}}}{{{luk|0}}} > 0 | !Stats
{{!}} 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}}} }}
{{#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;" |<u>Sell Price</u><br />{{Coindisplay|{{{sellprice|9999999}}}}}
|-
| colspan="4" |{{#cargo_query:tables=VendorItems
|fields=Vendor,Stock
|where=Item LIKE "{{{item|}}}"
|named args=yes
|named args=yes
|default=
|default={{#cargo_query:tables=Cards
|intro=Vendor Sources<br /><div class="wikitable mw-collapsible mw-collapsed" style="width:100%;">
|fields=_pageName=Item, CONCAT(Category, " Card")=Type, Effect=Bonus, Bonus=BonusRate, TierAquirements=TierReq
|outro=</div>
|where=_pageName LIKE "{{{1|}}}"
|order by=Stock
|format=template
}}
|template=ItemDetails/tooltipbox
|}</includeonly>
|named args=yes
|default={{#cargo_query:tables=Stamps
  |fields=_pageName=Item, Type, Bonus, Material=StampMat
  |where=_pageName LIKE "{{{1|}}}"
  |format=template
  |template=ItemDetails/tooltipbox
  |named args=yes
  |default={{#cargo_query:tables=Fishing_Accessories
  |fields=_pageName=Item, GreenDepth, YellowDepth, RedDepth, PurpleDepth, ExpBonus, SpeedBonus=FishSpeed, PowerBonus=FishPower, Type
  |where=_pageName LIKE "{{{1|}}}"
  |format=template
  |template=ItemDetails/tooltipbox
  |named args=yes
  |default=
  }}
  }}
}}
}}</includeonly>

Latest revision as of 03:25, 22 March 2024