Jump to content

Template:Infobox cooking/doc: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
No edit summary
imported>Margotbean
Line 47: Line 47:
{{clear}}
{{clear}}
==Example for use with [[Template:RecipeRow]]==
==Example for use with [[Template:RecipeRow]]==
<pre><onlyinclude>{{{{{1|Infobox cooking}}}
<pre>&lt;onlyinclude&gt;{{{{{1|Infobox cooking}}}
|name            = Lucky Lunch
|name            = Lucky Lunch
|image          = Lucky Lunch
|image          = Lucky Lunch
Line 58: Line 58:
|recipe          = {{CookingChannel|28 Spring, Year 2}}
|recipe          = {{CookingChannel|28 Spring, Year 2}}
|ingredients    = {{name|Sea Cucumber|1}}{{name|Tortilla|1}}{{name|Blue Jazz|1}}
|ingredients    = {{name|Sea Cucumber|1}}{{name|Tortilla|1}}{{name|Blue Jazz|1}}
}}</onlyinclude></pre>
}}&lt;/onlyinclude&gt;</pre>


<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 06:11, 19 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) Note: do not include ".png"
|description
|source (optional)
|buff (optional)
|duration (optional -- include only if buffs are included)
|dsvduration (data-sort-value for duration of buffs -- optional, but table will not sort correctly without it) (Format:mmss)
|edibility
|sellprice (raw unformatted numbers only)
|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
|dsvduration  = 0700 
|edibility    = 54
|sellprice    = 200
|recipe       = {{NPC|Demetrius|Mail - 3+ [[File:HeartIconLarge.png|16px|link=]]}}
|ingredients  = {{name|Common Mushroom|1}}{{name|Morel|1}}{{name|Oil|1}}
}}
Fried Mushroom
File:Fried Mushroom
Earthy and aromatic.
Information
Source Cooking
Buff(s) Attack (+2) Defense (+4)
Buff Duration 7m
Energy / Health
135
60
Sell Price
200g
Qi Seasoning
243
109
300g
Recipe
Recipe Source(s)

Demetrius (Mail - 3+ )

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

{{#seo:

|keywords=Stardew Valley Wiki, Stardew Valley, Infobox cooking/doc, gift |site_name=Stardew Valley Wiki |type=article |title=Infobox cooking/doc - Stardew Valley Wiki }}

Example for use with Template:RecipeRow

<onlyinclude>{{{{{1|Infobox cooking}}}
|name            = Lucky Lunch
|image           = Lucky Lunch
|description     = A special little meal.
|buff            = {{name|Luck|+3}}
|duration        = 11m 11s
|dsvduration     = 1111
|edibility       = 40
|sellprice       = 250
|recipe          = {{CookingChannel|28 Spring, Year 2}}
|ingredients     = {{name|Sea Cucumber|1}}{{name|Tortilla|1}}{{name|Blue Jazz|1}}
}}</onlyinclude>