Template:CombatNav: Difference between revisions

From Melvor Idle
(Clean up source data; No visible changes)
m (Use icon template for Guides)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
A handy navbox that includes all Combat Areas, Slayer Areas, and Dungeons along with the associated monsters. If called with either Combat Area, Slayer Area, Dungeon, or Guide as an argument the appropriate section will not be automatically collapsed. (For example <nowiki>{{CombatNav|Combat Area}}</nowiki> will default to only have the 'Slayer Areas' and 'Dungeons' sections collapsed
<noinclude>{{/doc}}
 
</noinclude><onlyinclude><!--
<onlyinclude><!--
   Each section has conditional logic so that only the relevant section will be expanded
   Each section has conditional logic so that only the relevant section will be expanded
-->{| class="wikitable mw-collapsible navigation-not-searchable" style="margin:auto; clear:both; width: 100%"
-->{| class="wikitable mw-collapsible navigation-not-searchable" style="margin:auto; clear:both; width: 100%"
Line 8: Line 7:
|-
|-
| style="padding:0px" |  
| style="padding:0px" |  
{| class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Combat Area||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{| class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Combat Area||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
! colspan=2 |{{Icon|Combat|notext=true}} [[Combat areas|Combat Areas]]
! colspan=2 | {{ZoneTypeIcon|Combat Areas}}
|-
|-
| style="min-width:230px" | {{ZoneIcon|Farmlands}}
| style="min-width:230px" | {{ZoneIcon|Farmlands}}
Line 72: Line 71:
| style="vertical-align:middle;" | {{MonsterIcon|Merman}} {{*}} {{MonsterIcon|Mermaid Archer}} {{*}} {{MonsterIcon|Merman Guard}} {{*}} {{MonsterIcon|Treacherous Jellyfish}}
| style="vertical-align:middle;" | {{MonsterIcon|Merman}} {{*}} {{MonsterIcon|Mermaid Archer}} {{*}} {{MonsterIcon|Merman Guard}} {{*}} {{MonsterIcon|Treacherous Jellyfish}}
|}
|}
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Slayer Area||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Slayer Area||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
! colspan=2 | {{Skill|Slayer}} [[Slayer areas|Areas]]
! colspan=2 | {{ZoneTypeIcon|Slayer Areas}}
|-
|-
| style="min-width:230px" | {{ZoneIcon|Penumbra}}
| style="min-width:230px" | {{ZoneIcon|Penumbra}}
Line 148: Line 147:
| style="vertical-align:middle;" | {{MonsterIcon|Vorloran Devastator}} {{*}} {{MonsterIcon|Vorloran Watcher}} {{*}} {{MonsterIcon|Vorloran Protector}} {{*}} {{MonsterIcon|Guardian of the Herald}}
| style="vertical-align:middle;" | {{MonsterIcon|Vorloran Devastator}} {{*}} {{MonsterIcon|Vorloran Watcher}} {{*}} {{MonsterIcon|Vorloran Protector}} {{*}} {{MonsterIcon|Guardian of the Herald}}
|}
|}
{| class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Dungeon||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{| class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Dungeon||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
|-
|-
! colspan=2 | [[Dungeons]]
! colspan=2 | {{ZoneTypeIcon|Dungeons}}
|-
|-
| style="min-width:230px" | {{ZoneIcon|Chicken Coop}}
| style="min-width:230px" | {{ZoneIcon|Chicken Coop}}
Line 246: Line 245:
| style="vertical-align:middle;" | {{MonsterIcon|The Herald Phase 1}} {{*}} {{MonsterIcon|The Herald Phase 2}} {{*}} {{MonsterIcon|The Herald}}
| style="vertical-align:middle;" | {{MonsterIcon|The Herald Phase 1}} {{*}} {{MonsterIcon|The Herald Phase 2}} {{*}} {{MonsterIcon|The Herald}}
|}
|}
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Stronghold||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Stronghold||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
|-
|-
! colspan=2 | [[Strongholds]]
! colspan=2 | {{ZoneTypeIcon|Strongholds}}
|-
|-
| style="min-width:230px" | {{ZoneIcon|Stronghold of the Undead}}
| style="min-width:230px" | {{ZoneIcon|Stronghold of the Undead}}
Line 263: Line 262:
| style="vertical-align:middle;" | {{MonsterIcon|Voltaire}} {{*}} {{MonsterIcon|Murtia}} {{*}} {{MonsterIcon|Ophidia}} {{*}} {{MonsterIcon|Ignis}} {{*}} {{MonsterIcon|Aeris}} {{*}} {{MonsterIcon|Glacia}} {{*}} {{MonsterIcon|Terran}} {{*}} {{MonsterIcon|Ragnar}} {{*}} {{MonsterIcon|Mysterious Figure - Phase 1 (Stronghold)}} {{*}} {{MonsterIcon|Mysterious Figure - Phase 2 (Stronghold)}} {{*}} {{MonsterIcon|Ahrenia (Stronghold)}}
| style="vertical-align:middle;" | {{MonsterIcon|Voltaire}} {{*}} {{MonsterIcon|Murtia}} {{*}} {{MonsterIcon|Ophidia}} {{*}} {{MonsterIcon|Ignis}} {{*}} {{MonsterIcon|Aeris}} {{*}} {{MonsterIcon|Glacia}} {{*}} {{MonsterIcon|Terran}} {{*}} {{MonsterIcon|Ragnar}} {{*}} {{MonsterIcon|Mysterious Figure - Phase 1 (Stronghold)}} {{*}} {{MonsterIcon|Mysterious Figure - Phase 2 (Stronghold)}} {{*}} {{MonsterIcon|Ahrenia (Stronghold)}}
|}
|}
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|The Abyss||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|The Abyss||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
|-
|-
! colspan=2 | [[The Abyss]]
! colspan=2 | {{ZoneTypeIcon|The Abyss}}
|-
|-
| style="min-width:230px" | {{ItA}} {{ZoneIcon|Depths of Woe}}
| style="min-width:230px" | {{ItA}} {{ZoneIcon|Depths of Woe}}
Line 292: Line 291:
| style="vertical-align:middle;" | {{MonsterIcon|Xon, the Abyssal King (Phase 1)}} {{*}} {{MonsterIcon|Xon, the Abyssal King (Phase 2)}} {{*}} {{MonsterIcon|Xon, the Abyssal King (Phase 3)}}
| style="vertical-align:middle;" | {{MonsterIcon|Xon, the Abyssal King (Phase 1)}} {{*}} {{MonsterIcon|Xon, the Abyssal King (Phase 2)}} {{*}} {{MonsterIcon|Xon, the Abyssal King (Phase 3)}}
|}
|}
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Abyssal Combat Areas||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Abyssal Battlegrounds||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
|-
|-
! colspan=2 | [[Combat_areas#Abyssal_Realm|Abyssal Combat Areas]]
! colspan=2 | {{ZoneTypeIcon|Abyssal Battlegrounds}}
|-
|-
| style="min-width:230px" | {{ItA}} {{ZoneIcon|Abyssal Farmlands}}
| style="min-width:230px" | {{ItA}} {{ZoneIcon|Abyssal Farmlands}}
Line 333: Line 332:
| style="vertical-align:middle;" | {{MonsterIcon|Void Doppelganger}} {{*}} {{MonsterIcon|Void Apostle}} {{*}} {{MonsterIcon|Void Harbinger}}
| style="vertical-align:middle;" | {{MonsterIcon|Void Doppelganger}} {{*}} {{MonsterIcon|Void Apostle}} {{*}} {{MonsterIcon|Void Harbinger}}
|}
|}
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Abyssal Slayer Areas||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Abyssal Slayer Regions||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
|-
|-
! colspan=2 | [[Slayer_areas#Abyssal_Realm|Abyssal Slayer Areas]]
! colspan=2 | {{ZoneTypeIcon|Abyssal Slayer Regions}}
|-
|-
| style="min-width:230px" | {{ItA}} {{ZoneIcon|Crimson Forest}}
| style="min-width:230px" | {{ItA}} {{ZoneIcon|Crimson Forest}}
Line 380: Line 379:
| style="vertical-align:middle;" | {{MonsterIcon|Greater Void Entity}} {{*}} {{MonsterIcon|Greater Void Vagrant}} {{*}} {{MonsterIcon|Greater Void Artificer}}
| style="vertical-align:middle;" | {{MonsterIcon|Greater Void Entity}} {{*}} {{MonsterIcon|Greater Void Vagrant}} {{*}} {{MonsterIcon|Greater Void Artificer}}
|}
|}
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}}|Abyssal Strongholds||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{|class="wikitable mw-collapsible col-2-center {{#ifeq:{{{1|}}}|Abyssal Strongholds||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
|-
|-
! colspan=2 | [[Strongholds#Abyssal_Realm|Abyssal Strongholds]]
! colspan=2 | {{ZoneTypeIcon|Abyssal Strongholds}}
|-
|-
| style="min-width:260px" | {{ItA}} {{ZoneIcon|Stronghold of Blight}}
| style="min-width:260px" | {{ItA}} {{ZoneIcon|Stronghold of Blight}}
Line 399: Line 398:
{| class="wikitable mw-collapsible col-1-center {{#ifeq:{{{1|}}}|Guide||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
{| class="wikitable mw-collapsible col-1-center {{#ifeq:{{{1|}}}|Guide||mw-collapsed}}" style="margin:auto; clear:both; width: 100%"
|-
|-
! colspan=2 | [[Guides]]
! colspan=2 | {{Icon|Guides}}
|-
|-
| style="vertical-align:middle;" colspan="2" | {{ZoneIcon|Chicken Coop/Guide|Chicken Coop}} {{*}} {{ZoneIcon|Undead Graveyard/Guide|Undead Graveyard}} {{*}} {{ZoneIcon|Bandit Base/Guide|Bandit Base}} {{*}} {{ZoneIcon|Hall of Wizards/Guide|Hall of Wizards}} {{*}} {{ZoneIcon|Spider Forest/Guide|Spider Forest}} {{*}} {{ZoneIcon|Miolite Caves/Guide|Miolite Caves}} {{*}} {{ZoneIcon|Deep Sea Ship/Guide|Dead Sea Ship}} {{*}} {{ZoneIcon|Frozen Cove/Guide|Frozen Cove}} {{*}} {{AoD}} {{ZoneIcon|Golem Territory/Guide|Golem Territoryy}} {{*}} {{AoD}} {{ZoneIcon|Unholy Forest/Guide|Unholy Forest}} {{*}} {{ZoneIcon|Dragons Den/Guide|Dragons Den}} {{*}} {{AoD}} {{ZoneIcon|Trickery Temple/Guide|Trickery Temple}} {{*}} {{ZoneIcon|Volcanic Cave/Guide|Volcanic Cave}} {{*}} {{ZoneIcon|Infernal Stronghold/Guide|Infernal Stronghold}} {{*}} {{AoD}} {{ZoneIcon|Cult Grounds/Guide|Cult Grounds}} {{*}} {{ZoneIcon|Air God Dungeon/Guide|Air God Dungeon}} {{*}} {{ZoneIcon|Water God Dungeon/Guide|Water God Dungeon}} {{*}} {{ZoneIcon|Earth God Dungeon/Guide|Earth God Dungeon}} {{*}} {{ZoneIcon|Fire God Dungeon/Guide|Fire God Dungeon}} {{*}} {{ZoneIcon|Into the Mist/Guide|Into the Mist}} {{*}} {{AoD}} {{ZoneIcon|Underwater City/Guide|Underwater City}} {{*}} {{ZoneIcon|Impending Darkness Event/Guide|Impending Darkness Event}} {{*}} {{TotH}} {{ZoneIcon|Ancient Sanctuary/Guide|Ancient Sanctuary}} {{*}} {{TotH}} {{ZoneIcon|Underground Lava Lake/Guide|Underground Lava Lake}} {{*}} {{TotH}} {{ZoneIcon|Lightning Region/Guide|Lightning Region}} {{*}} {{TotH}} {{ZoneIcon|Lair of the Spider Queen/Guide|Lair of the Spider Queen}} {{*}} {{TotH}} {{ZoneIcon|Cursed Forest/Guide|Cursed Forest}} {{*}} {{TotH}} {{ZoneIcon|Necromancers Palace/Guide|Necromancers Palace}} {{*}} {{TotH}} {{ZoneIcon|Throne of the Herald/Guide|Throne of the Herald}} {{*}} {{ZoneIcon|Stronghold of the Undead/Guide|Stronghold of the Undead}} {{*}} {{ZoneIcon|Stronghold of Magic/Guide|Stronghold of Magic}} {{*}} {{ZoneIcon|Stronghold of Dragons/Guide|Stronghold of Dragons}} {{*}} {{ZoneIcon|Stronghold of the Gods/Guide|Stronghold of the Gods}}
| style="vertical-align:middle;" colspan="2" | {{ZoneIcon|Chicken Coop/Guide|Chicken Coop}} {{*}} {{ZoneIcon|Undead Graveyard/Guide|Undead Graveyard}} {{*}} {{ZoneIcon|Bandit Base/Guide|Bandit Base}} {{*}} {{ZoneIcon|Hall of Wizards/Guide|Hall of Wizards}} {{*}} {{ZoneIcon|Spider Forest/Guide|Spider Forest}} {{*}} {{ZoneIcon|Miolite Caves/Guide|Miolite Caves}} {{*}} {{ZoneIcon|Deep Sea Ship/Guide|Dead Sea Ship}} {{*}} {{ZoneIcon|Frozen Cove/Guide|Frozen Cove}} {{*}} {{AoD}} {{ZoneIcon|Golem Territory/Guide|Golem Territoryy}} {{*}} {{AoD}} {{ZoneIcon|Unholy Forest/Guide|Unholy Forest}} {{*}} {{ZoneIcon|Dragons Den/Guide|Dragons Den}} {{*}} {{AoD}} {{ZoneIcon|Trickery Temple/Guide|Trickery Temple}} {{*}} {{ZoneIcon|Volcanic Cave/Guide|Volcanic Cave}} {{*}} {{ZoneIcon|Infernal Stronghold/Guide|Infernal Stronghold}} {{*}} {{AoD}} {{ZoneIcon|Cult Grounds/Guide|Cult Grounds}} {{*}} {{ZoneIcon|Air God Dungeon/Guide|Air God Dungeon}} {{*}} {{ZoneIcon|Water God Dungeon/Guide|Water God Dungeon}} {{*}} {{ZoneIcon|Earth God Dungeon/Guide|Earth God Dungeon}} {{*}} {{ZoneIcon|Fire God Dungeon/Guide|Fire God Dungeon}} {{*}} {{ZoneIcon|Into the Mist/Guide|Into the Mist}} {{*}} {{AoD}} {{ZoneIcon|Underwater City/Guide|Underwater City}} {{*}} {{ZoneIcon|Impending Darkness Event/Guide|Impending Darkness Event}} {{*}} {{TotH}} {{ZoneIcon|Ancient Sanctuary/Guide|Ancient Sanctuary}} {{*}} {{TotH}} {{ZoneIcon|Underground Lava Lake/Guide|Underground Lava Lake}} {{*}} {{TotH}} {{ZoneIcon|Lightning Region/Guide|Lightning Region}} {{*}} {{TotH}} {{ZoneIcon|Lair of the Spider Queen/Guide|Lair of the Spider Queen}} {{*}} {{TotH}} {{ZoneIcon|Cursed Forest/Guide|Cursed Forest}} {{*}} {{TotH}} {{ZoneIcon|Necromancers Palace/Guide|Necromancers Palace}} {{*}} {{TotH}} {{ZoneIcon|Throne of the Herald/Guide|Throne of the Herald}} {{*}} {{ZoneIcon|Stronghold of the Undead/Guide|Stronghold of the Undead}} {{*}} {{ZoneIcon|Stronghold of Magic/Guide|Stronghold of Magic}} {{*}} {{ZoneIcon|Stronghold of Dragons/Guide|Stronghold of Dragons}} {{*}} {{ZoneIcon|Stronghold of the Gods/Guide|Stronghold of the Gods}}
|}
|}
|}</onlyinclude>
|}</onlyinclude>

Latest revision as of 06:13, 8 November 2024

A navbox for combat area & monster pages that includes all areas for each combat area category, along with the associated monsters for each area.

If called with any of the following as the first parameter, the appropriate section will be automatically expanded:

  • Combat Area
  • Slayer Area
  • Dungeon
  • Stronghold
  • The Abyss
  • Abyssal Battlegrounds
  • Abyssal Slayer Regions
  • Abyssal Strongholds
  • Guide

For example, {{CombatNav|Combat Area}} will expand the 'Combat Areas' section while leaving all others collapsed. If this parameter is not specified, then all sections will be collapsed.