Jump to content

Template:Item Infobox: Difference between revisions

From The Petit Planet Wiki
Eleiyas (talk | contribs)
mNo edit summary
Updated to DRUID infobox
 
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Infobox|main
--><infobox>
|kind = Item
  <title source="name">
|sep = ,
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|title = <!--
  </title>
-->{{{title|<!--
  <image source="image">
-->{{#if:{{{number|}}}|<!--
  </image>
  --><span class="archive-number quality-{{lc:{{{quality|none}}}}}"><!--
  <group layout="horizontal">
    -->{{{number}}}<!--
    <data source="category">
  --></span><!--
      <label>Category</label>
-->}}<!--
      <format>[[{{{category}}}]]</format>
-->{{{name|{{PAGENAME}}}}}<!--
    </data>
-->}}}
    <data source="type">
|subtitle = {{{subtitle|}}}
      <label>Type</label>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
      <format>[[{{{type}}}]]</format>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
    </data>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
   </group>
|sections = Information, How to Obtain
  <data source="quality">
 
    <label>Quality</label>
|Information_collapsible = Yes
     <format>{{{quality}}}</format>
|Information = Category, Type, Quality, Size, Selling Price
   </data>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
  <data source="size">
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
    <label>Size</label>
|Quality = <!--
    <format>{{{size}}}</format>
-->{{#if:{{{quality|}}}|<!--
  </data>
   --><span class="quality-label quality-{{lc:{{{quality|none}}}}}"><!--
  <data source="sellPrice">
     -->{{{quality|None}}}<!--
    <label>Sell Price</label>
   --></span><!--
  </data>
-->}}
  <header>How to Obtain</header>
|Size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|&times;}}}}
    <data source="source"><label>Obtain</label></data>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|x={{{sell|{{{price}}}}}}}}}}
</infobox><!--
 
|How to Obtain_collapsible = Yes
|How to Obtain = Source
|Source = {{{source|}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Items]]<!--
-->[[Category:Items]]<!--
Line 38: Line 43:
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
Quality
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Item by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Item by Quality|{{#switch:{{{quality|}}}
   |Gray       = 0
   |Gray     = 0
   |Green       = 1
   |Green   = 1
   |Purple     = 2
   |Purple   = 2
   |Gold       = 3
   |Gold     = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--

Latest revision as of 13:21, 21 February 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

The documentation for this template is missing. Click here to create it.