From Dark and Darker Wiki
(Added example. Removed Cyclops's Club from the Exclusion list.) |
(Updated to use new item property incraftingrecipefor) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div {{# | -->{{#arraydefine:merchants|{{{{{ingredientcategory|Misc}}} Data|{{{1}}}|incraftingrecipefor}}}}<!-- | ||
--><div {{#ifeq:{{#arraysize:merchants}}|0|style="display:none"}}> | |||
==Ingredient== | ==Ingredient== | ||
{{{1|{{PAGENAME}}}}} can be used in [[crafting]]:<!-- | |||
{{ | -->{{#loop:i|0|{{#arraysize:merchants}}<!-- | ||
{{ | -->|{{#vardefine:merchant|{{#arrayindex:merchants|{{#var:i}}}}}}<!-- | ||
{{GenerateCraftingTable | -->{{GenerateCraftingTable|{{#var:merchant}}|ingredient={{{1|{{PAGENAME}}}}}|ingredientcategory={{{ingredientcategory|Misc}}}}}}}</div><!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
If the template is being used for non-Misc items, the category argument is required. | |||
=Example= | |||
<pre style="width:fit-content">{{Ingredient|Potion of Healing|category=Utility}}</pre> | |||
{{Ingredient|Potion of Healing|ingredientcategory=Utility}} | |||
=Example= | =Example= | ||
<pre style="width:fit-content">{{Ingredient|Cyclops's Club}}</pre> | <pre style="width:fit-content">{{Ingredient|Cyclops's Club}}</pre> |
Revision as of 06:02, 23 June 2024
If the template is being used for non-Misc items, the category argument is required.
Example
{{Ingredient|Potion of Healing|category=Utility}}
Ingredient
Potion of Healing can be used in crafting:Name | Ingredients | Merchant |
---|---|---|
Alchemist | ||
Alchemist | ||
Alchemist | ||
Alchemist | ||
Example
{{Ingredient|Cyclops's Club}}
Example
{{Ingredient|Firefly's Abdomen}}
Example
{{Ingredient|Gold}}
Example
{{Ingredient|Silver Ore}}