From Dark and Darker Wiki

(Created page with "<includeonly><!-- -->{{Infobox |name ={{{1}}} |image ={{{1}}} |rarity ={{{2|{{#explode:{{Item Data|Utility|{{{1}}}|rarities}}|,|-1}}}}} |type ={{Item Data|Utility|{{{1}}}|types|all}} |description ={{Item Data|Utility|{{{1}}}|flavortext}} |invslots ={{Item Data|Utility|{{{1}}}|invslots}} |stacksize ={{Item Data|Utility|{{{1}}}|maxcount}} |nomargin =1 |nofloat =1 }}</includeonly><noinclude> Auto creates Utility infobox ==Example== <pre> {{GenerateMiscInfobox|...")
 
m (Changing Template to use calls that work with Utility Data.)
Line 3: Line 3:
|name ={{{1}}}
|name ={{{1}}}
|image ={{{1}}}
|image ={{{1}}}
|rarity ={{{2|{{#explode:{{Item Data|Utility|{{{1}}}|rarities}}|,|-1}}}}}
|rarity ={{{2|{{#explode:{{Utility Data|{{{1}}}|rarities}}|,|-1}}}}}
|type ={{Item Data|Utility|{{{1}}}|types|all}}
|type ={{Utility Data|{{{1}}}|types|all}}
|description ={{Item Data|Utility|{{{1}}}|flavortext}}
|description={{Utility Data|{{{1}}}|flavortext}}
|invslots ={{Item Data|Utility|{{{1}}}|invslots}}
|invslots ={{Utility Data|{{{1}}}|invslots}}
|stacksize ={{Item Data|Utility|{{{1}}}|maxcount}}
|stacksize ={{Utility Data|{{{1}}}|maxcount}}
|nomargin =1
|nomargin =1
|nofloat =1
|nofloat =1
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Auto creates Utility infobox
Auto creates Utility infobox
==Example==
==Example==
<pre>
<pre>
{{GenerateMiscInfobox|Campfire Kit}}
{{GenerateUtilityInfobox|Campfire Kit}}
{{GenerateMiscInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateMiscInfobox|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;">
{{GenerateMiscInfobox|Campfire Kit}}
{{GenerateUtilityInfobox|Campfire Kit}}
{{GenerateMiscInfobox|Pickaxe}}
{{GenerateUtilityInfobox|Pickaxe}}
{{GenerateMiscInfobox|Lantern}}
{{GenerateUtilityInfobox|Lantern}}
</table>
</table>
</noinclude>
</noinclude>

Revision as of 01:05, 19 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.
Lantern.png
Type:
LightSource
2x2InvSlot.jpg
Stack Size:
1
A lantern useful for lighting up the darkness.