From Dark and Darker Wiki

m (Made iconbox size dynamic. Varies by Inventory Slot Size.)
(Trying to compress some images causes issues.)
Line 3: Line 3:
|name ={{{1}}}
|name ={{{1}}}
|image ={{{1}}}
|image ={{{1}}}
|size={{IconboxInventorySize|Utility Data|{{{1}}}}}
|size={{#if:{{#pos:{{#vardefineecho:size|{{IconboxInventorySize|Utility Data|{{{1}}}}}}}|45x45}}|60px|{{#var:size}}}}
|rarity ={{{2|{{#explode:{{Utility Data|{{{1}}}|rarities}}|,|-1}}}}}
|rarity ={{{2|{{#explode:{{Utility Data|{{{1}}}|rarities}}|,|-1}}}}}
|type ={{Utility Data|{{{1}}}|types|all}}
|type ={{Utility Data|{{{1}}}|types|all}}
Line 21: Line 21:
{{GenerateUtilityInfobox|Campfire Kit}}
{{GenerateUtilityInfobox|Campfire Kit}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Lantern}}
{{GenerateUtilityInfobox|Mystical Gem}}
</table>
</table>
</noinclude>
</noinclude>

Revision as of 04:26, 28 March 2024

Auto creates Utility infobox

Example

{{GenerateUtilityInfobox|Campfire Kit}}
{{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
A trusty iron pickaxe that can chip away at most ore.
Mystical Gem.png
Type:
Consumable
1x1InvSlot.jpg
Stack Size:
1
A beautiful jewel that shines mysteriously. There are elaborate parts that seem to fit somewhere.