Difference between revisions of "Template:Infobox seed/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(update)
 
Line 1: Line 1:
 
==Description==
 
==Description==
This template is used to provide a template that displays an infobox for seed.
+
This template displays an infobox for seeds. '''Do not use this on your user page. It is reserved for content pages.'''
  
==Use==
+
==Parameters==
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.'''
+
{|class="wikitable sortable"
 
+
|-
<pre>{{Infobox seed
+
!Parameter!!Notes
|image      =  
+
|-
|crop        =
+
|name||Name of seed (Name of page if omitted)
|growth      =
+
|-
|season      =
+
|image||Name of image, including extension
|sellprice  =
+
|-
|gPrice      =
+
|description||Description of seed (Automatically filled via [[:Template:Description]] if omitted)
|jPrice      =
+
|-
|tPrice      =
+
|crop||Crop that grows from the seed
|oPrice      =
+
|-
|iPrice      =
+
|growth||Time to grow to maturity
|nmday      =
+
|-
|description =
+
|season||Season in which the seed will grow
|source      =
+
|-
|recipe      =
+
|sellprice||Sell Price
|ingredients =
+
|-
|recipename  =
+
|gPrice||Purchase price at [[Pierre's General Store]] (''e.g.,'' <nowiki>{{Price|40}}</nowiki>)
|produces    =
+
|-
}}</pre>
+
|jPrice||Purchase price at [[JojaMart]] (''e.g.,'' <nowiki>{{Price|40}}</nowiki>)
 
+
|-
===Parameters===
+
|oPrice||Purchase price at the [[Oasis]] (''e.g.,'' <nowiki>{{Price|40}}</nowiki>)
<pre>{{Infobox seed
+
|-
|image    =
+
|tPrice||Purchase price at the [[Traveling Cart]] (''e.g.,'' <nowiki>{{Tprice|40}}</nowiki>)
|crop     = Crop produced
+
|-
|growth    = Growth time
+
|iPrice||Purchase price at the [[Island Trader]]
|season    = Season grown in
+
|-
|sellprice = Gold obtained when placing the seed in the Shipping Box or selling to Pierre (optional)
+
|nmday||Day(s) sold at the [[Night Market]]
|gPrice    = General store price
+
|-
|jPrice    = JojaMart price
+
|otherprice||Purchase price at any other vendor (''e.g.,'' [[Qi's Walnut Room]] for {{Price|10|Gem}})
|tPrice    = Traveling cart price
+
|-
|oPrice    = Oasis price (optional)
+
|type||For use on the [[Sunflower Seeds]] page, set to "Sunflower Seeds"<br />Will display an "Artisan Goods" section that includes [[Oil]]
|iPrice    = Island Trader price (optional)
+
|-
|nmday    = Winter date to purchase at Night Market (either 15, 16, or 17)
+
|source||Set to "Crafting" to display a Crafting section that shows:
|description = Description (optional -- populated by Template:Description if omitted)
+
*Recipe Name
|source      = crafting (optional)
+
*Recipe Source
|recipe      = crafting recipe source (optional)
+
*Ingredients
|ingredients = Ingredients (optional)
+
*Produces
|recipename  = name of recipe in crafting menu (optional)
+
|-
|produces    = name of product produced by crafting (optional)
+
|recipename||Recipe name (part of the "Crafting" section)
}}</pre>
+
|-
 
+
|recipe||Recipe source (part of the "Crafting" section)
==Examples==
+
|-
<pre estyle="margin-right:325px;border:1px solid silver;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap;word-wrap: break-word;">{{Infobox seed
+
|ingredients||Ingredients (part of the "Crafting" section)
|image      = Parsnip Seeds.png
+
|-
|crop        = [[Parsnip]]
+
|produces||Name of product produced (part of the "Crafting" section)<br />For use when crafting produces >1 seed
|growth      = 4 days
+
|-
|season      = [[Spring]]
+
|}<includeonly>[[Category:Infobox templates]]{{Addlanglinks}}</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
|sellprice  = {{Price|10}}
 
|gPrice      = {{Price|20}}
 
|jPrice     = {{Price|25}}
 
|oPrice      = {{Price|35}}
 
|tPrice      = {{tprice|10}}
 
|nmday      = 15
 
|description = {{Description|Parsnip Seeds}}
 
}}</pre>
 
{{Clear}}
 
 
 
{{Infobox seed
 
|name        = Parsnip Seeds
 
|image      = Parsnip Seeds.png
 
|crop        = [[Parsnip]]
 
|growth      = 4 days
 
|season      = [[Spring]]
 
|sellprice  = {{Price|10}}
 
|gPrice      = {{Price|20}}
 
|jPrice      = {{Price|25}}
 
|oPrice      = {{Price|35}}
 
|tPrice     = {{tprice|10}}
 
|nmday      = 15
 
|description = {{Description|Parsnip Seeds}}
 
}}
 
{{Clear}}
 
<pre>
 
{{Infobox seed
 
|name        = Summer Seeds
 
|image      = Summer Seeds.png
 
|crop        = [[Grape]], [[Spice Berry]], or [[Sweet Pea]]
 
|growth      = 7 days
 
|season      = [[Summer]]
 
|sellprice  = {{price|55}}
 
|gPrice      = Not Sold
 
|jPrice      = Not Sold
 
|tPrice      = {{tprice|55}}
 
|description = {{Description|Summer Seeds}}
 
|source      = crafting
 
|recipe      = [[File:Foraging Skill Icon.png|24px|link=]] [[Foraging#Foraging Skill|Foraging]] Level 4
 
|ingredients = {{name|Spice Berry|1}}{{name|Grape|1}}{{name|Sweet Pea|1}}
 
|recipename  = [[Crafting#Seeds|Wild Seeds (Su)]]
 
|produces    = 10 Summer Seeds per craft
 
}}</pre>
 
 
 
{{Infobox seed
 
|name        = Summer Seeds
 
|image      = Summer Seeds.png
 
|crop        = [[Grape]], [[Spice Berry]], or [[Sweet Pea]]
 
|growth      = 7 days
 
|season      = [[Summer]]
 
|sellprice  = {{price|55}}
 
|gPrice      = Not Sold
 
|jPrice      = Not Sold
 
|tPrice      = {{tprice|55}}
 
|description = {{Description|Summer Seeds}}
 
|source      = crafting
 
|recipe     = [[File:Foraging Skill Icon.png|24px|link=]] [[Foraging#Foraging Skill|Foraging]] Level 4
 
|ingredients = {{name|Spice Berry|1}}{{name|Grape|1}}{{name|Sweet Pea|1}}
 
|recipename  = [[Crafting#Seeds|Wild Seeds (Su)]]
 
|produces    = 10 Summer Seeds per craft
 
|debug mode  = y
 
}}
 
 
 
<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>{{Addlanglinks}}</includeonly>
 

Latest revision as of 18:19, 25 December 2022

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