Difference between revisions of "Template:Infobox fruit tree"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Text replacement - "colspan=2" to "colspan="2"")
 
(5 intermediate revisions by 2 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"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
 
|colspan="2" style="padding-bottom: 15px;"|{{#if:{{{image}}}|[[File:{{{image|}}}|center|link=]]|}}
 
|colspan="2" style="padding-bottom: 15px;"|{{#if:{{{image}}}|[[File:{{{image|}}}|center|link=]]|}}
Line 10: Line 10:
 
|id="infoboxdetail"|{{#if:{{{altsapling|}}} | {{name|{{{sapling|}}}|link={{{altsapling|}}}}} | {{name|{{{sapling|}}}}} }}
 
|id="infoboxdetail"|{{#if:{{{altsapling|}}} | {{name|{{{sapling|}}}|link={{{altsapling|}}}}} | {{name|{{{sapling|}}}}} }}
 
|-
 
|-
|id="infoboxsection" class="no-wrap"|[[File:Pierre Icon.png|24px|link=]] Sapling Price:
+
{{#if:{{{altprice|}}} |
|id="infoboxdetail"|{{price|{{#expr:4*{{{price|}}}}}}}
+
{{!}}-
|-
+
{{!}}id="infoboxsection"{{!}}Sapling Source:
|id="infoboxsection" class="no-wrap"|[[File:Traveling Cart Icon.png|24px|link=]] Sapling Price:
+
{{!}}id="infoboxdetail"{{!}}{{{altprice|}}}
|id="infoboxdetail"|{{tprice|{{{price|}}}}}
+
|
 +
{{!}}-
 +
{{!}}id="infoboxsection" class="no-wrap" style="padding-left: 4px;"{{!}}[[File:Pierre Icon.png|24px|link=]] Sapling Price:
 +
{{!}}id="infoboxdetail"{{!}}{{price|{{#expr:4*{{{price|}}}}}}}  
 +
{{!}}-
 +
{{!}}id="infoboxsection" class="no-wrap" style="padding-left: 4px;"{{!}}[[File:Traveling Cart Icon.png|24px|link=]] Sapling Price:
 +
{{!}}id="infoboxdetail"{{!}}{{tprice|{{{price|}}}}} }}
 
|-
 
|-
 
|id="infoboxsection"|Produce:
 
|id="infoboxsection"|Produce:
Line 23: Line 29:
 
|-
 
|-
 
|id="infoboxsection"|Harvest Season:
 
|id="infoboxsection"|Harvest Season:
|id="infoboxdetail"|{{Season|{{{season|}}}}}
+
|id="infoboxdetail"|{{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }}  
 
|}
 
|}
</div>{{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:58, 23 October 2021

Description

This template displays an infobox for fruit tree pages.

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 fruit tree
|name       =
|image      = 
|sapling    = 
|altsapling =
|produce    =
|altproduce = 
|growth     = 
|season     = 
|price      =
|altprice   =
}}

Parameters

{{Infobox fruit tree
|name       = Tree name (optional - name of page if omitted)
|image      = 
|sapling    = Sapling that grows into the tree
|altsapling = Name of sapling in language other than English
|produce    = Name of fruit produced by mature tree
|altproduce = Name of produce in language other than English
|growth     = Growth time from planting to full maturity
|season     = What season does it produce fruit in?
|price      = Sell price if sapling is sold to Pierre
|altprice   = Sapling source, used for Ginger Island saplings
}}

This template automatically calculates the purchase prices for Pierre's General Store and the Traveling Cart, based on the sell price entered in the template. The sell price can be found in Content\ObjectInformation.xnb.