From Dark and Darker Wiki

(Updated to use new map names.)
(Changed template to generate the nav bar dynamically. Checks for existence and which source is last.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine:Source|{{#explode:{{{1|{{PAGENAME}}}}}|-|0|2}} }}<!--
 
-->{{#vardefine:G}}{{#vardefine:isLastG}}{{#vardefine:GCIC}}{{#vardefine:isLastGCIC}}{{#vardefine:C}}{{#vardefine:isLastC}}{{#vardefine:IIA}}{{#vardefine:isLastIIA}}<!--
-->{{#if:{{Prop Data|{{{1|}}}-Inferno and Ice Abyss|All}}{{Prop Data|{{{1|}}}-Inferno and Ice Abyss#Locked|All}}<!--
-->|{{#vardefine:IIA|1}} <!--
-->{{#vardefine:isLastIIA|1}} }}<!--
 
-->{{#if:{{Prop Data|{{{1|}}}-Crypts|All}}{{Prop Data|{{{1|}}}-Crypts#Locked|All}}<!--
-->|{{#vardefine:C|1}}<!--
-->{{#if:{{#var:isLastIIA}}<!--
-->||{{#vardefine:isLastC|1}} }} }}<!--
 
-->{{#if:{{Prop Data|{{{1|}}}-Goblin Cave and Ice Cavern|All}}{{Prop Data|{{{1|}}}-Goblin Cave and Ice Cavern#Locked|All}}<!--
-->|{{#vardefine:GCIC|1}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}<!--
-->||{{#vardefine:isLastGCIC|1}} }} }}<!--
 
-->{{#if:{{Prop Data|{{{1|}}}-Global|All}}{{Prop Data|{{{1|}}}-Global#Locked|All}}<!--
-->|{{#vardefine:G|1}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}{{#var:isLastGCIC}}<!--
-->||{{#vardefine:isLastG|1}} }} }}<!--
 
--><templatestyles src="Template:Topbar/styles.css"/>
--><templatestyles src="Template:Topbar/styles.css"/>
{|class="basicsnavtable"
<table class="basicsnavtable">
|-
<tr>
|style="width:25%"|[[{{#var:Source}}-Global|Global]]
{{#if:{{#var:G}}
|style="width:25%"|[[{{#var:Source}}-Goblin Cave and Ice Cavern|Goblin&nbsp;Cave<br>&&nbsp;Ice&nbsp;Cavern]]
|<td style="width:1%" {{#if:{{#var:isLastG}}|class="last"}}>[[{{{1|}}}-Global|Global]]</td>}}
|style="width:25%"|[[{{#var:Source}}-Crypt|Crypts]]
{{#if:{{#var:GCIC}}
|style="width:25%" class="last"|[[{{#var:Source}}-Inferno and Ice Abyss|Inferno<br>&&nbsp;Ice&nbsp;Abyss]]
|<td style="width:1%" {{#if:{{#var:isLastGCIC}}|class="last"}}>[[{{{1|}}}-Goblin Cave and Ice Cavern|Goblin&nbsp;Cave<br>&&nbsp;Ice&nbsp;Cavern]]</td>}}
|}</includeonly><noinclude>
{{#if:{{#var:C}}
|<td style="width:1%" {{#if:{{#var:isLastC}}|class="last"}}>[[{{{1|}}}-Crypts|Crypts]]</td>}}
{{#if:{{#var:IIA}}
|<td style="width:1%" {{#if:{{#var:isLastIIA}}|class="last"}}>[[{{{1|}}}-Inferno and Ice Abyss|Inferno<br>&&nbsp;Ice&nbsp;Abyss]]</td>}}
</tr>
</table><!--
 
--></includeonly><noinclude>
<pre style="width:fit-content">{{ContainersMapNavBar|Marvelous Chest}}</pre>
{{ContainersMapNavBar|Marvelous Chest}}
{{ContainersMapNavBar|Marvelous Chest}}
<pre style="width:fit-content">{{ContainersMapNavBar|Golden Chest}}</pre>
{{ContainersMapNavBar|Golden Chest}}
{{ContainersMapNavBar|Golden Chest}}
<pre style="width:fit-content">{{ContainersMapNavBar|Golden Chest-Global}}</pre>
{{ContainersMapNavBar|Golden Chest-Global}}
{{ContainersMapNavBar|Golden Chest-Global}}
<pre style="width:fit-content">{{ContainersMapNavBar|Lion's Head Chest}}</pre>
{{ContainersMapNavBar|Lion's Head Chest}}
{{ContainersMapNavBar|Lion's Head Chest}}
<pre style="width:fit-content">{{ContainersMapNavBar|Bronze Ornate Chest}}</pre>
{{ContainersMapNavBar|Bronze Ornate Chest}}
{{ContainersMapNavBar|Bronze Ornate Chest}}
<pre style="width:fit-content">{{ContainersMapNavBar|Large Oak Chest}}</pre>
{{ContainersMapNavBar|Large Oak Chest}}
{{ContainersMapNavBar|Large Oak Chest}}
<pre style="width:fit-content">{{ContainersMapNavBar|Small Oak Chest}}</pre>
{{ContainersMapNavBar|Small Oak Chest}}
{{ContainersMapNavBar|Small Oak Chest}}
</noinclude>
</noinclude>

Revision as of 01:17, 7 August 2024

{{ContainersMapNavBar|Marvelous Chest}}
Global Crypts Inferno
& Ice Abyss
{{ContainersMapNavBar|Golden Chest}}
Global Crypts Inferno
& Ice Abyss
{{ContainersMapNavBar|Golden Chest-Global}}
{{ContainersMapNavBar|Lion's Head Chest}}
Global Crypts Inferno
& Ice Abyss
{{ContainersMapNavBar|Bronze Ornate Chest}}
Global Crypts Inferno
& Ice Abyss
{{ContainersMapNavBar|Large Oak Chest}}
Global Crypts Inferno
& Ice Abyss
{{ContainersMapNavBar|Small Oak Chest}}
Global Crypts Inferno
& Ice Abyss