From Dark and Darker Wiki
(Added example) |
(Added logic to generate tables with a manually provided list of items. This is used in template:craftable) |
||
Line 3: | Line 3: | ||
Create the crafting rows and store them in the var:rows | Create the crafting rows and store them in the var:rows | ||
-->{{#arraydefine:craftables|{{Merchant Data|{{{1}}}|Crafts|All}} }}<!-- | -->{{#arraydefine:craftables|{{Merchant Data|{{{1}}}|Crafts|All}} }}<!-- | ||
-->{{#if:{{{2|}}}|{{#arraydefine:craftables|{{{2}}}}} }}<!-- | |||
-->{{#vardefine:rows|<!-- | -->{{#vardefine:rows|<!-- | ||
-->{{#loop:i|0|{{#arraysize:craftables}}<!-- | -->{{#loop:i|0|{{#arraysize:craftables}}<!-- | ||
Line 43: | Line 44: | ||
<pre>{{GenerateCraftingTable|Weaponsmith|header=yes|ingredient=Cyclops's Club}}</pre> | <pre>{{GenerateCraftingTable|Weaponsmith|header=yes|ingredient=Cyclops's Club}}</pre> | ||
{{GenerateCraftingTable|Weaponsmith|header=yes|ingredient=Cyclops's Club}} | {{GenerateCraftingTable|Weaponsmith|header=yes|ingredient=Cyclops's Club}} | ||
==Example== | |||
<pre>{{GenerateCraftingTable|Weaponsmith|header=yes|Sterling Blade}}</pre> | |||
{{GenerateCraftingTable|Weaponsmith|header=yes|Sterling Blade}} | |||
==Example== | ==Example== | ||
<pre>{{GenerateCraftingTable|Alchemist|header=yes}}</pre> | <pre>{{GenerateCraftingTable|Alchemist|header=yes}}</pre> |
Revision as of 14:11, 2 June 2024
Example
{{GenerateCraftingTable|Weaponsmith|header=yes|ingredient=Cyclops's Club}}
Name | Ingredients | Trader |
---|---|---|
Weaponsmith |
Example
{{GenerateCraftingTable|Weaponsmith|header=yes|Sterling Blade}}
Name | Ingredients | Trader |
---|---|---|
Weaponsmith |
Example
{{GenerateCraftingTable|Alchemist|header=yes}}
Example
{{GenerateCraftingTable|Alchemist}}
Example
{{GenerateCraftingTable|Alchemist|ingredient=Silver Ore}}