From Dark and Darker Wiki
(Added exception for Silver Ore item.) |
(Adjusted Gem and Herb tables to match the new widths of the rows.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:Miscs|{{Misc Data|Alllists|Types|Misc|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}<!-- | <includeonly><!-- | ||
-->{{#arraydefine:Filter|Silver Ore}}<!-- | |||
-->{{#arraydefine:Miscs|{{Misc Data|Alllists|Types|Misc|{{#if:{{{craftable|}}}|Craftable|Uncraftable}}|{{{1}}}}} }}{{#arraydiff:Miscs|Miscs|Filter}}<!-- | |||
--><table class="wikitable sortable jquery-tablesorter stripedtable" cellspacing="0" style="color:#eee; background:transparent; text-align:center; vertical-align:middle;"> | |||
<tr> | |||
{{#switch:{{{1|}}} | |||
<!-- 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> | |||
<th style="font-weight:bold;" colspan="6">Price</th> | |||
<th style="font-weight:bold;" colspan="6">Price / Slot Size</th> | |||
<th style="font-weight:bold; width:200px;" rowspan="2">Inventory Size</th> | |||
<th style="font-weight:bold; width:200px;" rowspan="2">Max Stack Size</th></tr><tr> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-1),0.7); width:5.5%;">II</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-2),0.7); width:5.5%;">III</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-3),0.7); width:5.5%;">IV</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-4),0.7); width:5.5%;">V</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-5),0.7); width:5.5%;">VI</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-6),0.7); width:5.5%;">VII</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-1),0.7); width:5.5%;">II</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-2),0.7); width:5.5%;">III</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-3),0.7); width:5.5%;">IV</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-4),0.7); width:5.5%;">V</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-5),0.7); width:5.5%;">VI</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-6),0.7); width:5.5%;">VII</th> | |||
<!-- Must manually set colspan and col titles according to drop existence of Herbs --> | |||
|Herb=<th style="font-weight:bold; width:200px;" rowspan="2">Name</th> | |||
<th style="font-weight:bold;" colspan="4">Price</th> | |||
<th style="font-weight:bold;" colspan="4">Price / Slot Size</th> | |||
<th style="font-weight:bold; width:200px;" rowspan="2">Inventory Size</th> | |||
<th style="font-weight:bold; width:200px;" rowspan="2">Max Stack Size</th></tr><tr> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-2),0.7); width:5.5%;">III</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-3),0.7); width:5.5%;">IV</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-4),0.7); width:5.5%;">V</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-5),0.7); width:5.5%;">VI</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-2),0.7); width:5.5%;">III</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-3),0.7); width:5.5%;">IV</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-4),0.7); width:5.5%;">V</th> | |||
<th style="font-weight:bold; background-color:rgb(var(--rarity-5),0.7); width:5.5%;">VI</th> | |||
|HuntingLoot | |||
|Ore | |||
|Container | |||
|Currency=<th style="font-weight:bold; background-color:rgb(220,220,220,0.2); width:200px;">Name</th> | |||
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Price</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;">Item Achieve</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> | |||
|Ammo=<th style="font-weight:bold; background-color:rgb(220,220,220,0.2); width:200px;">Name</th> | |||
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">I Price</th> | |||
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">III Price</th> | |||
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">I Price / Slot Size</th> | |||
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">III 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;">Max Stack Size</th> | |||
|#default=<th style="font-weight:bold; background-color:rgb(220,220,220,0.2); width:200px;">Name</th> | |||
<th style="font-weight:bold; background-color: rgb(220,220,220,0.2); width:200px;">Price</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;">Max Stack Size</th>}}<!-- | |||
-->{{#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}}}} }}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
List Miscs and generate rows with them | List Miscs and generate rows with them | ||
== Example == | == Example == | ||
<pre>{{GenerateMiscRows|Gem}}</pre> | |||
{{GenerateMiscRows|Gem}} | |||
<pre>{{GenerateMiscRows|Ore}}</pre> | |||
{{GenerateMiscRows|Ore}} | |||
<pre>{{GenerateMiscRows|Herb}}</pre> | |||
{{GenerateMiscRows|Herb}} | |||
</noinclude> | </noinclude> |
Revision as of 12:24, 8 May 2024
List Miscs and generate rows with them
Example
{{GenerateMiscRows|Gem}}
{{GenerateMiscRows|Ore}}
{{GenerateMiscRows|Herb}}