From Dark and Darker Wiki
(Fixed issue with outdated and deleted template. Moved nested if statements into a switch block.) |
(Changed to use item property iscraftableby) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{# | -->{{#arraydefine:merchants|{{{{{category|Armor}}} Data|{{{1}}}|iscraftableby}}}}<!-- | ||
--><div {{#ifeq:{{#arraysize:merchants}}|0|style="display:none"}}> | |||
<h2>Craftable</h2> | |||
{{{1|{{PAGENAME}} }}} is a [[Crafting|craftable item]].<!-- | |||
-->{{#loop:i |0 |{{#arraysize:merchants}}<!-- | |||
-->|{{#vardefine:merchant|{{#arrayindex:merchants|{{#var:i}}}}}}<!-- | |||
-->{{GenerateCraftingTable|{{#var:merchant}}|{{{1|{{PAGENAME}}}}}}}}}</div><!-- | |||
--> | |||
{{GenerateCraftingTable|{{#var:merchant}}|{{{1|{{PAGENAME}}}}} | |||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
<pre>{{Craftable|Sterling Blade}}</pre> | ==Example== | ||
{{Craftable|Sterling Blade}} | <pre>{{Craftable|Golden Cloak}}</pre> | ||
{{Craftable|Iron Ingot}} | |||
==Example== | |||
<pre>{{Craftable|Golden Cloak}}</pre> | |||
{{Craftable|Golden Cloak}} | |||
==Example== | |||
<pre>{{Craftable|Sterling Blade|category=Weapon}}</pre> | |||
{{Craftable|Sterling Blade|category=Weapon}} | |||
==Example== | |||
<pre>{{Craftable|Grimsmile Ring|category=Accessory}}</pre> | |||
{{Craftable|Grimsmile Ring|category=Accessory}} | |||
==Example== | |||
<pre>{{Craftable|Rare Potion of Healing|category=Utility}}</pre> | |||
{{Craftable|Rare Potion of Healing|category=Utility}} | |||
==Example== | |||
<pre>{{Craftable|Gold Coin Bag|category=Misc}}</pre> | |||
{{Craftable|Gold Coin Bag|category=Misc}} | |||
</noinclude> | </noinclude> |
Revision as of 05:23, 23 June 2024
Example
{{Craftable|Golden Cloak}}
Example
{{Craftable|Golden Cloak}}
Example
{{Craftable|Sterling Blade|category=Weapon}}
Example
{{Craftable|Grimsmile Ring|category=Accessory}}
Example
{{Craftable|Rare Potion of Healing|category=Utility}}
Example
{{Craftable|Gold Coin Bag|category=Misc}}