Jump to content

Template:Item Infobox: Difference between revisions

From The Petit Planet Wiki
Eleiyas (talk | contribs)
Created page with "<includeonly><!-- --><infobox> <title source="name"> <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format> </title> <image source="image"> </image> <group layout="horizontal"> <data source="category"> <label>Category</label> <format>[[{{{category}}}]]</format> </data> <data source="type"> <label>Type</label> <format>[[{{{type}}}]]</format> </data> </group> <data sou..."
 
Updated to DRUID infobox
 
(2 intermediate revisions by one other user not shown)
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:Materials]]<!--
-->[[Category:Items]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Material|{{{number}}}]]|[[Category:Material]][[Category:Material Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Item|{{{number}}}]]|[[Category:Item]][[Category:Item Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Material]]}}<!--
-->{{#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:Material 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
   }}]]}}<!--
   }}]]}}<!--
   Set
   Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Material]]}}<!--
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Item]]}}<!--
   Size
   Size
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Material]]}}<!--
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Item]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

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.