Template:ItemDetails: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
m (Kiokurashi moved page Template:ItemDetailBox to Template:ItemDetails)
imported>Kiokurashi
No edit summary
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, Type, Level, Class, WeaponPower, SkillPower, UseSpeed, Bonus, STR, AGI, WIS, LUCK, MISC, Reach, Upgrade, Defence, Skill, SkillDiscription, Quest, Description, SellPrice, Rarity, Tier, Source, HasCard, Notes, Family
|-
|where=Item LIKE "{{{1|}}}"
| colspan="4" style="text-align:center;" |[[File:{{{item|Peanut}}}.png|40px]]
|-
! 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=
|intro=Vendor Sources<br /><div class="wikitable mw-collapsible mw-collapsed" style="width:100%;">
}}</includeonly>
|outro=</div>
|order by=Stock
}}
|}</includeonly>

Revision as of 04:54, 24 July 2021