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

From Stardew Valley Wiki
Jump to navigation Jump to search
m (→‎Example: oPrice)
m (Protected "Template:Infobox seed/doc": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(15 intermediate revisions by 4 users not shown)
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.'''
  
==Usage==
+
==Parameters==
This template can be used by entering the following onto a relevant page.
+
{|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
|gPrice      =
+
|-
|jPrice      =
+
|description||Description of seed (Automatically filled via [[:Template:Description]] if omitted)
|tPrice      =
+
|-
|description =
+
|crop||Crop that grows from the seed
}}</pre>
+
|-
 
+
|growth||Time to grow to maturity
===Parameters===
+
|-
<pre>{{Infobox seed
+
|season||Season in which the seed will grow
|image  =
+
|-
|crop   = Crop produced
+
|sellprice||Sell Price
|growth = Growth time
+
|-
|season = Season grown in
+
|gPrice||Purchase price at [[Pierre's General Store]] (''e.g.,'' <nowiki>{{Price|40}}</nowiki>)
|gPrice = General store price
+
|-
|jPrice = JojaMart price
+
|jPrice||Purchase price at [[JojaMart]] (''e.g.,'' <nowiki>{{Price|40}}</nowiki>)
|tPrice = Travelling cart price
+
|-
|description = Description
+
|oPrice||Purchase price at the [[Oasis]] (''e.g.,'' <nowiki>{{Price|40}}</nowiki>)
}}</pre>
+
|-
 
+
|tPrice||Purchase price at the [[Traveling Cart]] (''e.g.,'' <nowiki>{{Tprice|40}}</nowiki>)
==Example==
+
|-
<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
+
|iPrice||Purchase price at the [[Island Trader]]
|image      = Parsnip Seeds.png
+
|-
|crop        = [[Parsnip]]
+
|nmday||Day(s) sold at the [[Night Market]]
|growth      = 4 days
+
|-
|season      = [[Spring]]
+
|otherprice||Purchase price at any other vendor (''e.g.,'' [[Qi's Walnut Room]] for {{Price|10|Gem}})
|gPrice      = {{Price|20}}
+
|-
|jPrice      = {{Price|25}}
+
|type||For use on the [[Sunflower Seeds]] page, set to "Sunflower Seeds"<br />Will display an "Artisan Goods" section that includes [[Oil]]
|oPrice     = {{Price|35}}
+
|-
|tPrice     = {{Price|100-900}}
+
|source||Set to "Crafting" to display a Crafting section that shows:
|description = Plant these in the Spring. Takes 4 days to mature
+
*Recipe Name
}}</pre>
+
*Recipe Source
{{Clear}}
+
*Ingredients
 
+
*Produces
{{Infobox seed
+
|-
|name        = Parsnip Seeds
+
|recipename||Recipe name (part of the "Crafting" section)
|image      = Parsnip Seeds.png
+
|-
|crop        = [[Parsnip]]
+
|recipe||Recipe source (part of the "Crafting" section)
|growth      = 4 days
+
|-
|season      = [[Spring]]
+
|ingredients||Ingredients (part of the "Crafting" section)
|gPrice      = {{Price|20}}
+
|-
|jPrice      = {{Price|25}}
+
|produces||Name of product produced (part of the "Crafting" section)<br />For use when crafting produces >1 seed
|oPrice      = {{Price|35}}
+
|-
|tPrice      = {{Price|100-900}}
+
|}<includeonly>[[Category:Infobox templates]]{{Addlanglinks}}</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
|description = Plant these in the Spring. Takes 4 days to mature
 
}}
 
{{Clear}}
 
 
 
<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 

Latest revision as of 07:27, 4 June 2024

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