From Dark and Darker Wiki

(Changed table headers of Ammo Misc types.)
(Fixed bug. Table and header row were missing closing tags.)
Line 4: Line 4:
--><table class="wikitable sortable jquery-tablesorter stripedtable" cellspacing="0" style="color:#eee; background:transparent; text-align:center; vertical-align:middle;">
--><table class="wikitable sortable jquery-tablesorter stripedtable" cellspacing="0" style="color:#eee; background:transparent; text-align:center; vertical-align:middle;">
<tr>
<tr>
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
<!-- Must manually set colspan and col titles according to drop existence of Gems -->
<!-- Must manually set colspan and col titles according to drop existence of Gems -->
|Gem=<th style="font-weight:bold; width:200px;" rowspan="2">Name</th>
|Gem=<th style="font-weight:bold; width:200px;" rowspan="2">Name</th>
Line 53: Line 53:
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Price / Slot Size</th>
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Price / Slot Size</th>
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Inventory Size</th>
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Inventory Size</th>
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Max Stack Size</th>}}<!--
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Max Stack Size</th>}}</tr><!--
-->{{#loop:i|0|{{#arraysize:Miscs}}<!--
-->{{#loop:i|0|{{#arraysize:Miscs}}<!--
-->|{{#vardefine:current|{{#arrayindex:Miscs|{{#var:i}} }} }}<!--
-->|{{#vardefine:current|{{#arrayindex:Miscs|{{#var:i}} }} }}<!--
If the current item is Silver Ore, do not generate a row for it
If the current item is Silver Ore, do not generate a row for it
-->{{GenerateMiscRow|{{#var:current}}}} }}<!--
-->{{GenerateMiscRow|{{#var:current}}}} }}</table><!--


--></includeonly><noinclude>
--></includeonly><noinclude>
Line 64: Line 64:
<pre>{{GenerateMiscRows|Gem}}</pre>
<pre>{{GenerateMiscRows|Gem}}</pre>
{{GenerateMiscRows|Gem}}
{{GenerateMiscRows|Gem}}
==Example 2==
<pre>{{GenerateMiscRows|Herb}}</pre>
{{GenerateMiscRows|Herb}}
==Example 3==
<pre>{{GenerateMiscRows|Ammo}}</pre>
{{GenerateMiscRows|Ammo}}
</noinclude>
</noinclude>

Revision as of 12:48, 8 May 2024

List Miscs and generate rows with them

Example 1

{{GenerateMiscRows|Gem}}

Template:GenerateMiscRows

Example 2

{{GenerateMiscRows|Herb}}

Template:GenerateMiscRows

Example 3

{{GenerateMiscRows|Ammo}}

Template:GenerateMiscRows