From Dark and Darker Wiki
m (Cleaned up whitespace. Formatted the code to indicate scope level.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ #arraydefine: craftables | {{Crafting Data|{{{1}}}}} }} | <includeonly>{{#arraydefine:craftables|{{Crafting Data|{{{1}}}}} }} | ||
{{ | {{ | ||
#loop: i | |||
|0 | |||
|{{#arraysize:craftables}} | |||
|<nowiki/>{{#vardefine:craft|{{#arrayindex:craftables|{{#var:i}} }} }}<!-- | |||
-->{{#if:{{{ingredient|}}}<!-- | |||
-->|{{#if:{{#pos:{{Crafting Data|{{#var:craft}}|ingredients}}|{{{ingredient|}}}}}<!-- | |||
-->|{{GenerateCraftingRow|{{#var:craft}}}} }}<!-- | |||
-->|{{GenerateCraftingRow|{{#var:craft}}}} }} | |||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 15: | Line 15: | ||
<pre> | <pre> | ||
{{CraftingTable| | {{CraftingTable| | ||
{{GenerateCraftingRows|Alchemist}} | |||
}} | }} | ||
</pre> | </pre> | ||
{{CraftingTable| | {{CraftingTable| | ||
{{GenerateCraftingRows|Alchemist}} | |||
}} | }} | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
{{CraftingTable| | {{CraftingTable| | ||
{{GenerateCraftingRows|all|ingredient=Gold}} | |||
}} | }} | ||
</pre> | </pre> | ||
{{CraftingTable| | {{CraftingTable| | ||
{{GenerateCraftingRows|all|ingredient=Gold}} | |||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 22:08, 13 March 2024
Auto creates crafting row
Example
{{CraftingTable| {{GenerateCraftingRows|Alchemist}} }}
Example
{{CraftingTable| {{GenerateCraftingRows|all|ingredient=Gold}} }}