From Dark and Darker Wiki

(Created page with "<includeonly><!-- -->{{#arraydefine:Utilities|{{Utility Data|AllLists|Types|Utility|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}<!-- -->{{#loop:i|0|{{#arraysize:Utilities}}<!-- -->|{{#vardefine:current|{{#arrayindex:Utilities|{{#var:i}} }} }}<!-- -->{{GenerateUtilityRow|{{#var:current}}}} }}<!-- --></includeonly><noinclude> List Utilities and generate rows with them == Example == <table class="wikitable"> <tr> <th>Code</th> <th>Preview</th> </tr>...")
 
(Added table header and formatting.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#arraydefine:Utilities|{{Utility Data|AllLists|Types|Utility|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}<!--
-->{{#arraydefine:Utilities|{{Utility Data|AllLists|Types|Utility|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}<!--
-->{{#loop:i|0|{{#arraysize:Utilities}}<!--
--><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;">
-->|{{#vardefine:current|{{#arrayindex:Utilities|{{#var:i}} }} }}<!--
<tr style="font-weight:bold;">
-->{{GenerateUtilityRow|{{#var:current}}}} }}<!--
<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:30%">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}}<!--
-->|{{#vardefine:current|{{#arrayindex:Utilities|{{#var:i}} }} }}<!--
-->{{GenerateUtilityRow|{{#var:current}}}} }}</table><!--


--></includeonly><noinclude>
--></includeonly><noinclude>
List Utilities and generate rows with them
List Utilities and generate rows with them
== Example ==
== Example ==
<table class="wikitable">
<pre>{{GenerateUtilityRows|Drink}}</pre>
<tr>
{{GenerateUtilityRows|Drink}}
<th>Code</th>
<pre>{{GenerateUtilityRows|Consumable}}</pre>
<th>Preview</th>
{{GenerateUtilityRows|Consumable}}
</tr>
<pre>{{GenerateUtilityRows|Installable}}</pre>
<tr>
{{GenerateUtilityRows|Installable}}
<td style="padding: 20px 30px;">
<pre>{{GenerateUtilityRows|MusicalInstrument}}</pre>
<pre>{{GenerateUtilityRows|Drink}}</pre>
{{GenerateUtilityRows|MusicalInstrument}}
</td>
<pre>{{GenerateUtilityRows|LightSource}}</pre>
<td style="padding: 20px 30px;">
{{GenerateUtilityRows|LightSource}}
{{GenerateUtilityRows|Drink}}
<pre>{{GenerateUtilityRows|Throwable}}</pre>
</td>
{{GenerateUtilityRows|Throwable}}
</tr>
<tr>
<td style="padding: 20px 30px;">
<pre>{{GenerateUtilityRows|Installable}}</pre>
</td>
<td style="padding: 20px 30px;">
{{GenerateUtilityRows|Installable}}
</td>
</tr>
</table>
</noinclude>
</noinclude>

Revision as of 06:49, 8 May 2024

List Utilities and generate rows with them

Example

{{GenerateUtilityRows|Drink}}
Template:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRow
Name Class Movement Speed Damage on Hit Stats Effect Action Time Action Movement Speed Slowdown On Hit
{{GenerateUtilityRows|Consumable}}
Template:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRowTemplate:GenerateUtilityRow
Name Class Movement Speed Damage on Hit Stats Effect Action Time Action Movement Speed Slowdown On Hit
{{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 Effect Action Time 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 Stats Effect Action Time Action Movement Speed Slowdown On Hit