Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
Infobox Template for cooked items (and some crafted items), based on Template:Infobox, but a simpler version.  Cooked items don't have seasons, profession modifiers, etc.
+
__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, 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==
   
'''Do not use this on your user page. It is reserved for content pages.'''
 
'''Do not use this on your user page. It is reserved for content pages.'''
<pre>
+
 
{{Infobox cooking
+
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 (name of cooked dish/name of page -- not optional)
+
 
|image (name of image -- not optional)
+
==Parameters==
|description (not optional)
+
{|class="wikitable sortable"
|source (optional)
+
|-
|buff (optional)
+
!Parameter!!Notes
|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)
+
|name||Name of item/name of page
|edibility
+
|-
|sellprice (raw unformatted numbers only)
+
|image||Name of image, including extension
|recipe (recipe source)
+
|-
|ingredients
+
|description||In-game description of item (Use [[:Template:Description]])
|produces (optional - use for crafted items that produce >1 item per craft)
+
|-
|qiseasoning -- calculates gold values for health, energy, and sell price
+
|source||Source of item (''e.g.,'' <nowiki>[[Crafting]]</nowiki>)<br />Optional parameter; defaults to [[Cooking]] if omitted.
                Set to false for all non-cooked items
+
|-
|health (optional, use for items whose health is calculated incorrectly)
+
|buff||Buffs given when consuming the item
}}</pre>
+
|-
 +
|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==
Line 51: Line 70:  
}}
 
}}
 
{{clear}}
 
{{clear}}
==Example for use with [[Template:RecipeRow]]==
+
==Example Syntax for use with [[Template:RecipeRow]]==
 
<pre>&lt;onlyinclude&gt;{{{{{1|Infobox cooking}}}
 
<pre>&lt;onlyinclude&gt;{{{{{1|Infobox cooking}}}
 
|name            = Lucky Lunch
 
|name            = Lucky Lunch
106,979

edits

Navigation menu