Template:InfoItem: Difference between revisions

From IdleOn MMO Wiki
No edit summary
No edit summary
Line 18: Line 18:
   |MISC=String
   |MISC=String
   |MISC2=String
   |MISC2=String
  |MISC3=String
   |Reach=Integer
   |Reach=Integer
   |Upgrade=Integer
   |Upgrade=Integer
Line 48: Line 49:
   |MISC={{{misc|Null}}}
   |MISC={{{misc|Null}}}
   |MISC2={{{misc2|Null}}}
   |MISC2={{{misc2|Null}}}
  |MISC3={{{misc3|Null}}}
   |Reach={{{reach|0}}}
   |Reach={{{reach|0}}}
   |Upgrade={{{upgrade|0}}}
   |Upgrade={{{upgrade|0}}}
Line 90: Line 92:
{{#if:{{{misc|}}}|<dt>Misc</dt><dd>{{{misc|}}}</dd>}}
{{#if:{{{misc|}}}|<dt>Misc</dt><dd>{{{misc|}}}</dd>}}
{{#if:{{{misc2|}}}|<dt>Misc2</dt><dd>{{{misc2|}}}</dd>}}
{{#if:{{{misc2|}}}|<dt>Misc2</dt><dd>{{{misc2|}}}</dd>}}
{{#if:{{{misc3|}}}|<dt>Misc3</dt><dd>{{{misc3|}}}</dd>}}
{{#if:{{{defence|}}}|<dt>Defence</dt><dd>{{{defence|}}}</dd>}}
{{#if:{{{defence|}}}|<dt>Defence</dt><dd>{{{defence|}}}</dd>}}
{{#if:{{{upgrade|}}}|<dt>Upgrade slots</dt><dd>{{{upgrade|}}}</dd>}}
{{#if:{{{upgrade|}}}|<dt>Upgrade slots</dt><dd>{{{upgrade|}}}</dd>}}

Revision as of 14:47, 31 August 2022

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.