Template:Infobox cooking/doc: Difference between revisions
Appearance
imported>Margotbean Update w/info on parameter dsvduration |
imported>Margotbean No edit summary |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
==Description== | |||
This template displays an infobox for cooked items (and some crafted items). Its syntax provides a way to transclude the information onto other pages, using [[:Template:RecipeRow]]. | |||
The health and energy values are calculated from the "edibility" parameter | '''Do not use this on your user page. It is reserved for content pages.''' | ||
== | |||
The health and energy values are calculated from the "edibility" parameter. These are the actual gains when a cooked item is consumed in-game, which are not always the same as the hover text values. | |||
|name | ==Parameters== | ||
|image | {|class="wikitable sortable" | ||
| | |- | ||
|source ( | !Parameter!!Notes | ||
|buff ( | |- | ||
| | |name||Name of item/name of page | ||
|dsvduration | |- | ||
|edibility | |image||Name of image, including extension | ||
|sellprice | |- | ||
|recipe ( | |description||In-game description of item (Use [[:Template:Description]]) | ||
|ingredients | |- | ||
|source||Source of item (''e.g.,'' <nowiki>[[Crafting]]</nowiki>)<br />Optional parameter; defaults to [[Cooking]] if omitted. | |||
|- | |||
|buff||Buffs given when consuming the item | |||
|- | |||
|duration||Duration of buff(s) | |||
|- | |||
|dsvduration||data-sort-value for duration of buffs (Format:mmss)<br />Optional, but tables that transclude items that use this template will not sort correctly without it | |||
|- | |||
|edibility||Found in <samp>ObjectInformation.xnb</samp> | |||
|- | |||
|sellprice||Found in <samp>ObjectInformation.xnb</samp>. Use only raw unformatted numbers | |||
|- | |||
|recipe||Recipe source(s) | |||
|- | |||
|ingredients||Ingredients | |||
|- | |||
|produces||Use for crafted items that produce >1 item per craft | |||
|- | |||
|qiseasoning||Calculates gold quality values for health, energy, and sell price<br />Must be set to false for all non-cooked items | |||
|- | |||
|health||Optional parameter, use for items whose health differs from the normal calculation (''e.g.,'' [[Bug Steak]]) | |||
|- | |||
|} | |||
==Example== | ==Example== | ||
<pre>{{Infobox cooking | <pre>{{Infobox cooking | ||
|name = Fried Mushroom | |name = Fried Mushroom | ||
|image = Fried Mushroom | |image = Fried Mushroom.png | ||
|description = | |description = {{Description|Fried Mushroom}} | ||
|buff = {{name|Attack|+2}}{{name|Defense|+4}} | |buff = {{name|Attack|+2}}{{name|Defense|+4}} | ||
|duration = 7m | |duration = 7m | ||
| Line 34: | Line 58: | ||
{{Infobox cooking | {{Infobox cooking | ||
|name = Fried Mushroom | |name = Fried Mushroom | ||
|image = Fried Mushroom | |image = Fried Mushroom.png | ||
|description = | |description = {{Description|Fried Mushroom}} | ||
|buff = {{name|Attack|+2}}{{name|Defense|+4}} | |buff = {{name|Attack|+2}}{{name|Defense|+4}} | ||
|duration = 7m | |duration = 7m | ||
| Line 45: | Line 69: | ||
|debug mode = yes | |debug mode = yes | ||
}} | }} | ||
{{clear}} | |||
==Example Syntax for use with [[Template:RecipeRow]]== | |||
<pre><onlyinclude>{{{{{1|Infobox cooking}}} | |||
|name = Lucky Lunch | |||
|image = Lucky Lunch.png | |||
|description = {{Description|Lucky Lunch}} | |||
|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></pre> | |||
<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
<includeonly> | <includeonly>{{Addlanglinks}}</includeonly> | ||
Latest revision as of 19:21, 24 December 2022
Description
This template displays an infobox for cooked items (and some crafted items). Its syntax provides a way to transclude the information onto other pages, using Template:RecipeRow.
Do not use this on your user page. It is reserved for content pages.
The health and energy values are calculated from the "edibility" parameter. These are the actual gains when a cooked item is consumed in-game, which are not always the same as the hover text values.
Parameters
| Parameter | Notes |
|---|---|
| name | Name of item/name of page |
| image | Name of image, including extension |
| description | In-game description of item (Use Template:Description) |
| source | Source of item (e.g., [[Crafting]]) Optional parameter; defaults to Cooking if omitted. |
| buff | Buffs given when consuming the item |
| duration | Duration of buff(s) |
| dsvduration | data-sort-value for duration of buffs (Format:mmss) Optional, but tables that transclude items that use this template will not sort correctly without it |
| edibility | Found in ObjectInformation.xnb |
| sellprice | Found in ObjectInformation.xnb. Use only raw unformatted numbers |
| recipe | Recipe source(s) |
| ingredients | Ingredients |
| produces | Use for crafted items that produce >1 item per craft |
| qiseasoning | Calculates gold quality values for health, energy, and sell price Must be set to false for all non-cooked items |
| health | Optional parameter, use for items whose health differs from the normal calculation (e.g., Bug Steak) |
Example
{{Infobox cooking
|name = Fried Mushroom
|image = Fried Mushroom.png
|description = {{Description|Fried Mushroom}}
|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) | ||||||||||
| Buff Duration | ||||||||||
| Energy / Health |
|
|||||||||
| Sell Price |
| |||||||||
| ||||||||||
| Recipe | ||||||||||
| Recipe Source(s) |
| |||||||||
| Ingredients | ||||||||||
{{#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 Syntax for use with Template:RecipeRow
<onlyinclude>{{{{{1|Infobox cooking}}}
|name = Lucky Lunch
|image = Lucky Lunch.png
|description = {{Description|Lucky Lunch}}
|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>
