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><!--
Manually exclude items that are in this list
-->{{#vardefine:exclude|{{#pos:Beetle Wings,Blue Eyeballs,Bug Shell,Centaur Hoof,Firefly's Abdomen,Frozen Heart,Giant Toe,Glowing Blue Ice Eyes,Goblin Ear,Infected Flesh,Kobold's Ear,Mimic Tongue,Mimic Tooth,Troll's Club,Volcanic Ash,Wendigo's Hoof,Wendigo's Sharp Claws|{{{1|{{PAGENAME}}}}}}} }}<!--


--><div {{#if:{{#var:exclude}}|style="display:none"}}>
-->{{#arraydefine:merchants|{{{{{ingredientcategory|Misc}}} Data|{{{1}}}|incraftingrecipefor}}}}<!--
--><div {{#ifeq:{{#arraysize:merchants}}|0|style="display:none"}}>
==Ingredient==
==Ingredient==
You can use {{{1|{{PAGENAME}}}}} in [[Crafting]]:
{{{1|{{PAGENAME}}}}} can be used in [[crafting]]:<!--
{{GenerateCraftingTable|Alchemist|ingredient={{{1|{{PAGENAME}}}}}|header=yes}}
-->{{#loop:i|0|{{#arraysize:merchants}}<!--
{{GenerateCraftingTable|Armourer|ingredient={{{1|{{PAGENAME}}}}}|header=yes}}
-->|{{#vardefine:merchant|{{#arrayindex:merchants|{{#var:i}}}}}}<!--
{{GenerateCraftingTable|Leathersmith|ingredient={{{1|{{PAGENAME}}}}}|header=yes}}
    -->{{GenerateCraftingTable|{{#var:merchant}}|ingredient={{{1|{{PAGENAME}}}}}|ingredientcategory={{{ingredientcategory|Misc}}}}}}}</div><!--
{{GenerateCraftingTable|Tailor|ingredient={{{1|{{PAGENAME}}}}}|header=yes}}
{{GenerateCraftingTable|Weaponsmith|ingredient={{{1|{{PAGENAME}}}}}|header=yes}}</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}}

Example

{{Ingredient|Cyclops's Club}}

Ingredient

Cyclops's Club can be used in crafting:
NameIngredientsMerchant
Club1
Cyclops's Club1
Grave Essence1
Bone3
Weaponsmith

Example

{{Ingredient|Firefly's Abdomen}}

Ingredient

Firefly's Abdomen can be used in crafting:
NameIngredientsMerchant
Flanged Mace1
Firefly's Abdomen1
Broken Skull3
Gold Ingot3
Weaponsmith

Example

{{Ingredient|Gold}}

Ingredient

Gold can be used in crafting:

Example

{{Ingredient|Silver Ore}}

Ingredient

Silver Ore can be used in crafting: