From Dark and Darker Wiki

mNo edit summary
(Fixed issue with outdated and deleted template. Moved nested if statements into a switch block.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#if:<!--
 
If the Alchemist crafts this item, then set the merchant to Alchemist.
-->{{#switch:1
-->{{#if:{{Merchant Data|Alchemist|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!--
    |{{#if:{{Merchant Data|Alchemist|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}|1}}=<!--
-->|{{#vardefineecho:merchant|Alchemist}}<!--
        -->{{#vardefine:merchant|Alchemist}}
Else if the Armourer crafts this item, then set the merchant to Armourer.
    |{{#if:{{Merchant Data|Armourer|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}|1}}=<!--
-->|{{#if:{{Merchant Data|Armourer|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!--
        -->{{#vardefine:merchant|Armourer}}
-->|{{#vardefineecho:merchant|Armourer}}<!--
    |{{#if:{{Merchant Data|Leathersmith|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}|1}}=<!--
Else if the Leathersmith crafts this item, then set the merchant to Leathersmith.
        -->{{#vardefine:merchant|Leathersmith}}
-->|{{#if:{{Merchant Data|Leathersmith|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!--
    |{{#if:{{Merchant Data|Tailor|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}|1}}=<!--
-->|{{#vardefineecho:merchant|Leathersmith}}<!--
        -->{{#vardefine:merchant|Tailor}}
Else if the Tailor crafts this item, then set the merchant to Tailor.
    |{{#if:{{Merchant Data|Weaponsmith|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}|1}}=<!--
-->|{{#if:{{Merchant Data|Tailor|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!--
        -->{{#vardefine:merchant|Weaponsmith}} }}<!--
-->|{{#vardefineecho:merchant|Tailor}}<!--
 
Else if the Weaponsmith crafts this item, then set the merchant to Weaponsmith.
--><h2>Craftable</h2>
-->|{{#if:{{Merchant Data|Weaponsmith|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!--
{{{1|{{PAGENAME}} }}} is a [[Crafting|craftable item]].
-->|{{#vardefineecho:merchant|Weaponsmith}} }} }} }} }} }}|
{{GenerateCraftingTable|{{#var:merchant}}|{{{1|{{PAGENAME}}}}}|header=y}}<!--
==Craftable==
 
{{{1|{{PAGENAME}}}}} is a [[Crafting|craftable]].
--></includeonly><noinclude>
{{CraftingTable|
{{GenerateCraftingRow|{{#var:merchant}}|{{{1|{{PAGENAME}}}}} }}
}} }}</includeonly><noinclude>
<pre>{{Craftable|Sterling Blade}}</pre>
<pre>{{Craftable|Sterling Blade}}</pre>
{{Craftable|Sterling Blade}}
{{Craftable|Sterling Blade}}
</noinclude>
</noinclude>

Revision as of 14:13, 2 June 2024

{{Craftable|Sterling Blade}}

Craftable

Sterling Blade is a craftable item.

NameIngredientsMerchant
Longsword1
Silver Powder2
Weaponsmith