Template:Recipe: Difference between revisions

From Against the Storm Official Wiki
(putting the pipe back in. it was necessary to get the arguments in the right order)
(changed preview format)
Line 3: Line 3:
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.
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: <code><nowiki>{{Recipe|Biscuits|Cookhouse}}</nowiki></code> yields:


<pre>
{{Recipe|Biscuits|Cookhouse}}
{{Recipe|Biscuits|Cookhouse}}


---
And another example: <code><nowiki>{{Recipe|Biscuits}}</nowiki></code> yields:
 
{{Recipe|Biscuits}}
</pre>
 
 
{{Recipe|Biscuits|Cookhouse}}
 
<nowiki>---</nowiki>


{{Recipe|Biscuits}}
{{Recipe|Biscuits}}
</noinclude>
</noinclude>

Revision as of 21:43, 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 ALL tables representing the data for the recipe for each of the buildings.

For example: {{Recipe|Biscuits|Cookhouse}} yields:

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

And another example: {{Recipe|Biscuits}} yields:

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