Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Furniture Infobox: Difference between revisions

Template page
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
mNo edit summary
 
(53 intermediate revisions by 6 users 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>
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
  </title>
|title = <!--
  <image source="image">
-->{{{title|<!--
    <default>{{#if:{{{type|}}}|{{#switch:{{type|}}|Building Kit=Building Kit Icon.png|#default=}}}}</default>
    -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
  </image>
  -->{{{name|{{PAGENAME}}}}}<!--
  <group layout="horizontal">
-->}}}
    <data source="category">
|subtitle = {{{subtitle|}}}
      <label>Category</label>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
      <format>[[{{{category}}}]]</format>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
    </data>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
    <data source="type">
|sections = Checkbox, Information, How to Obtain
      <label>Type</label>
 
      <format>[[{{{type}}}]]</format>
|Checkbox_nolabel = 1
    </data>
|Checkbox = Collected
  </group>
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Furniture}}" data-pageid="{{PAGEID}}"></span>
  <data source="quality">
 
    <label>Quality</label>
|Information_collapsible = Yes
    <format>{{{quality}}}</format>
|Information = Category, Type, Quality, Set, Size, Indoor Area, Outdoor Area, Collection Score, Color, Material, Selling Price
  </data>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
  <data source="set">
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
    <label>Set</label>
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
    <format>[[{{{set}}}]]</format>
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
  </data>
|Size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|&times;}}}}
  <data source="size">
|Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|&times;}}}}
    <label>Size</label>
|Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|&times;}}}}
    <format>{{{size}}}</format>
|Collection Score = {{#switch:{{{quality|}}}<!--
  </data>
-->|Common|Gray    = +{{{score|5}}}<!--
   <data source="score">
-->|Uncommon|Green    = +{{{score|10}}}<!--
     <label>MomentFolio Score</label>
-->|Rare|Purple   = {{#if:{{{score|}}}|+{{{score|}}}}}<!--
  </data>
-->|Stellar|Gold     = +{{{score|20}}}<!--
  <group layout="horizontal">
-->|Miracle  = {{{score|30}}}<!--
    <data source="color">
-->|#default = <!--
      <label>Color</label>
-->}}
      <format>{{Array|{{{color}}}|;|{item}|,&nbsp;}}</format>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;}}}}
    </data>
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
    <data source="material">
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|,&nbsp;|template=1}}}}
      <label>Material</label>
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}}
      <format>{{Array|{{{material}}}|;|{item}|,&nbsp;}}</format>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
    </data>
 
  </group>
|How to Obtain_collapsible = Yes
  <data source="sellPrice">
|How to Obtain = Source, Inspo Card
     <label>Sell Price</label>
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
   </data>
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
  <header>How to Obtain</header>
|Inspo Card = {{{inspo|}}}
     <data source="source"><label>Obtain</label></data>
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
    <data source="inspo"><label>Inspo Card</label></data>
 
</infobox><!--
-->{{#invoke:Bucket|put|furniture
|+templateargs = name, number, quality, category, type, set, set_link, color, material, description, source, images
|page_id = {{PAGEID}}
|size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|×}}}}
|in_area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}}
|out_area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}}
|collection_score = {{#switch:{{{quality|}}}<!--
-->|Common|Gray     = {{{score|5}}}<!--
-->|Uncommon|Green    = {{{score|10}}}<!--
-->|Rare|Purple   = {{{score|}}}<!--
-->|Stellar|Gold     = {{{score|20}}}<!--
-->|Miracle  = {{{score|30}}}<!--
-->|#default = <!--
-->}}
|color-delimiter = ;
|material-delimiter = ;
|sell = {{{sell|{{{price|}}}}}}
|source-delimiter = ;
|inspo_source = {{{inspo|}}}
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|images-delimiter = ;
|removed = {{{removed|0}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
Set page display title if name is different from page name
The namespace check is necessary since the magic words need additional masking.
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#if:{{{name|}}}|<!--
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!--
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!--
-->}}<!--
-->}}<!--
-->[[Category:Furniture]]<!--
-->[[Category:Furniture]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Furniture|{{{number}}}]]|[[Category:Furniture]][[Category:Furniture Missing Number]]}}<!--
-->{{#if:{{{id|}}}|[[Category:Furniture by ID|{{{id}}}]][[Category:Furniture by Quality and ID|{{#switch:{{{quality|}}}
  |Common|Gray    = 5
  |Uncommon|Green = 4
  |Rare|Purple    = 3
  |Stellar|Gold  = 2
  |Miracle        = 1
  |#default      = 0
  }} - {{{id}}}]]|[[Category:Furniture by ID]][[Category:Furniture by Quality and ID]][[Category:Furniture Missing ID]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}} Furniture]]}}<!--
-->{{#if:{{{category|}}}|{{#ifeq:{{{category}}}|Basic Furniture|[[Category:{{{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|Common|Uncommon|Rare|Stellar|Miracle=[[Category:{{{quality}}} Quality]]|[[Category:Furniture Missing Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}}
   |Gray       = 0
   |Common|Gray   = 0
   |Green       = 1
   |Uncommon|Green = 1
   |Purple     = 2
   |Rare|Purple   = 2
   |Gold        = 3
   |Stellar|Gold   = 3
   |#default = 4
  |Miracle       = 4
   }}]]}}<!--
   |#default       = 5
   }}]]|[[Category:Furniture by Quality]]}}<!--
   Set
   Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Furniture]]}}<!--
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Furniture]]}}<!--
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Furniture}}}}<!--
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Furniture}}}}<!--
   Size
   Size
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Furniture]]}}<!--
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Furniture]]}}<!--
-->{{#if:{{{inspo|}}}|[[Category:Pages Using Obsolete Parameters]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>