Template:InfoItem: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 58: Line 58:
   |Rarity={{#switch:{{{rarity|}}}|Bronze=1|Silver=2|Golden|Gold=3|Platinum=4|Dementia=5|Void=6|Lustre=7|Dreadlo=8|#default=0}}
   |Rarity={{#switch:{{{rarity|}}}|Bronze=1|Silver=2|Golden|Gold=3|Platinum=4|Dementia=5|Void=6|Lustre=7|Dreadlo=8|#default=0}}
   |Tier={{{tier|Null}}}
   |Tier={{{tier|Null}}}
  |Source={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}}
   |Family={{{family|Null}}}
   |Family={{{family|Null}}}
   |SetName={{{setname|Null}}}
   |SetName={{{setname|Null}}}
Line 186: Line 185:
       <data name="Sources">
       <data name="Sources">
           <label>Source</label>
           <label>Source</label>
           <default>{{#var:Sources}}</default>
           <default>{{#invoke:SourcesQuery|PullSourcesFromList|item={{PAGENAME}}}}</default>
       </data>
       </data>
   </group>
   </group>

Revision as of 02:48, 22 March 2024

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)
|setname=Amarok (For any items that are part of a themed set and have a page made)
}}

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