Template:InfoItem: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
(Moved description from its own section to a caption under the image)
 
(2 intermediate revisions by one other user not shown)
Line 33: Line 33:
### Cargo Store ###
### Cargo Store ###
--><includeonly>{{#invoke:SlabStuff|SlabNumGrab|Item={{PAGENAME}}}}{{#cargo_store:_table=Items
--><includeonly>{{#invoke:SlabStuff|SlabNumGrab|Item={{PAGENAME}}}}{{#cargo_store:_table=Items
   |Image=[[File:{{PAGENAME}}.png]]
   |Image=[[File:{{{image|{{PAGENAME}}}}}.png]]
   |Type={{{type|Typeless}}}
   |Type={{{type|Typeless}}}
   |Level={{{level|0}}}
   |Level={{{level|0}}}
Line 86: Line 86:
                       File:{{#titleparts:{{PAGENAME}}}} Chat Box.png{{!}}Chat Message
                       File:{{#titleparts:{{PAGENAME}}}} Chat Box.png{{!}}Chat Message
                       }}
                       }}
                   |File:{{#titleparts:{{PAGENAME}}}}.png}}<!-- Using Titleparts fixes issues with apostrophes -->
                   |File:{{#titleparts:{{{image|{{PAGENAME}}}}}}}.png}}<!-- Using Titleparts fixes issues with apostrophes -->
               </default>
               </default>
              <caption source="description" />
           </image>
           </image>
       </section>
       </section>
   </panel>
   </panel>
  <group name="InfoSection">
      <header>Description</header>
      <data source="description" />
  </group>
   <group name="TrophySection">
   <group name="TrophySection">
       <header>Character Effect</header>
       <header>Character Effect</header>
Line 118: Line 115:
       </data>
       </data>
       <data source="skillpower">
       <data source="skillpower">
           <label>{{#ifeq:{{lc:{{{type|}}}}}|dna splicer|{{{skill|Skill}}}}} Power</label>
           <label>{{#ifeq:{{lc:{{{type|}}}}}|dna splicer|Splice|{{{skill|Skill}}}}} Power</label>
           <format>{{skillicon|{{{skill|{{{type}}}}}}}} {{{skillpower|}}}</format>
           <format>{{skillicon|{{{skill|{{{type}}}}}}}} {{{skillpower|}}}</format>
       </data>
       </data>

Latest revision as of 20:22, 12 June 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)
|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.