Jump to content

Template:Furniture Infobox: Difference between revisions

From The Petit Planet Wiki
Shirra (talk | contribs)
No edit summary
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
 
(21 intermediate revisions by 5 users not shown)
Line 4: Line 4:
   <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
   <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
   </title>
   </title>
   <image source="image"/>
   <image source="image">
   <data source="type">
    <default>{{#if:{{{type|}}}|{{#switch:{{type|}}|Building Kit=Building Kit Icon.png|#default=}}}}</default>
    <label>Type</label>
   </image>
    <format>[[{{{type}}}]]</format>
  <group layout="horizontal">
   </data>
    <data source="category">
      <label>Category</label>
      <format>[[{{{category}}}]]</format>
    </data>
    <data source="type">
      <label>Type</label>
      <format>[[{{{type}}}]]</format>
    </data>
   </group>
   <data source="quality">
   <data source="quality">
     <label>Quality</label>
     <label>Quality</label>
     <format>{{{quality}}}</format>
     <format>{{{quality}}}</format>
   </data>
   </data>
   <data source="theme">
   <data source="set">
     <label>Theme</label>
     <label>Set</label>
     <format>[[{{{theme}}}]]</format>
     <format>[[{{{set}}}]]</format>
   </data>
   </data>
   <data source="size">
   <data source="size">
    <label>Size</label>
    <label>Size</label>
    <format>{{{size}}}</format>
   </data>
   </data>
   <data source="score">
   <data source="score">
     <label>MomentFolio Score</label>
     <label>MomentFolio Score</label>
  </data>
  <group layout="horizontal">
    <data source="color">
      <label>Color</label>
      <format>{{Array|{{{color}}}|;|{item}|,&nbsp;}}</format>
    </data>
    <data source="material">
      <label>Material</label>
      <format>{{Array|{{{material}}}|;|{item}|,&nbsp;}}</format>
    </data>
  </group>
  <data source="sellPrice">
    <label>Sell Price</label>
   </data>
   </data>
   <header>How to Obtain</header>
   <header>How to Obtain</header>
Line 28: Line 50:
</infobox><!--
</infobox><!--
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Furnitures]]<!--
-->[[Category:Furniture]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Furniture|{{{number}}}]]|[[Category:Furniture]][[Category:Furniture Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Furniture|{{{number}}}]]|[[Category:Furniture]][[Category:Furniture Missing Number]]}}<!--
  Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}} Furniture]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Furnitures]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Furniture]]}}<!--
   Theme
Quality
-->{{#if:{{{theme|}}}|[[Category:{{{theme}}}]]}}<!--
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
  {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}}
  |Gray        = 0
  |Green      = 1
  |Purple      = 2
  |Gold        = 3
  |#default = 4
  }}]]}}<!--
   Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Furniture]]}}<!--
   Size
   Size
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Furnitures]]}}<!--
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Furniture]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

Latest revision as of 11:04, 17 November 2025

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.