From Dark and Darker Wiki

(Added table header and formatting.)
(Made table headers match content of tables.)
Line 2: Line 2:
-->{{#arraydefine:Utilities|{{Utility Data|AllLists|Types|Utility|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}<!--
-->{{#arraydefine:Utilities|{{Utility Data|AllLists|Types|Utility|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}<!--
--><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="rgb(220,220,220,0.2); color:#eee; background:transparent; text-align:center; vertical-align:middle;">
--><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="rgb(220,220,220,0.2); color:#eee; background:transparent; text-align:center; vertical-align:middle;">
<tr style="font-weight:bold;">
{{#switch:{{lc:{{{1}}}}}
<th style="width:5%">Name</th>
|drink
<th style="width:5%">Class</th>
|consumable=
<th style="width:5%">Movement Speed</th>
<tr style="font-weight:bold;">
<th style="width:10%">Damage on Hit</th>
<th style="width:5%">Name</th>
<th style="width:10%">Stats</th>
<th style="width:5%">Movement Speed</th>
<th style="width:30%">Effect</th>
<th style="width:20%">Effect</th>
<th style="width:10%">Action Time</th>
<th style="width:10%">Action Time</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Slowdown On Hit</th><!--
|musicalinstrument=
<tr style="font-weight:bold;">
<th style="width:5%">Name</th>
<th style="width:5%">Class</th>
<th style="width:5%">Movement Speed</th>
<th style="width:10%">Damage on Hit</th>
<th style="width:10%">Stats</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Slowdown On Hit</th>
|lightsource
<tr style="font-weight:bold;">
<th style="width:5%">Name</th>
<th style="width:5%">Class</th>
<th style="width:5%">Movement Speed</th>
<th style="width:10%">Damage on Hit</th>
<th style="width:20%">Effect</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Slowdown On Hit</th>
|throwable=
<tr style="font-weight:bold;">
<th style="width:5%">Name</th>
<th style="width:5%">Class</th>
<th style="width:5%">Movement Speed</th>
<th style="width:10%">Damage on Hit</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Slowdown On Hit</th>
|mining=
<tr style="font-weight:bold;">
<th style="width:5%">Name</th>
<th style="width:5%">Class</th>
<th style="width:5%">Movement Speed</th>
<th style="width:10%">Damage on Hit</th>
<th style="width:10%">Stats</th>
<th style="width:20%">Effect</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Slowdown On Hit</th>
|soulheart=
<tr style="font-weight:bold;">
<th style="width:5%">Name</th>
<th style="width:20%">Effect</th>
<th style="width:10%">Action Time</th>
|#default=
<tr style="font-weight:bold;">
<th style="width:5%">Name</th>
<th style="width:5%">Class</th>
<th style="width:5%">Movement Speed</th>
<th style="width:10%">Damage on Hit</th>
<th style="width:10%">Stats</th>
<th style="width:20%">Effect</th>
<th style="width:10%">Action Time</th>
<th style="width:10%">Action Movement Speed</th>
<th style="width:10%">Slowdown On Hit</th>
}}<!--
-->{{#loop:i|0|{{#arraysize:Utilities}}<!--
-->{{#loop:i|0|{{#arraysize:Utilities}}<!--
-->|{{#vardefine:current|{{#arrayindex:Utilities|{{#var:i}} }} }}<!--
-->|{{#vardefine:current|{{#arrayindex:Utilities|{{#var:i}} }} }}<!--

Revision as of 10:56, 8 May 2024

List Utilities and generate rows with them

Example

{{GenerateUtilityRows|Drink}}
Template:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRow
Name Movement Speed Effect Action Time Action Movement Speed
{{GenerateUtilityRows|Consumable}}
Template:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRow
Name Movement Speed Effect Action Time Action Movement Speed
{{GenerateUtilityRows|Installable}}
Template:GenerateUtilityRow
Name Class Movement Speed Damage on Hit Stats Effect Action Time Action Movement Speed Slowdown On Hit
{{GenerateUtilityRows|MusicalInstrument}}
Template:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRow
Name Class Movement Speed Damage on Hit Stats Action Movement Speed Slowdown On Hit
{{GenerateUtilityRows|LightSource}}
Template:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRow
Name Class Movement Speed Damage on Hit Stats Effect Action Time Action Movement Speed Slowdown On Hit
{{GenerateUtilityRows|Throwable}}
Name Class Movement Speed Damage on Hit Action Movement Speed Slowdown On Hit