Jump to content

Template:Infobox cooking/doc: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
imported>Margotbean
add image extensions to examples (they are not optional anymore)
Line 6: Line 6:
{{Infobox cooking
{{Infobox cooking
|name (name of cooked dish/name of page -- not optional)
|name (name of cooked dish/name of page -- not optional)
|image (name of image -- not optional) Note: do not include ".png"
|image (name of image -- not optional)
|description
|description
|source (optional)
|source (optional)
Line 21: Line 21:
<pre>{{Infobox cooking
<pre>{{Infobox cooking
|name        = Fried Mushroom
|name        = Fried Mushroom
|image        = Fried Mushroom
|image        = Fried Mushroom.png
|description  = Earthy and aromatic.
|description  = Earthy and aromatic.
|buff        = {{name|Attack|+2}}{{name|Defense|+4}}
|buff        = {{name|Attack|+2}}{{name|Defense|+4}}
Line 34: Line 34:
{{Infobox cooking
{{Infobox cooking
|name        = Fried Mushroom
|name        = Fried Mushroom
|image      = Fried Mushroom
|image      = Fried Mushroom.png
|description = Earthy and aromatic.
|description = Earthy and aromatic.
|buff        = {{name|Attack|+2}}{{name|Defense|+4}}
|buff        = {{name|Attack|+2}}{{name|Defense|+4}}
Line 49: Line 49:
<pre>&lt;onlyinclude&gt;{{{{{1|Infobox cooking}}}
<pre>&lt;onlyinclude&gt;{{{{{1|Infobox cooking}}}
|name            = Lucky Lunch
|name            = Lucky Lunch
|image          = Lucky Lunch
|image          = Lucky Lunch.png
|description    = A special little meal.
|description    = A special little meal.
|buff            = {{name|Luck|+3}}
|buff            = {{name|Luck|+3}}

Revision as of 21:33, 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)
|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.png
|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
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.png
|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>