Unchecked

Template:RecipeTable/doc

From Eco - English Wiki

This is the documentation page for Template:RecipeTable

Purpose[edit source]

This template is used to create a wikitable for crafting recipes.

Notes[edit source]

Documentation will be moved to the documentation file when the template is more complete.

Parameters[edit source]

Usage[edit source]

Many parameters have either '#' or '#.#' at the end of them, and are used for the parts of each recipe.
'#' should be replaced by the recipe number (for example: replace it with 1 for the first recipe, 2 for the second recipe, and so on).
The first # in '#.#' should be replaced by the recipe number.
The second # in '#.#' is used to list multiple items in a part of the recipe (for example: if the second recipe has 2 ingredients, you set the first ingredient in 'material2.1' and the second ingredient in 'material2.2').

Parameter List[edit source]

Parameter Required Description
numRecipes = number Yes The number of recipes. Must be a number greater than 0.
checkForImage = 1 No Setting this parameter to '1' makes the recipe use NoImage.png anywhere an image can't be found. This is not reccomended for very large pages like Crafting or Food.
displayCraftStation = 1 Yes Determines if the Crafting Station column is shown on the table or not. A value other than "1" hides the column.
craftStation# = station name Yes The crafting station used to make the recipe.
craftStationImg# = file name No Provides an alternate image to use in the recipe. Pass in the file name without 'File:' at the start of the name.
item#.# = item name Yes The item(s) being crafted. Supports up to 2 items, but only 1 is required.
itemNum#.# = number No The number of an item crafted in a recipe. Leaving this blank sets the number to 1.
itemImg#.# = file name No Provides an alternate image to use in the recipe. Pass in the file name without 'File:' at the start of the name.
skillNeed# = skill name No The skill needed to unlock the recipe; leave blank if no skill is needed.
skillLvlNeed# = skill level Yes The level of the skill needed to unlock the recipe. This is only needed when "skillNeed#" is used.
skillNeedImg# = file name No Provides an alternate image to use in the recipe. Pass in the file name without 'File:' at the start of the name.
material#.# = material name Yes The material used for crafting a recipe. Supports up to 4 items, but only 1 is required.
materialNum#.# = number No The number of a material needed for a recipe. Leaving this blank sets the number to 1.
materialImg#.# = file name No Provides an alternate image to use in the recipe. Pass in the file name without 'File:' at the start of the name.
craftTime# = number Yes The time it takes to craft the recipe.
affectSkill#.# = skill name No A skill that affects the crafting recipe. Supports up to 2 items.
affectSkillImg#.# = file name No Provides an alternate image to use in the recipe. Pass in the file name without 'File:' at the start of the name.
 Required for each recipe

Examples[edit source]

Examples are not guaranteed to be accurate recipes in the game, and are instead used to show the capabilities of the template.



Lua error in ...ribunto/includes/Engines/LuaCommon/lualib/mwInit.lua at line 17: bad argument #1 to 'old_pairs' (table expected, got nil).

How to make above example
{{RecipeTable |numRecipes=1 |displayCraftStation=1 |craftStation1=Campfire |item1.1=Campfire Stew |itemNum1.1=1 |item1.2=Tallow |itemNum1.2=2 |skillNeed1= |material1.1=Stone |materialNum1.1=3 |material1.2=Corn |materialNum1.2=6 |material1.3=Beet |materialNum1.3=5 |material1.4=Raw Meat |materialNum1.4=8 |craftTime1=1 minute |affectSkill1.1=Campfire Cooking Speed |affectSkill1.2=Campfire Cooking Efficiency }}



Lua error in Module:CraftingParser at line 16: attempt to index field 'skillNeeds' (a nil value).

How to make above example
{{RecipeTable |numRecipes=3 |checkForImage=1 |displayCraftStation=1 |craftStation1=Campfire |item1.1=Campfire Roast |item1.2=Tallow |itemNum1.2=1 |skillNeed1=Campfire Creations |skillLvlNeed1=2 |material1.1=Raw Roast |craftTime1=1 minute |affectSkill1.1=Campfire Creations Efficiency |affectSkill1.2=Campfire Creations Speed |craftStation2=Campfire |item2.1=Campfire Stew |skillNeed2=Campfire Creations |skillLvlNeed2=4 |material2.1=Tallow |materialNum2.1=2 |material2.2=Fiddlehead |materialNum2.2=20 |material2.3=Camas Bulb |materialNum2.3=10 |material2.4=Scrap Meat |materialNum2.4=10 |craftTime2=1 minute |affectSkill2.1=Campfire Creations Efficiency |affectSkill2.2=Campfire Creations Speed |craftStation3=Campfire |item3.1=Charred Meat |itemNum3.1=7 |item3.2=Tallow |itemNum3.2=4 |skillNeed3=Campfire Cooking |skillLvlNeed3=2 |material3.1=Elk Carcass |craftTime3=7 minutes |affectSkill3.1=Campfire Cooking Efficiency |affectSkill3.2=Campfire Cooking Speed }}