Difference between revisions of "Template:Infobox fruit tree"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) m (Text replacement - "colspan=2" to "colspan="2"") |
||
(8 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 7: | Line 7: | ||
|colspan="2" id="infoboxsection" style="text-align: center;"|Information | |colspan="2" id="infoboxsection" style="text-align: center;"|Information | ||
|- | |- | ||
− | |id="infoboxsection"|Sapling | + | |id="infoboxsection"|Sapling: |
− | |id="infoboxdetail"|{{#if:{{{sapling|}}}|{{{sapling| | + | |id="infoboxdetail"|{{#if:{{{altsapling|}}} | {{name|{{{sapling|}}}|link={{{altsapling|}}}}} | {{name|{{{sapling|}}}}} }} |
|- | |- | ||
− | |id="infoboxsection"| | + | {{#if:{{{altprice|}}} | |
− | |id="infoboxdetail"|{{# | + | {{!}}- |
+ | {{!}}id="infoboxsection"{{!}}Sapling Source: | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{altprice|}}} | ||
+ | | | ||
+ | {{!}}- | ||
+ | {{!}}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"| | + | |id="infoboxsection"|Produce: |
− | |id="infoboxdetail"|{{#if:{{{ | + | |id="infoboxdetail"|{{#if:{{{altproduce|}}} | {{name|{{{produce|}}}|link={{{altproduce|}}}}} | {{name|{{{produce|}}}}} }} |
|- | |- | ||
− | |id="infoboxsection"|Season | + | |id="infoboxsection"|Growth Time: |
− | |id="infoboxdetail"|{{# | + | |id="infoboxdetail"|{{{growth|}}} |
+ | |- | ||
+ | |id="infoboxsection"|Harvest Season: | ||
+ | |id="infoboxdetail"|{{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }} | ||
|} | |} | ||
− | </div> | + | </div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
− | |||
− | }}</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.