Template:Recipe: Difference between revisions

From Against the Storm Official Wiki
(created; doesn't work yet!)
 
(changed formatting a bit)
Line 12: Line 12:
{{Recipe|Biscuits}}
{{Recipe|Biscuits}}
</pre>
</pre>


{{Recipe|Biscuits|Cookhouse}}
{{Recipe|Biscuits|Cookhouse}}
 
<nowiki>
---
---
 
</nowiki>
{{Recipe|Biscuits}}
{{Recipe|Biscuits}}
</noinclude>
</noinclude>

Revision as of 20:02, 8 February 2023

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

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.

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 120: attempt to call field 'getRecipeForProduct' (a nil value).