Difference between revisions of "Template:Infobox clothing"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Matching layout of main infobox)
(fix display of purchase price)
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly><div id="infoboxborder">
 
<includeonly><div id="infoboxborder">
 
{| id="infoboxtable"
 
{| id="infoboxtable"
|colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}}
+
|colspan="2" id="infoboxheader"|{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}} }}
 
|-
 
|-
|colspan=2|{{#if:{{{image}}}|[[File:{{{image|}}}|center|link=]]|}}
+
|colspan="2" style="padding-bottom: 5px;"|{{#if:{{{image}}}|[[File:{{{image|}}}|center]]|}}
 
|-
 
|-
|colspan=2 align="center" id="infoboxdetail"|{{{description|}}}
+
|colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
 
|-
 
|-
|colspan=2 id="infoboxsection" style="text-align:center;"|Information
+
|colspan="2" id="infoboxsection" style="text-align:center;"|Information
|-
 
|id="infoboxsection"|Name:
 
|id="infoboxdetail"|{{#if:{{{name|}}}|{{{name|N/A}}}|N/A}}
 
 
|-
 
|-
 
|id="infoboxsection"|Source:
 
|id="infoboxsection"|Source:
 
|id="infoboxdetail"|{{#if:{{{source|}}}|{{{source|N/A}}}|N/A}}
 
|id="infoboxdetail"|{{#if:{{{source|}}}|{{{source|N/A}}}|N/A}}
 +
{{#if:{{{ingredients|}}}|<nowiki/>
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Ingredients:
 +
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}|}}{{#if:{{{stats|}}}|<nowiki/>
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Stats:
 +
{{!}}id="infoboxdetail"{{!}}{{{stats|}}}|}}
 
|-
 
|-
|id="infoboxsection"|Ingredients:
+
|colspan="2" id="infoboxsection" style="text-align: center;"|Adventurer's Guild
|id="infoboxdetail"|{{#if:{{{ingredients|}}}|{{{ingredients|N/A}}}|N/A}}
+
{{#if:{{{gprice|}}}|<nowiki/>
|-
+
{{!}}-
|id="infoboxsection"|Selling Price:
+
{{!}}id="infoboxsection" class="no-wrap"{{!}}Purchase Price:
|id="infoboxdetail"|{{#if:{{{value|}}}|{{{value|Not sold}}}|Not sold}}
+
{{!}}id="infoboxdetail"{{!}}{{#iferror:{{Price|{{{gprice|}}}}}|{{{gprice|}}}|{{Price|{{{gprice|}}}}} }} }}
 
|-
 
|-
|colspan=2 id="infoboxfooter"|
+
|id="infoboxsection"|Sell Price:
 +
|id="infoboxdetail"|{{#iferror:{{#expr:{{{value|0}}}>0}}|{{#if:{{{value|}}}|{{{value|Not Sold}}}|Not Sold}}|{{#if:{{{value|}}}|{{price|{{{value|}}} }}|N/A }} }}
 
|}
 
|}
</div>{{#if:{{{debug mode|}}}||[[Category:Wearable items]]}}{{InfoboxSEO}}{{#seo:
+
</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
 
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Latest revision as of 18:33, 17 May 2023

Description

This template displays an infobox for clothing.

Use

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Infobox clothing
|name        = 
|image       = 
|description = 
|source      = 
|ingredients = 
|stats       =
|gprice      =
|value       = 
}}

Parameters

{{Infobox clothing
|name        = 
|image       = 
|description = Description (optional -- populated by Template:Description if omitted)
|source      = Where it comes from
|ingredients = What makes it (optional)
|stats       = Stat boosts from wearing the item (optional)
|gprice      = Adventurer's Guild purchase price
|value       = Adventurer's Guild sell price
}}

Example

{{Infobox clothing
|name        = Magnet Ring
|image       = Magnet Ring.png
|description = {{Description|Magnet Ring}}
|source      = [[The Mines]]
|stats       = {{name|Defense|+4}}
|gprice      = Not sold
|value       = 100
}}
Magnet Ring
Magnet Ring.png
Increases your radius for collecting items.
Information
Source: The Mines

Stats: Defense.png Defense (+4)
Adventurer's Guild

Purchase Price: Not sold
Sell Price: data-sort-value="100 ">Gold.png100g