Template:InfoItem: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 107: Line 107:
<dl>
<dl>
{{#switch:{{{type|}}}|Circle Obol|Square Obol|Hexagon Obol|Sparkle Obol=|#default={{#if: {{{sellprice|}}} |<dt>Sell Price</dt><dd>{{Coindisplay|{{{sellprice}}}}}</dd>}}}}
{{#switch:{{{type|}}}|Circle Obol|Square Obol|Hexagon Obol|Sparkle Obol=|#default={{#if: {{{sellprice|}}} |<dt>Sell Price</dt><dd>{{Coindisplay|{{{sellprice}}}}}</dd>}}}}
<dt>Type</dt><dd>{{{type|Uncategorized Item}}}</dd>
<dt>Type</dt><dd>[[{{{type|Uncategorized Item}}}]]</dd>
{{#if:{{{rarity|}}}|<dt>Rarity</dt><dd>{{{rarity|}}}</dd>}}
{{#if:{{{rarity|}}}|<dt>Rarity</dt><dd>{{{rarity|}}}</dd>}}
{{#if:{{{tier|}}}|<dt>Tier</dt><dd>{{{tier|}}}</dd>}}
{{#if:{{{tier|}}}|<dt>Tier</dt><dd>{{{tier|}}}</dd>}}
Line 128: Line 128:
{{#switch:{{{type}}}
{{#switch:{{{type}}}
|Leaf=[[Category:Leaves]]
|Leaf=[[Category:Leaves]]
|Shoes=[[Category:Shoes]]
|Trash=[[Category:Trash]][[Category:Misc Items]]
|Pants=[[Category:Pants]]
|Obol Fragment|Summon Item|Hunk Of Junk|Lava Letter=[[Category:Misc Items]]
|Fish=[[Category:Fish]]
|Time Candy=[[Category:Consumables]] [[Category:Character Consumables]] [[Category:Time Candies]]
|Trash=[[Category:Trash]] [[Category:Misc Items]]
|Exp Balloon|Reset Potion|Fragment|Teleport=[[Category:Consumables]] [[Category:Character Consumables]] [[Category:{{{type}}}s]]
|Refinery Salts=[[Category:Refinery Salts]]
|Time Candy=[[Category:Consumables]] [[Category:Character Consumables]][[Category:Time Candies]]
|Exp Balloon|Usable|Reset Potion|Fragment|Teleport=[[Category:Consumables]] [[Category:Character Consumables]] [[Category:{{{type}}}s]]
|Ticket|Boss Key|Gem|Office Pen|Talent Point=[[Category:Consumables]] [[Category:Account Consumables]] [[Category:{{{type}}}s]]
|Ticket|Boss Key|Gem|Office Pen|Talent Point=[[Category:Consumables]] [[Category:Account Consumables]] [[Category:{{{type}}}s]]
|Barrel|Box|Card Pack|Event Item|Hunk Of Junk|Lava Letter=[[Category:Misc Items]] [[Category:{{{type}}}s]]
|Barrel|Box|Card Pack|Event Item=[[Category:Misc Items]] [[Category:{{{type}}}s]]
|Obol Fragment|Summon Item=[[Category:Misc Items]] [[Category:{{{type}}}s]]
|Trophy=[[Category:Trophies]]  
|Trophy=[[Category:Trophies]]  
|#default= [[Category:{{{type}}}s]]
|#default=[[Category:{{{type}}}]]
}}
}}
{{#seo:
{{#seo:

Revision as of 13:20, 18 January 2023

This template defines the table "Items". View table.

Usage:
{{InfoItem
|type=example (needs to be included every time)
|class=example
|level=example
|skill=example
|skillpower=example (needs a defined skill to display correctly)
|weaponpower=example
|str=example
|agi=example
|wis=example
|luck=example
|reach=example (only for weapons)
|speed=example (only for weapons)
|misc=example
|defence=example
|upgrade=example
|quest=example (only for quest items)
|description=example
|notes=example 
|sellprice=example
|rarity=example (for obols)
|tier=example (for upgrade stones)
|source=example
|quest=example
|hascard=Yes/No (for ores, logs, fish and bugs)
}}

Don't have empty definitions, that will produce empty fields. If there is no description for example, don't include a description= at all.