From Dark and Darker Wiki

(Fixed headers displaying when there is no craftable content.)
(Added example. Added missing default PAGENAME.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--


--><div {{#if:1||style="display:none"}}>
-->{{#arraydefine:merchants|{{{{{ingredientcategory|Misc}}} Data|{{{1|{{PAGENAME}}}}}|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=
<pre style="width:fit-content">{{Ingredient|Cyclops's Club}}</pre>
{{Ingredient|Cyclops's Club}}
=Example=
<pre style="width:fit-content">{{Ingredient|Firefly's Abdomen}}</pre>
{{Ingredient|Firefly's Abdomen}}
{{Ingredient|Firefly's Abdomen}}
=Example=
<pre style="width:fit-content">{{Ingredient|Gold}}</pre>
{{Ingredient|Gold}}
{{Ingredient|Gold}}
=Example=
<pre style="width:fit-content">{{Ingredient|Gold Coin}}</pre>
{{Ingredient|Gold Coin}}
=Example=
<pre style="width:fit-content">{{Ingredient|Silver Ore}}</pre>
{{Ingredient|Silver Ore}}
{{Ingredient|Silver Ore}}
</noinclude>
</noinclude>

Latest revision as of 06:55, 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|Gold Coin}}

Ingredient

Gold Coin can be used in crafting:
NameIngredientsMerchant
Gold Ingot1
Wolf Fang2
Wolf Claw3
Gold Coin300
Alchemist
Gold Ingot1
Golden Teeth1
Gold Coin300
Alchemist
NameIngredientsMerchant
Grave Essence2
Wolf Pelt5
Gold Coin25
Leathersmith
Grave Essence2
Wolf Pelt4
Gold Coin25
Leathersmith
Troll Pelt1
Wolf Pelt2
Gold Coin25
Leathersmith
Centaur Tail1
Old Cloth2
Gold Coin25
Leathersmith
Centaur Tail1
Maggots3
Gold Coin25
Leathersmith
Centaur Tail1
Bone3
Gold Coin25
Leathersmith
Gold Coin Bag1
Enchanted Dark Fabric3
Spider Silk3
Spectral Fabric1
Leathersmith
NameIngredientsMerchant
Spider Silk1
Grave Essence3
Enchanted Dark Fabric1
Gold Coin200
Tailor
Spider Silk1
Enchanted Dark Fabric2
Gold Coin25
Tailor
Spider Silk1
Enchanted Dark Fabric1
Gold Coin25
Tailor
Spider Silk1
Enchanted Dark Fabric1
Gold Coin25
Tailor
Cyclops Rags1
Enchanted Dark Fabric1
Gold Coin25
Tailor
NameIngredientsMerchant
Longsword1
Dark Matter1
Gold Ingot3
Gold Coin50
Weaponsmith
Troll's Club1
Wolf Claw5
Bone2
Gold Coin50
Weaponsmith
Crystal Ball1
Captured Mana Flakes1
Intact Skull2
Gold Coin50
Weaponsmith
Recurve Bow1
Centaur Horn1
Bowstring5
Gold Coin50
Weaponsmith
Crystal Ball1
Cyclops Eye1
Grave Essence3
Gold Coin50
Weaponsmith
Castillon Dagger1
Frost Wyvern's Claws1
Froststone Ingot2
Gold Coin50
Weaponsmith

Example

{{Ingredient|Silver Ore}}

Ingredient

Silver Ore can be used in crafting: