From Dark and Darker Wiki

(Trying to compress some images causes issues.)
(Added Item Achieve section.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine:rarity|{{#explode:{{Utility Data|{{{1}}}|rarities}}|,|-1}}}}<!--
-->{{Infobox
-->{{Infobox
|name ={{{1}}}
|name ={{{1}}}
|image ={{{1}}}
|image ={{{1}}}
|size={{#if:{{#pos:{{#vardefineecho:size|{{IconboxInventorySize|Utility Data|{{{1}}}}}}}|45x45}}|60px|{{#var:size}}}}
|size={{#if:{{#pos:{{#vardefineecho:size|{{IconboxInventorySize|Utility Data|{{{1}}}}}}}|45x45}}|60px|{{#var:size}}}}
|rarity ={{{2|{{#explode:{{Utility Data|{{{1}}}|rarities}}|,|-1}}}}}
|rarity ={{{2|{{#var:rarity}}}}}
|type ={{Utility Data|{{{1}}}|types|all}}
|type ={{Utility Data|{{{1}}}|types|all}}
|description={{Utility Data|{{{1}}}|flavortext}}
|description={{Utility Data|{{{1}}}|flavortext}}
|invslots ={{Utility Data|{{{1}}}|invslots}}
|invslots ={{Utility Data|{{{1}}}|invslots}}
|itemachieve={{Utility Data|{{{1}}}|AP|{{{2|{{#var:rarity}}}}}}}
|stacksize ={{Utility Data|{{{1}}}|maxcount}}
|stacksize ={{Utility Data|{{{1}}}|maxcount}}
|nomargin =1
|nomargin =1
Line 15: Line 17:
==Example==
==Example==
<pre>
<pre>
{{GenerateUtilityInfobox|Campfire Kit}}
{{GenerateUtilityInfobox|Campfire Kit|2}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Lantern}}</pre>
{{GenerateUtilityInfobox|Lantern}}</pre>
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;">
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;">
{{GenerateUtilityInfobox|Campfire Kit}}
{{GenerateUtilityInfobox|Campfire Kit|2}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Mystical Gem}}
{{GenerateUtilityInfobox|Mystical Gem}}
</table>
</table>
</noinclude>
</noinclude>

Revision as of 23:03, 13 May 2024

Auto creates Utility infobox

Example

{{GenerateUtilityInfobox|Campfire Kit|2}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Lantern}}
Campfire Kit.png
Type:
Installable,CampfireKit
2x2InvSlot.jpg
Stack Size:
1
A crackling campfire that you can rest near and recover.
Pickaxe.png
Type:
Mining
2x3InvSlot.jpg
Stack Size:
1
Item Achieve:
60
A trusty iron pickaxe that can chip away at most ore.
Mystical Gem.png
Type:
Consumable
1x1InvSlot.jpg
Stack Size:
1
Item Achieve:
10
A beautiful jewel that shines mysteriously. There are elaborate parts that seem to fit somewhere.