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

From Stardew Valley Wiki
Jump to navigation Jump to search
(add debug mode to this doc)
(Change to say that name and image are not optional)
Line 2: Line 2:
  
 
The health and energy values are calculated from the "edibility" parameter, using the same formulas as Template:Infobox.  (These are the actual gains when a cooked item is consumed in-game, and not the hover text values.)
 
The health and energy values are calculated from the "edibility" parameter, using the same formulas as Template:Infobox.  (These are the actual gains when a cooked item is consumed in-game, and not the hover text values.)
 
 
==Use==
 
==Use==
 
<pre>
 
<pre>
 
{{Infobox cooking
 
{{Infobox cooking
|image (optional -- will use pagename if omitted)
+
|name (name of cooked dish/name of page -- not optional)
 +
|image (name of image -- not optional)
 
|description
 
|description
 
|source (optional)
 
|source (optional)
 
|buff (optional)
 
|buff (optional)
|duration (optional -- include if buffs are included)
+
|duration (optional -- include only if buffs are included)
 
|edibility
 
|edibility
 
|sellprice
 
|sellprice
Line 19: Line 19:
 
==Example==
 
==Example==
 
<pre>{{Infobox cooking
 
<pre>{{Infobox cooking
 +
|name        = Fried Mushroom
 
|image        = Fried Mushroom
 
|image        = Fried Mushroom
 
|description  = Earthy and aromatic.
 
|description  = Earthy and aromatic.
Line 30: Line 31:
 
   
 
   
 
{{Infobox cooking
 
{{Infobox cooking
 +
|name        = Fried Mushroom
 
|image      = Fried Mushroom
 
|image      = Fried Mushroom
 
|description = Earthy and aromatic.
 
|description = Earthy and aromatic.

Revision as of 05:08, 15 April 2017

Infobox Template for cooked items, based on Template:Infobox, but a simpler version. Cooked items don't have quality versions, seasons, profession modifiers, etc.

The health and energy values are calculated from the "edibility" parameter, using the same formulas as Template:Infobox. (These are the actual gains when a cooked item is consumed in-game, and not the hover text values.)

Use

{{Infobox cooking
|name (name of cooked dish/name of page -- not optional)
|image (name of image -- not optional)
|description
|source (optional)
|buff (optional)
|duration (optional -- include only if buffs are included)
|edibility
|sellprice
|recipe (recipe source)
|ingredients
}}

Example

{{Infobox cooking
|name         = Fried Mushroom
|image        = Fried Mushroom
|description  = Earthy and aromatic.
|buff         = {{name|Attack|+2}}{{name|Defense|+4}}
|duration     = 7m
|edibility    = 54
|sellprice    = 200
|recipe       = {{NPC|Demetrius|Mail - 3+ Hearts}}
|ingredients  = {{name|Common Mushroom|1}}{{name|Morel|1}}{{name|Oil|1}}
}}
Fried Mushroom
Earthy and aromatic.
Information
Source Cooking
Buff(s) Attack.png Attack (+2)Defense.png Defense (+4)
Buff Duration Time Icon.png 7m
Energy / Health
Energy.png
135
Health.png
60
Sell Price
200g
Qi Seasoning.pngQi Seasoning
Energy.png
Gold Quality Icon.png
243
Health.png
Gold Quality Icon.png
109
300g
Recipe
Recipe Source(s)

Demetrius Icon.png Demetrius (Mail - 3+ Hearts)

Ingredients Common Mushroom.png Common Mushroom (1)Morel.png Morel (1)Oil.png Oil (1)