Changes

no edit summary
Line 1: Line 1: −
Infobox Template for cooked items, based on Template:Infobox, but a simpler version.  Cooked items don't have quality versions, 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.)
+
'''Do not use this on your user page. It is reserved for content pages.'''
==Use==
+
 
<pre>
+
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.
{{Infobox cooking
+
 
|name (name of cooked dish/name of page -- not optional)
+
==Parameters==
|image (name of image -- not optional) Note: do not include ".png"
+
{|class="wikitable sortable"
|description
+
|-
|source (optional)
+
!Parameter!!Notes
|buff (optional)
+
|-
|duration (optional -- include only if buffs are included)
+
|name||Name of item/name of page
|dsvduration (data-sort-value for duration of buffs -- optional, but table will not sort correctly without it) (Format:mmss)
+
|-
|edibility
+
|image||Name of image, including extension
|sellprice (raw unformatted numbers only)
+
|-
|recipe (recipe source)
+
|description||In-game description of item (Use [[:Template:Description]])
|ingredients
+
|-
}}</pre>
+
|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  = Earthy and aromatic.
+
|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 = Earthy and aromatic.
+
|description = {{Description|Fried Mushroom}}
 
|buff        = {{name|Attack|+2}}{{name|Defense|+4}}
 
|buff        = {{name|Attack|+2}}{{name|Defense|+4}}
 
|duration    = 7m
 
|duration    = 7m
Line 46: Line 70:  
}}
 
}}
 
{{clear}}
 
{{clear}}
==Example for use with [[Template:RecipeRow]]==
+
==Example Syntax for use with [[Template:RecipeRow]]==
<pre>
+
<pre>&lt;onlyinclude&gt;{{{{{1|Infobox cooking}}}
<onlyinclude>{{{{{1|Infobox cooking}}}
   
|name            = Lucky Lunch
 
|name            = Lucky Lunch
|image          = Lucky Lunch
+
|image          = Lucky Lunch.png
|description    = A special little meal.
+
|description    = {{Description|Lucky Lunch}}
 
|buff            = {{name|Luck|+3}}
 
|buff            = {{name|Luck|+3}}
 
|duration        = 11m 11s
 
|duration        = 11m 11s
Line 59: Line 82:  
|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>
<includeonly>[[de:Vorlage:{{PAGENAME}}]]
+
<includeonly>{{Addlanglinks}}</includeonly>
[[es:Plantilla:{{PAGENAME}}]]
  −
[[ja:テンプレート:{{PAGENAME}}]]
  −
[[pt:Predefinição:{{PAGENAME}}]]
  −
[[ru:Шаблон:{{PAGENAME}}]]
  −
[[zh:Template:{{PAGENAME}}]]</includeonly>
 
106,033

edits