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.

Editing Template:Furniture Infobox

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|main
<includeonly><!--
|kind = Furniture
--><infobox>
|sep = ,
  <title source="name">
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|title = <!--
  </title>
-->{{{title|<!--
  <image source="image">
    -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
    <default>{{#if:{{{type|}}}|{{#switch:{{type|}}|Building Kit=Building Kit Icon.png|#default=}}}}</default>
  -->{{{name|{{PAGENAME}}}}}<!--
  </image>
-->}}}
  <group layout="horizontal">
|subtitle = {{{subtitle|}}}
    <data source="category">
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
      <label>Category</label>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
      <format>[[{{{category}}}]]</format>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
    </data>
|sections = Checkbox, Information, How to Obtain
    <data source="type">
 
      <label>Type</label>
|Checkbox_nolabel = 1
      <format>[[{{{type}}}]]</format>
|Checkbox = Collected
    </data>
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Furniture}}" data-pageid="{{PAGEID}}"></span>
  </group>
 
  <data source="quality">
|Information_collapsible = Yes
    <label>Quality</label>
|Information = Category, Type, Quality, Set, Size, Indoor Area, Outdoor Area, Collection Score, Color, Material, Selling Price
    <format>{{{quality}}}</format>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
  </data>
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
  <data source="set">
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
    <label>Set</label>
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
    <format>[[{{{set}}}]]</format>
|Size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|&times;}}}}
  </data>
|Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|&times;}}}}
  <data source="score">
|Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|&times;}}}}
    <label>MomentFolio Score</label>
|Collection Score = {{#switch:{{{quality|}}}<!--
  </data>
-->|Common|Gray    = +{{{score|5}}}<!--
   <group layout="horizontal">
-->|Uncommon|Green    = +{{{score|10}}}<!--
     <data source="color">
-->|Rare|Purple   = {{#if:{{{score|}}}|+{{{score|}}}}}<!--
      <label>Color</label>
-->|Stellar|Gold     = +{{{score|20}}}<!--
      <format>{{Array|{{{color}}}|;|{item}{newline} }}</format>
-->|Miracle  = {{{score|30}}}<!--
    </data>
-->|#default = <!--
    <data source="material">
-->}}
      <label>Material</label>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;}}}}
      <format>{{Array|{{{material}}}|;|{item}{newline} }}</format>
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
    </data>
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|,&nbsp;|template=1}}}}
    <data source="size">
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}}
      <label>Size</label>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
      <format>{{{size}}}</format>
 
    </data>
|How to Obtain_collapsible = Yes
  </group>
|How to Obtain = Source, Inspo Card
  <data source="sellPrice">
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
    <label>Sell Price</label>
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
  </data>
|Inspo Card = {{{inspo|}}}
  <header>How to Obtain</header>
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
     <data source="source"><label>Obtain</label></data>
 
    <data source="inspo"><label>Inspo Card</label></data>
-->{{#invoke:Bucket|put|furniture
</infobox><!--
|+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:{{{id|}}}|[[Category:Furniture by ID|{{{id}}}]][[Category:Furniture by Quality and ID|{{#switch:{{{quality|}}}
-->{{#if:{{{number|}}}|[[Category:Furniture|{{{number}}}]]|[[Category:Furniture]][[Category:Furniture Missing Number]]}}<!--
  |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|}}}|{{#ifeq:{{{category}}}|Basic Furniture|[[Category:{{{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|Common|Uncommon|Rare|Stellar|Miracle=[[Category:{{{quality}}} Quality]]|[[Category:Furniture Missing 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|}}}
   |Common|Gray   = 0
   |Gray       = 0
   |Uncommon|Green = 1
   |Green       = 1
   |Rare|Purple   = 2
   |Purple     = 2
   |Stellar|Gold   = 3
   |Gold       = 3
  |Miracle        = 4
   |#default = 4
   |#default       = 5
   }}]]}}<!--
   }}]]|[[Category:Furniture by Quality]]}}<!--
   set
   Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}}]]}}<!--
-->{{#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>
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Petit Planet Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
Below are commonly used wikitext from MediaWiki:Edittools. Click on any to insert them in the edit box.
File Pages==Summary====Licensing=={{Fairuse}}{{File|}}
Dynamic Page List¦²«»²{¦}²«»«/»«!----»
Array in DPL¹^2{}^2^2{¹}^2
Parser Functions{{#if:||}}
{{#ifeq:|||}}
{{#expr:}}
{{#switch:||#default=}}
{{#replace:||}}
{{#titleparts:}}
{{#tag:|}}
Markup{{}}|[][[]][[Category:]]#REDIRECT [[]] [[Category:Redirect Pages]]<code></code><includeonly></includeonly><noinclude></noinclude><nowiki></nowiki><!----><br>§
Notices{{Stub|}}{{Stub Dialogue}}{{Upcoming}}{{Under Construction}}{{Placeholder|}}
Magic Words{{!}}{{formatnum:}}{{lc:}}{{uc:}}{{PAGENAME}}{{FULLPAGENAME}}{{ROOTPAGENAME}}{{BASEPAGENAME}}{{SUBPAGENAME}}{{DISPLAYTITLE:|noreplace}}__TOC____NOTOC____EXPECTUNUSEDCATEGORY____HIDDENCAT__
HTML Entities&mdash;&nbsp;&comma;&shy;