Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Furniture Infobox: Difference between revisions

Template page
Shirra (talk | contribs)
nvm just change it to furniture by number instead
Updated to DRUID infobox
 
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]]<!--
Line 57: Line 48:
   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
   }}]]}}<!--
   }}]]}}<!--