Difference between revisions of "Template:Infobox furniture"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) |
||
(22 intermediate revisions by 5 users not shown) | |||
Line 3: | Line 3: | ||
|colspan="2" id="infoboxheader"|{{#if:{{{name|}}} | {{{name|}}} | {{PAGENAME}} }} | |colspan="2" id="infoboxheader"|{{#if:{{{name|}}} | {{{name|}}} | {{PAGENAME}} }} | ||
|- | |- | ||
− | |colspan="2" style="padding-bottom:5px; text-align: center;"|{{#if:{{{image|}}} | [[File:{{{image|}}}.png{{#if:{{{size|}}}|{{!}}{{{size|}}}px|}}]] | {{#ifexist:File:{{{image|{{PAGENAME}}.png}}} | [[File:{{PAGENAME}}.png{{#if:{{{size|}}}|{{!}}{{{size|}}}px|}}]] |}} |}}{{#ifeq:{{{space|}}} | y | |}}<!-- space between images -->{{#if:{{{image2|}}} | [[File:{{{image2|}}}.png{{#if:{{{size2|}}}|{{!}}{{{size2|}}}px|}}]] |}}{{#ifeq:{{{space|}}} | y | |}}<!-- space between images -->{{#if:{{{image3|}}} | [[File:{{{image3|}}}.png{{#if:{{{size3|}}}|{{!}}{{{size3|}}}px|}}]] |}} | + | |colspan="2" style="padding-bottom: 5px; text-align: center;"|{{#if:{{{image|}}} | [[File:{{{image|}}}.png{{#if:{{{size|}}}|{{!}}{{{size|}}}px|}}]] | {{#ifexist:File:{{{image|{{PAGENAME}}.png}}} | [[File:{{PAGENAME}}.png{{#if:{{{size|}}}|{{!}}{{{size|}}}px|}}]] |}} |}}{{#ifeq:{{{space|}}} | y | |}}<!-- space between images -->{{#if:{{{image2|}}} | [[File:{{{image2|}}}.png{{#if:{{{size2|}}}|{{!}}{{{size2|}}}px|}}]] |}}{{#ifeq:{{{space|}}} | y | |}}<!-- space between images -->{{#if:{{{image3|}}} | [[File:{{{image3|}}}.png{{#if:{{{size3|}}}|{{!}}{{{size3|}}}px|}}]] |}} |
|- | |- | ||
− | |colspan="2" style="font-style: italic; | + | |colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|furniture}}}} |
|- | |- | ||
|colspan="2" id="infoboxsection" style="text-align: center;"|Information<!-- | |colspan="2" id="infoboxsection" style="text-align: center;"|Information<!-- | ||
Line 14: | Line 14: | ||
-->{{#if:{{{cs|}}}|<nowiki /> | -->{{#if:{{{cs|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxdetail" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,0. | + | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Robin Icon.png|24px|link=]] [[Carpenter's Shop]]: |
{{!}}id="infoboxdetail"{{!}}{{price|{{{cs|}}}}} |}}<!-- | {{!}}id="infoboxdetail"{{!}}{{price|{{{cs|}}}}} |}}<!-- | ||
-->{{#ifeq:{{lc:{{{tc|}}}}}|y|<nowiki /> | -->{{#ifeq:{{lc:{{{tc|}}}}}|y|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxdetail" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,0. | + | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Traveling Cart Icon.png|24px|link=]] [[Traveling Cart]]: |
{{!}}id="infoboxdetail"{{!}}{{tprice|furniture}} |}}<!-- | {{!}}id="infoboxdetail"{{!}}{{tprice|furniture}} |}}<!-- | ||
-->{{#if:{{{qi|}}}|<nowiki /> | -->{{#if:{{{qi|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxdetail" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,0. | + | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Mr. Qi Icon.png|24px|link=]] [[Casino]]: |
{{!}}id="infoboxdetail"{{!}}{{price|{{{qi|}}}|Qi}} |}}<!-- | {{!}}id="infoboxdetail"{{!}}{{price|{{{qi|}}}|Qi}} |}}<!-- | ||
-->{{#ifeq:{{lc:{{{fc|}}}}}|y|<nowiki /> | -->{{#ifeq:{{lc:{{{fc|}}}}}|y|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxdetail" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,0. | + | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Furniture Catalogue.png|24px|link=]] [[Furniture Catalogue]]: |
{{!}}id="infoboxdetail"{{!}}{{price|0}} |}}<!-- | {{!}}id="infoboxdetail"{{!}}{{price|0}} |}}<!-- | ||
+ | -->{{#ifeq:{{lc:{{{joja|}}}}}|y|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Joja Furniture Catalogue.png|24px|link=]] [[Joja Furniture Catalogue]]: | ||
+ | {{!}}id="infoboxdetail" style="vertical-align: middle;"{{!}}{{Price|0}} |}}<!-- | ||
+ | -->{{#ifeq:{{lc:{{{junimo|}}}}}|y|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Junimo Catalogue.png|24px|link=]] [[Junimo Catalogue]]: | ||
+ | {{!}}id="infoboxdetail" style="vertical-align: middle;"{{!}}{{Price|0}} |}}<!-- | ||
+ | -->{{#ifeq:{{lc:{{{retro|}}}}}|y|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Retro Catalogue.png|24px|link=]] [[Retro Catalogue]]: | ||
+ | {{!}}id="infoboxdetail" style="vertical-align: middle;"{{!}}{{Price|0}} |}}<!-- | ||
+ | -->{{#ifeq:{{lc:{{{trash|}}}}}|y|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Trash Catalogue.png|24px|link=]] [[Trash Catalogue]]: | ||
+ | {{!}}id="infoboxdetail" style="vertical-align: middle;"{{!}}{{Price|0}} |}}<!-- | ||
+ | -->{{#ifeq:{{lc:{{{wizard|}}}}}|y|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Wizard Catalogue.png|24px|link=]] [[Wizard Catalogue]]: | ||
+ | {{!}}id="infoboxdetail" style="vertical-align: middle;"{{!}}{{Price|0}} |}}<!-- | ||
-->{{#if:{{{mu|}}}|<nowiki /> | -->{{#if:{{{mu|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxdetail" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,0. | + | {{!}}id="infoboxdetail" class="no-wrap" style="background-color: rgba(3,160,7,0.3); border: 1px solid rgba(3,160,7,0.4);"{{!}}[[File:Gunther Icon.png|24px|link=]] [[Museum|Museum Donation]]: |
{{!}}id="infoboxdetail"{{!}}{{{mu|}}} |}}<!-- | {{!}}id="infoboxdetail"{{!}}{{{mu|}}} |}}<!-- | ||
-->{{#if:{{{os|}}}|<nowiki /> | -->{{#if:{{{os|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}}{{#ifeq:{{{showheader|}}}|n|Source(s):|Other Source(s):}} | + | {{!}}id="infoboxsection"{{!}}{{#ifeq:{{lc:{{{showheader|}}}}}|n|Source(s):|Other Source(s):}} |
{{!}}id="infoboxdetail"{{!}}{{{os|}}} |}} | {{!}}id="infoboxdetail"{{!}}{{{os|}}} |}} | ||
|- | |- | ||
Line 40: | Line 60: | ||
|id="infoboxdetail"|{{#if:{{{sellprice|}}} | {{price|{{{sellprice|}}}}} | Cannot be sold }} | |id="infoboxdetail"|{{#if:{{{sellprice|}}} | {{price|{{{sellprice|}}}}} | Cannot be sold }} | ||
|- | |- | ||
− | |}</div> | + | |}</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
− | </includeonly> | ||
− | <noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Latest revision as of 17:48, 15 May 2024
Infobox template for furniture that shows all available sources and suppresses unavailable sources. Can use alternate headings if the only source is a unique source (e.g., sold at a festival). Do not use this on your user page. It is reserved for content pages.
Format
{{Infobox furniture |name = name of item (pagename if omitted) |image = name of image (pagename.png if omitted) |size = size of image in pixels (optional) |image2 = second image (optional) |size2 = size of second image in pixels (optional) |image3 = third image (optional) |size3 = size of third image in pixels (optional) |space = y (optional -- used to show space between images) |description = description (optional) |cs = price at Carpenter's Shop (optional) |tc = y (sold at Traveling Cart?) (optional) |qi = price at Casino (optional) |fc = y (sold through Furniture Catalogue?) (optional) |joja = y (sold through Joja Furniture Catalogue?) (optional) |junimo = y (sold through Junimo Catalogue?) (optional) |retro = y (sold through Retro Catalogue?) (optional) |trash = y (sold through Trash Catalogue?) (optional) |wizard = y (sold through Wizard Catalogue?) (optional) |mu = museum donation details (optional) |os = other sources (optional) |showheader = n (Suppress "Source" and "Cost/Price" headers) (optional -- for use if the only source is "other") |sellprice = sell price (optional - as of v1.11 no furniture can be sold) }}
If showheader is omitted, the left heading changes from "Other Source(s)" to "Source(s)".
Examples
Example showing all fields
{{Infobox furniture |name = Sloth Skeleton |image = Sloth Skeleton L |image2 = Sloth Skeleton M |image3 = Sloth Skeleton R |cs = 888 |tc = Y |qi = 3000 |fc = y |mu = 88 [[Artifacts]] including {{name|Rare Disc|class=inline}} and {{name|Dwarf Gadget}} |sellprice = 40 |os = Random monster drop |joja = y |junimo = y |retro = y |trash = y |wizard = y }}
Sloth Skeleton | |
Can be placed inside your house. | |
Information | |
Source | Cost |
Carpenter's Shop: | 888g |
Traveling Cart: | 250–2,500g |
Casino: | 3,000 |
Furniture Catalogue: | 0g |
Joja Furniture Catalogue: | 0g |
Junimo Catalogue: | 0g |
Retro Catalogue: | 0g |
Trash Catalogue: | 0g |
Wizard Catalogue: | 0g |
Museum Donation: | 88 Artifacts including Rare Disc and Dwarf Gadget |
Other Source(s): | Random monster drop |
Sell Price: | 40g |
Name of item omitted
{{Infobox furniture |image = Ceramic Pillar |size = 48 |cs = 100000000000 |fc = y |tc = n }}
Infobox furniture | |
Can be placed inside your house. | |
Information | |
Source | Price |
Carpenter's Shop: | 100,000,000,000g |
Furniture Catalogue: | 0g |
Sell Price: | Cannot be sold |
showheader field suppressed
{{Infobox furniture |name = Monster Danglers |image = Monster Danglers |os = <ul><li style="white-space:nowrap;">{{NPC|Robin|6 Hearts Event}}</li><li>Purchase in the [[Casino]] for {{price|1000000}}</li></ul> |showheader = n }}