From Dark and Darker Wiki

(Changed template to generate the nav bar dynamically. Checks for existence and which source is last.)
(Updated for Ruins)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--


-->{{#vardefine:G}}{{#vardefine:isLastG}}{{#vardefine:GCIC}}{{#vardefine:isLastGCIC}}{{#vardefine:C}}{{#vardefine:isLastC}}{{#vardefine:IIA}}{{#vardefine:isLastIIA}}<!--
-->{{#vardefine:G}}{{#vardefine:isLastG}}{{#vardefine:GCIC}}{{#vardefine:isLastGCIC}}{{#vardefine:R}}{{#vardefine:isLastR}}{{#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}}<!--
-->{{#if:{{Prop Data|{{{1|}}}-Inferno and Ice Abyss|All}}{{Prop Data|{{{1|}}}-Inferno and Ice Abyss#Locked|All}}<!--
-->|{{#vardefine:IIA|1}} <!--
-->|{{#vardefine:IIA|1}} <!--
Line 11: Line 11:
-->||{{#vardefine:isLastC|1}} }} }}<!--
-->||{{#vardefine:isLastC|1}} }} }}<!--


-->{{#if:{{Prop Data|{{{1|}}}-Goblin Cave and Ice Cavern|All}}{{Prop Data|{{{1|}}}-Goblin Cave and Ice Cavern#Locked|All}}<!--
-->{{#if:{{Prop Data|{{{1|}}}-Ruins|All}}{{Prop Data|{{{1|}}}-Ruins#Locked|All}}<!--
-->|{{#vardefine:R|1}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}<!--
-->||{{#vardefine:isLastR|1}} }} }}<!--
 
-->{{#if:{{Prop Data|{{{1|}}}-Goblin Caves and Ice Cavern|All}}{{Prop Data|{{{1|}}}-Goblin Caves and Ice Cavern#Locked|All}}<!--
-->|{{#vardefine:GCIC|1}}<!--
-->|{{#vardefine:GCIC|1}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}{{#var:isLastR}}<!--
-->||{{#vardefine:isLastGCIC|1}} }} }}<!--
-->||{{#vardefine:isLastGCIC|1}} }} }}<!--


-->{{#if:{{Prop Data|{{{1|}}}-Global|All}}{{Prop Data|{{{1|}}}-Global#Locked|All}}<!--
-->{{#if:{{Prop Data|{{{1|}}}-Global|All}}{{Prop Data|{{{1|}}}-Global#Locked|All}}<!--
-->|{{#vardefine:G|1}}<!--
-->|{{#vardefine:G|1}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}{{#var:isLastGCIC}}<!--
-->{{#if:{{#var:isLastIIA}}{{#var:isLastC}}{{#var:isLastR}}{{#var:isLastGCIC}}<!--
-->||{{#vardefine:isLastG|1}} }} }}<!--
-->||{{#vardefine:isLastG|1}} }} }}<!--


Line 25: Line 30:
<tr>
<tr>
{{#if:{{#var:G}}
{{#if:{{#var:G}}
|<td style="width:1%" {{#if:{{#var:isLastG}}|class="last"}}>[[{{{1|}}}-Global|Global]]</td>}}
|<td style="width:1%; margin-left:20px; margin-right:20px" {{#if:{{#var:isLastG}}|class="last"}}>[[{{{1|}}}-Global|Global]]</td>}}
{{#if:{{#var:GCIC}}
{{#if:{{#var:GCIC}}
|<td style="width:1%" {{#if:{{#var:isLastGCIC}}|class="last"}}>[[{{{1|}}}-Goblin Cave and Ice Cavern|Goblin&nbsp;Cave<br>&&nbsp;Ice&nbsp;Cavern]]</td>}}
|<td style="width:1%; margin-left:20px; margin-right:20px" {{#if:{{#var:isLastGCIC}}|class="last"}}>[[{{{1|}}}-Goblin Caves and Ice Cavern|Goblin&nbsp;Caves<br>&&nbsp;Ice&nbsp;Cavern]]</td>}}
{{#if:{{#var:R}}
|<td style="width:1%; margin-left:20px; margin-right:20px" {{#if:{{#var:isLastR}}|class="last"}}>[[{{{1|}}}-Ruins|Ruins]]</td>}}
{{#if:{{#var:C}}
{{#if:{{#var:C}}
|<td style="width:1%" {{#if:{{#var:isLastC}}|class="last"}}>[[{{{1|}}}-Crypts|Crypts]]</td>}}
|<td style="width:1%; margin-left:20px; margin-right:20px" {{#if:{{#var:isLastC}}|class="last"}}>[[{{{1|}}}-Crypts|Crypts]]</td>}}
{{#if:{{#var:IIA}}
{{#if:{{#var:IIA}}
|<td style="width:1%" {{#if:{{#var:isLastIIA}}|class="last"}}>[[{{{1|}}}-Inferno and Ice Abyss|Inferno<br>&&nbsp;Ice&nbsp;Abyss]]</td>}}
|<td style="width:1%; margin-left:20px; margin-right:20px" {{#if:{{#var:isLastIIA}}|class="last"}}>[[{{{1|}}}-Inferno and Ice Abyss|Inferno<br>&&nbsp;Ice&nbsp;Abyss]]</td>}}
</tr>
</tr>
</table><!--
</table><!--

Latest revision as of 21:38, 24 September 2024

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