Jump to content

Template:Furniture Infobox: Difference between revisions

From The Petit Planet Wiki
Shirra (talk | contribs)
m Moving the size out of the horizontal group so later once we have the icons of the size, we can add the icon to it
Updated to DRUID infobox
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Infobox|main
--><infobox>
|kind = Furniture
  <title source="name">
|sep = ,
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|title = <!--
  </title>
-->{{{title|<!--
  <image source="image">
-->{{#if:{{{number|}}}|<!--
    <default>{{#if:{{{type|}}}|{{#switch:{{type|}}|Building Kit=Building Kit Icon.png|#default=}}}}</default>
  --><span class="archive-number quality-{{lc:{{{quality|none}}}}}"><!--
  </image>
    -->{{{number}}}<!--
  <group layout="horizontal">
  --></span><!--
    <data source="category">
-->}}<!--
      <label>Category</label>
-->{{{name|{{PAGENAME}}}}}<!--
      <format>[[{{{category}}}]]</format>
-->}}}
    </data>
|subtitle = {{{subtitle|}}}
    <data source="type">
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
      <label>Type</label>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
      <format>[[{{{type}}}]]</format>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
    </data>
|sections = Information, How to Obtain
   </group>
 
  <data source="quality">
|Information_collapsible = Yes
    <label>Quality</label>
|Information = Category, Type, Quality, Set, Size, MomentFolio Score, Color, Material, Selling Price
     <format>{{{quality}}}</format>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
   </data>
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
  <data source="set">
|Quality = <!--
    <label>Set</label>
-->{{#if:{{{quality|}}}|<!--
    <format>[[{{{set}}}]]</format>
   --><span class="quality-label quality-{{lc:{{{quality|none}}}}}"><!--
  </data>
     -->{{{quality|None}}}<!--
  <data source="size">
   --></span><!--
    <label>Size</label>
-->}}
    <format>{{{size}}}</format>
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
  </data>
|Size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|&times;}}}}
  <data source="score">
|MomentFolio Score = {{{score|}}}
    <label>MomentFolio Score</label>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|{item}|,&nbsp;}}}}
  </data>
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|{item}|,&nbsp;}}}}
  <group layout="horizontal">
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|x={{{sell|{{{price}}}}}}}}}}
    <data source="color">
 
      <label>Color</label>
|How to Obtain_collapsible = Yes
      <format>{{Array|{{{color}}}|;|{item}|,&nbsp;}}</format>
|How to Obtain = Source, Inspo Card
    </data>
|Source = {{{source|}}}
    <data source="material">
|Inspo Card = {{{inspo|}}}
      <label>Material</label>
}}<!--
      <format>{{Array|{{{material}}}|;|{item}|,&nbsp;}}</format>
 
    </data>
  </group>
  <data source="sellPrice">
    <label>Sell Price</label>
  </data>
  <header>How to Obtain</header>
    <data source="source"><label>Obtain</label></data>
    <data source="inspo"><label>Inspo Card</label></data>
</infobox><!--
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Furniture]]<!--
-->[[Category:Furniture]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Furniture|{{{number}}}]]|[[Category:Furniture]][[Category:Furniture Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Furniture by Number|{{{number}}}]]|[[Category:Furniture by Number]][[Category:Furniture Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}} Furniture]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}} Furniture]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Furniture]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Furniture]]}}<!--
Quality
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Furniture 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:19, 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.