From Dark and Darker Wiki
(Un-nesting Container templates to save on PEIS.) |
(times -> time(s)) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#switch:{{{2|}}} | |||
|Global={{#vardefine:map|Global}} | |||
|Goblin Cave/Ice Cave={{#vardefine:map|GCIC}} | |||
|Crypt={{#vardefine:map|Crypt}} | |||
|Inferno/Ice Abyss={{#vardefine:map|IIA}} }}<!-- | |||
--><h2>Loot Tables</h2><!-- | --><h2>Loot Tables</h2><!-- | ||
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:20px; border-radius:10px;">Loot Tables last updated for {{:TODO|Props}}</p><!-- | --><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:20px; border-radius:10px;">Loot Tables last updated for {{#explode:{{:TODO|Props}}|$|0|2}}</p><!-- | ||
--><div style="width:fit-content">{{ContainersMapNavBar}}</div><!-- | --><div style="width:fit-content">{{ContainersMapNavBar}}</div><!-- | ||
-->Currently on Source: {{{2|}}}<!-- | -->Currently on Source: {{{2|}}}<!-- | ||
Type: | Type: | ||
-->{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}| | -->{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}|{{#var:map}}|N|drops|all}} }}<!-- | ||
-->|{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}} }}<!-- | -->|{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}} }}<!-- | ||
-->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}| | -->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}|{{#var:map}}|HR|drops|all}} }}<!-- | ||
-->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!-- | -->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!-- | ||
Loot Tables for container {{{1|}}} on source {{ | Loot Tables for container {{{1|}}} on source {{#var:map}} | ||
Transclude the Loot Tables for the Normal drops | Transclude the Loot Tables for the Normal drops | ||
--><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!-- | --><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!-- | ||
Line 21: | Line 27: | ||
-->|{{#var:currentdrop}}<!-- | -->|{{#var:currentdrop}}<!-- | ||
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!-- | -->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!-- | ||
-->|tabid= | -->|tabid=N}} }}<!-- | ||
-->{{#loop:i|0|{{#arraysize:drops}}<!-- | -->{{#loop:i|0|{{#arraysize:drops}}<!-- | ||
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!-- | -->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!-- | ||
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!-- | --><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!-- | ||
--><br><!-- | --><br><!-- | ||
--><span style="margin-left:30px"><!-- | --><span style="margin-left:30px; font-size:24px"><!-- | ||
-->Rolls {{Prop Data|{{{1|}}} | -->Rolls <b>{{Prop Data|{{{1|}}}|{{#var:map}}|N|drops|{{#var:currentdrop}} }}</b> time(s)</span><!-- | ||
--><br><!-- | --><br><!-- | ||
-->{{:LootTable:{{#var:currentdrop}} }}</div> }}</div><!-- | -->{{:LootTable:{{#var:currentdrop}}|N}}</div> }}</div><!-- | ||
Transclude the Loot Tables for the High Roller drops | Transclude the Loot Tables for the High Roller drops | ||
Line 40: | Line 46: | ||
-->|{{#var:currentdrop}}<!-- | -->|{{#var:currentdrop}}<!-- | ||
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!-- | -->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!-- | ||
-->|tabid= | -->|tabid=HR}} }}<!-- | ||
-->{{#loop:i|0|{{#arraysize:drops}}<!-- | -->{{#loop:i|0|{{#arraysize:drops}}<!-- | ||
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!-- | -->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!-- | ||
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!-- | --><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!-- | ||
--><br><!-- | --><br><!-- | ||
--><span style="margin-left:30px"><!-- | --><span style="margin-left:30px; font-size:24px"><!-- | ||
-->Rolls {{Prop Data|{{{1|}}} | -->Rolls <b class="colorrarityElite">{{Prop Data|{{{1|}}}|{{#var:map}}|HR|drops|{{#var:currentdrop}} }}</b> time(s)</span><!-- | ||
--><br><!-- | --><br><!-- | ||
-->{{:LootTable:{{#var:currentdrop}} }}</div> }}</div><!-- | -->{{:LootTable:{{#var:currentdrop}}|HR}}</div> }}</div><!-- | ||
If there are no drops for the Source tell the user | If there are no drops for the Source tell the user | ||
Line 55: | Line 61: | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
Example <pre style="width:fit-content">{{GenerateContainersLootDrops|Golden Chest|Inferno}}</pre> | Example <pre style="width:fit-content">{{GenerateContainersLootDrops|Golden Chest|Inferno}}</pre> | ||
{{GenerateContainersLootDrops|Golden Chest| | {{GenerateContainersLootDrops|Golden Chest|Crypt}} | ||
</noinclude> | </noinclude> |