Template:Furniture Infobox: Difference between revisions
ReisuDesign (talk | contribs) No edit summary |
mNo edit summary |
||
| (23 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
|title = <!-- | |title = <!-- | ||
-->{{{title|<!-- | -->{{{title|<!-- | ||
-->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | -->{{{name|{{PAGENAME}}}}}<!-- | ||
-->}}} | -->}}} | ||
| Line 12: | Line 12: | ||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | ||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | ||
|sections = Information | |sections = Checkbox, Information, How to Obtain | ||
|Checkbox_nolabel = 1 | |||
|Checkbox = Collected | |||
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Furniture}}" data-pageid="{{PAGEID}}"></span> | |||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Category, Type, Quality, Set, Size, Indoor Area, Outdoor Area, | |Information = Category, Type, Quality, Set, Size, Indoor Area, Outdoor Area, Collection Score, Color, Material, Selling Price | ||
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | |Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | ||
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}} | |Type = {{#if:{{{type|}}}|[[{{{type}}}]]}} | ||
| Line 23: | Line 27: | ||
|Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | |Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | ||
|Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | |Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | ||
| | |Collection Score = {{#switch:{{{quality|}}}<!-- | ||
-->|Gray = +5<!-- | -->|Common|Gray = +{{{score|5}}}<!-- | ||
-->|Green = +10<!-- | -->|Uncommon|Green = +{{{score|10}}}<!-- | ||
-->|Purple = +{{{score| | -->|Rare|Purple = {{#if:{{{score|}}}|+{{{score|}}}}}<!-- | ||
-->|Gold = +20<!-- | -->|Stellar|Gold = +{{{score|20}}}<!-- | ||
-->|Miracle = {{{score|30}}}<!-- | |||
-->|#default = <!-- | -->|#default = <!-- | ||
-->}} | -->}} | ||
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|{item}|, | |Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|, }}}} | ||
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}} | |Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}} | ||
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|{item}|, | | |Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|, |template=1}}}} | ||
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}} | |Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}} | ||
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}} | |Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}} | ||
|How to Obtain_collapsible = Yes | |How to Obtain_collapsible = Yes | ||
| Line 46: | Line 46: | ||
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | |Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | ||
|Inspo Card = {{{inspo|}}} | |Inspo Card = {{{inspo|}}} | ||
}}<!-- | }}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!-- | ||
-->{{#invoke:Bucket|put|furniture | -->{{#invoke:Bucket|put|furniture | ||
| Line 54: | Line 54: | ||
|in_area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | |in_area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | ||
|out_area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | |out_area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | ||
| | |collection_score = {{#switch:{{{quality|}}}<!-- | ||
-->|Gray = 5<!-- | -->|Common|Gray = {{{score|5}}}<!-- | ||
-->|Green = 10<!-- | -->|Uncommon|Green = {{{score|10}}}<!-- | ||
-->|Purple = {{{score| | -->|Rare|Purple = {{{score|}}}<!-- | ||
-->|Gold = 20<!-- | -->|Stellar|Gold = {{{score|20}}}<!-- | ||
-->|Miracle = {{{score|30}}}<!-- | |||
-->|#default = <!-- | -->|#default = <!-- | ||
-->}} | -->}} | ||
| Line 82: | Line 83: | ||
-->[[Category:Furniture]]<!-- | -->[[Category:Furniture]]<!-- | ||
Sort | Sort | ||
-->{{#if:{{{ | -->{{#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]]|[[Category:Furniture Missing 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 | |Common|Gray = 0 | ||
|Green | |Uncommon|Green = 1 | ||
|Purple | |Rare|Purple = 2 | ||
|Gold | |Stellar|Gold = 3 | ||
|#default = | |Miracle = 4 | ||
}}]]}}<!-- | |#default = 5 | ||
}}]]|[[Category:Furniture by Quality]]}}<!-- | |||
Set | Set | ||
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Furniture]]}}<!-- | -->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Furniture]]}}<!-- | ||
Latest revision as of 13:26, 25 October 2026
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that creates an infobox for Furniture items.
Syntax
[edit source]{{Furniture Infobox
|name =
|number =
|category =
|type =
|quality =
|set =
|size = <!--a.b × c.d-->
|in_area = <!--a.b × c.d-->
|out_area = <!--a.b × c.d-->
|color =
|material =
|sell =
|description =
|source =
|inspo =
}}
- name – Name of the Furniture item.
- number – Zero-padded archive number of the Furniture item.
- category – Category of the Furniture item.
- type – Type of the Furniture item.
- quality – Quality of the Furniture item.
- set – Set the Furniture item is included in.
- size – Size of the Furniture item in the format: a.b × c.d.
- in_area – Indoor area of the Furniture item in the format: a.b × c.d.
- out_area – Outdoor area of the Furniture item in the format: a.b × c.d.
- color – Color(s) the Furniture item is available in as a semicolon separated list.
- material – Material(s) of the Furniture item as a semicolon separated list.
- sell – Selling price of the Furniture item.
- description – Description of the Furniture item.
- source – Source(s) of the Furniture item as a semicolon separated list.
- inspo – Source of the Furniture item's Inspo Card.
Other parameters
[edit source]- image – Override the default image with a single file. Default: name Icon.png.
- images – Override the default image with multiple files and tabs.
- Format: Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name.
Examples
[edit source]
{{Furniture Infobox
|name = March Plum Rug
|number = 003
|category = Decorations
|type = Rugs
|quality = Green
|set = Cozy Home
|size = 2.0 × 1.0
|color = Colorful
|material = Fabric; Yarn; Stone
|sell = 510
|description = Description
|source = Crafting
|inspo = Available by default
}}
{{Furniture Infobox
|name = Charming Cottage
|images = House Charming Cottage (Blue).png:Blue; House Charming Cottage (Yellow).png:Yellow; House Charming Cottage (Brown).png:Brown
|category = My House
|in_area = 10.0 × 10.0
|out_area = 7.0 × 4.0
|source = [[Loomix Homes]]
|description = A beautifully crafted home by Loomix Co. Its expanded space leaves room for more ideas to take shape.
}}
Template Data
[edit source]Template that creates an infobox for Furnitures.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the Furniture item.
| String | required |
| Number | number | Zero-padded archive number of the Furniture item.
| Number | suggested |
| Category | category | Category of the Furniture item.
| String | suggested |
| Type | type | Type of the Furniture item.
| String | suggested |
| Quality | quality | Quality of the Furniture item.
| String | suggested |
| Set | set | Set the Furniture item is included in.
| String | suggested |
| Set link | set_link | Appoint another page to be linked for the Furniture set. | String | optional |
| Size | size | Size of the Furniture item in the format: a.b × c.d.
| String | suggested |
| Indoor area | in_area | Indoor area of the Furniture item in the format: a.b × c.d.
| String | optional |
| Outdoor area | out_area | Outdoor area of the Furniture item in the format: a.b × c.d.
| String | optional |
| Score | score | Purple quality Folio Score for the Furniture item.
| Number | optional |
| Color | color | Color(s) the Furniture item is available in as a semicolon separated list.
| String | suggested |
| Material | material | Material(s) of the Furniture item as a semicolon separated list.
| String | suggested |
| Description | description | Description of the Furniture item. | Content | suggested |
| Source | source | Source(s) of the Furniture item and/or its Inspo Card as a semicolon separated list.
| Content | suggested |
| Selling price | sell | Selling price of the Furniture item.
| Number | optional |
| Image | image | Override the default image with a single file.
| File | optional |
| Images | images | Override the default image with multiple files and tabs.
| Content | optional |


