Difference between revisions of "Template:Infobox seed"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Added optional sell price, header for purchase prices)
(remove unneeded formatting)
 
(37 intermediate revisions by 4 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|{{#if:{{{image}}}|[[File:{{{image|}}}|center|link=]]|}}
+
|colspan="2" style="padding-bottom: 5px;"|{{#if:{{{image}}}|[[File:{{{image|}}}|48px|center]]|}}
 
|-
 
|-
|colspan=2 align="center" id="infoboxdetail" style="font-style:italic;" |{{{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"|Crop
+
|id="infoboxsection"|Crop:
 
|id="infoboxdetail"|{{#if:{{{crop|}}}|{{{crop|N/A}}}|N/A}}
 
|id="infoboxdetail"|{{#if:{{{crop|}}}|{{{crop|N/A}}}|N/A}}
 
|-
 
|-
|id="infoboxsection"|Growth Time
+
|id="infoboxsection"|Growth Time:
 
|id="infoboxdetail"|{{#if:{{{growth|}}}|{{{growth|N/A}}}|N/A}}
 
|id="infoboxdetail"|{{#if:{{{growth|}}}|{{{growth|N/A}}}|N/A}}
 
|-
 
|-
|id="infoboxsection"|Season
+
|id="infoboxsection"|Season:
 
|id="infoboxdetail"|
 
|id="infoboxdetail"|
 
{{#if:{{{season|}}}|
 
{{#if:{{{season|}}}|
   {{#switch: {{{season|}}}
+
   {{#switch: {{lc:{{{season|}}}}}
   |spring|Spring|[[spring]]|[[Spring]] = [[File:Spring.png|24px|link=]] [[Spring]]
+
   |spring|[[spring]] = [[File:Spring.png|24px|link=]] [[Spring]]
   |summer|Summer|[[summer]]|[[Summer]] = [[File:Summer.png|24px|link=]] [[Summer]]
+
   |summer|[[summer]] = [[File:Summer.png|24px|link=]] [[Summer]]
   |fall|Fall|[[fall]]|[[Fall]]|autumn|Autumn|[[autumn]]|[[Autumn]] = [[File:Fall.png|24px|link=]] [[Fall]]
+
   |fall|[[fall]]|autumn|[[autumn]] = [[File:Fall.png|24px|link=]] [[Fall]]
   |winter|Winter|[[winter]]|[[Winter]] = [[File:Winter.png|24px|link=]] [[Winter]]
+
   |winter|[[winter]] = [[File:Winter.png|24px|link=]] [[Winter]]
 
   |#default = {{{season|}}}
 
   |#default = {{{season|}}}
 
   }} | {{{season|N/A}}} | N/A}}
 
   }} | {{{season|N/A}}} | N/A}}
Line 28: Line 28:
 
   {{!}}-
 
   {{!}}-
 
   {{!}}id="infoboxsection"{{!}}Sell Price:
 
   {{!}}id="infoboxsection"{{!}}Sell Price:
   {{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{sellprice|}}}|[[{{{sellprice|}}}]]|{{{sellprice|}}}
+
   {{!}}id="infoboxdetail"{{!}}{{#if:{{{sellprice|}}} | {{{sellprice|}}} | N/A
 
}}}}
 
}}}}
 
|-
 
|-
|colspan=2 id="infoboxsection" style="text-align:center;"|Purchase Prices
+
|colspan="2" id="infoboxsection" style="text-align:center;"|Purchase Prices
 
|-
 
|-
|id="infoboxsection"|[[Pierre%27s_General_Store|<span style="color:white;">General Store Price</span>]]
+
|id="infoboxsection" class="no-wrap" style="padding-left: 5px;"|[[File:Pierre Icon.png|24px|link=]] [[Pierre's General Store|General Store]]:
 
|id="infoboxdetail"|{{#if:{{{gPrice|}}}|{{{gPrice|Not sold}}}|Not sold}}
 
|id="infoboxdetail"|{{#if:{{{gPrice|}}}|{{{gPrice|Not sold}}}|Not sold}}
 
|-
 
|-
|id="infoboxsection"|[[JojaMart|<span style="color:white;">JojaMart Price</span>]]
+
|id="infoboxsection" class="no-wrap" style="padding-left: 5px;"|[[File:Morris Icon.png|24px|link=]] [[JojaMart]]:
|id="infoboxdetail"|{{#if:{{{jPrice|}}}|{{{jPrice|Not sold}}}|Not sold}}
+
|id="infoboxdetail"|{{#if:{{{jPrice|}}}|{{{jPrice|Not sold}}}|Not sold}}<!--
|-{{#if:{{{oPrice|}}}|<br>
+
-->{{#if:{{{oPrice|}}}|<nowiki />
{{!}}id="infoboxsection"{{!}}[[Oasis{{!}}<span style="color:white;">Oasis Price</span>]]
+
{{!}}-
 +
{{!}}id="infoboxsection" class="no-wrap" style="padding-left: 5px;"{{!}}[[File:Sandy Icon.png|24px|link=]] [[Oasis]]:
 
{{!}}id="infoboxdetail"{{!}}{{#if:{{{oPrice|}}}|{{{oPrice|Not sold}}}|Not sold }} |}}
 
{{!}}id="infoboxdetail"{{!}}{{#if:{{{oPrice|}}}|{{{oPrice|Not sold}}}|Not sold }} |}}
 
|-
 
|-
|id="infoboxsection"|[[Travelling Cart|<span style="color:white;">Travelling Cart Price</span>]]
+
|id="infoboxsection" class="no-wrap" style="padding-left: 5px;"|[[File:Traveling Cart Icon.png|24px|link=]] [[Traveling Cart]]:
|id="infoboxdetail"|{{#if:{{{tPrice|}}}|{{{tPrice|Not sold}}}|Not sold}}
+
|id="infoboxdetail"|{{#if:{{{tPrice|}}}|{{{tPrice|Not sold}}}|Not sold}}<!--
|-
+
-->{{#if:{{{iPrice|}}} |<nowiki />
|colspan=2 id="infoboxfooter"|
+
{{!}}-
|}{{#if:{{{debug mode|}}}||{{mainonly|[[Category:Seeds]]}}}}{{InfoboxSEO}}{{#seo:
+
{{!}}id="infoboxsection" class="no-wrap" style="padding-left: 5px;"{{!}}[[File:Island Trader Icon.png|22px|link=]] [[Island Trader]]:
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
+
{{!}}id="infoboxdetail"{{!}}{{{iPrice|}}} |}}<!--
}}</div></includeonly>
+
-->{{#if:{{{nmday|}}} |<nowiki />
<noinclude>
+
{{!}}-
{{{{FULLPAGENAME}}/doc}}</noinclude>
+
{{!}}id="infoboxsection"{{!}}[[Night Market]]<br />(Winter {{{nmday|}}}):
 +
{{!}}id="infoboxdetail"{{!}}{{{gPrice|}}} |}}<!--
 +
-->{{#if:{{{otherprice|}}} |<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Other:
 +
{{!}}id="infoboxdetail"{{!}}{{{otherprice|}}} |}}<!--
 +
-->{{#ifeq:{{lc:{{{type|}}}}}|sunflower seeds|<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection" colspan="2" style="text-align: center;"{{!}}Artisan Goods
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Sell Price:
 +
{{!}}id="infoboxdetail"{{!}}[[File:Oil.png|24px|link=]] 100g|}}
 +
{{#ifeq:{{lc:{{{source|}}}}} | crafting |
 +
{{!}}-
 +
{{!}}id="infoboxsection" colspan="2" style="text-align: center;"{{!}}Crafting
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Recipe Name:
 +
{{!}}{{{recipename|}}}
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Recipe Source:
 +
{{!}}{{{recipe|}}}
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Ingredients:
 +
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}Produces:
 +
{{!}}id="infoboxdetail"{{!}}{{{produces|}}}
 +
|}}
 +
|}</div>{{InfoboxSEO}}</includeonly>
 +
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Latest revision as of 17:44, 7 September 2023

Description

This template displays an infobox for seeds. Do not use this on your user page. It is reserved for content pages.

Parameters

Parameter Notes
name Name of seed (Name of page if omitted)
image Name of image, including extension
description Description of seed (Automatically filled via Template:Description if omitted)
crop Crop that grows from the seed
growth Time to grow to maturity
season Season in which the seed will grow
sellprice Sell Price
gPrice Purchase price at Pierre's General Store (e.g., {{Price|40}})
jPrice Purchase price at JojaMart (e.g., {{Price|40}})
oPrice Purchase price at the Oasis (e.g., {{Price|40}})
tPrice Purchase price at the Traveling Cart (e.g., {{Tprice|40}})
iPrice Purchase price at the Island Trader
nmday Day(s) sold at the Night Market
otherprice Purchase price at any other vendor (e.g., Qi's Walnut Room for data-sort-value="10">Qi Gem.png 10)
type For use on the Sunflower Seeds page, set to "Sunflower Seeds"
Will display an "Artisan Goods" section that includes Oil
source Set to "Crafting" to display a Crafting section that shows:
  • Recipe Name
  • Recipe Source
  • Ingredients
  • Produces
recipename Recipe name (part of the "Crafting" section)
recipe Recipe source (part of the "Crafting" section)
ingredients Ingredients (part of the "Crafting" section)
produces Name of product produced (part of the "Crafting" section)
For use when crafting produces >1 seed