Template:Recipe: Difference between revisions

From Against the Storm Official Wiki
m (adding a default parameter to make it print itself)
m (changing examples)
Line 7: Line 7:




And another example: <code><nowiki>{{Recipe|Pickled Goods}}</nowiki></code> yields:
And another example: <code><nowiki>{{Recipe|Pie}}</nowiki></code> yields:
{{Recipe|Pickled Goods}}
{{Recipe|Pie}}





Revision as of 05:29, 12 February 2023

Lua error in Module:RenderRecipe at line 120: attempt to call field 'getRecipeForProduct' (a nil value).

This template calls renderRecipe, which writes out either ONE recipe if the product and building is specified, ALL recipes for the specified product, or ALL recipes at a specified building.

For example: {{Recipe|Crystalized Dew|Brickyard}} yields: Lua error in Module:RenderRecipe at line 106: attempt to call field 'getRecipeAtBuilding' (a nil value).


And another example: {{Recipe|Pie}} yields: Lua error in Module:RenderRecipe at line 120: attempt to call field 'getRecipeForProduct' (a nil value).


And a final example: {{Recipe||Scribe}} yields: Lua error in Module:RenderRecipe at line 142: attempt to call field 'getBuildingsRecipes' (a nil value).