From Dark and Darker Wiki

(Changing Template to use calls that work with Merchant Data.)
(Added merchant parameter to GenCraftingRow call.)
Line 8: Line 8:
OR the ingredient is empty, generate the crafting row.
OR the ingredient is empty, generate the crafting row.
-->{{#if:{{#pos:{{Merchant Data|{{{1}}}|Crafts|{{#var:craft}}|ingredients}}|{{{ingredient|}}}}}{{#if:{{{ingredient|}}}||continue}}<!--
-->{{#if:{{#pos:{{Merchant Data|{{{1}}}|Crafts|{{#var:craft}}|ingredients}}|{{{ingredient|}}}}}{{#if:{{{ingredient|}}}||continue}}<!--
-->|{{GenerateCraftingRow|{{#var:craft}} }} }}
-->|{{GenerateCraftingRow|{{{1}}}|{{#var:craft}} }} }}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 05:15, 25 March 2024

Auto creates crafting row

Example

{{CraftingTable|
	{{GenerateCraftingRows|Alchemist}}
}}

Template:CraftingTable

Example

{{CraftingTable|
	{{GenerateCraftingRows|Alchemist|ingredient=Gold}}
}}

Template:CraftingTable

Example

{{CraftingTable|
	{{GenerateCraftingRows|Weaponsmith|ingredient=Gold}}
}}

Template:CraftingTable

Example

{{CraftingTable|
	{{GenerateCraftingRows|Armourer|ingredient=Gold}}
}}

Template:CraftingTable