Template:Recipe: Difference between revisions

From Against the Storm Official Wiki
(took out pipe for optional arg 2)
mNo edit summary
Line 1: Line 1:
{{#invoke:RenderRecipe|renderRecipe|product={{{1}}}|building={{{2}}}}}<noinclude>
{{#invoke:RenderRecipe|renderRecipe|product={{{1}}}|building={{{2}}}}}<noinclude>


This template calls renderRecipe, which write out either ONE table if the argument building is provided, otherwise it will write out tables representing the data for the recipe for each of the buildings.
This template calls renderRecipe, which write out either ONE table if the argument building is provided, otherwise it will write out ALL tables representing the data for the recipe for each of the buildings.


For example:
For example:

Revision as of 21:08, 8 February 2023

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

This template calls renderRecipe, which write out either ONE table if the argument building is provided, otherwise it will write out ALL tables representing the data for the recipe for each of the buildings.

For example:

{{Recipe|Biscuits|Cookhouse}}

---

{{Recipe|Biscuits}}


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

---

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