Template:CombatNav: Difference between revisions

From Melvor Idle
(Clean up source data; No visible changes)
(Apply Abyssal Combat Areas/Battlegrounds and Abyssal Slayer Areas/Slayer Regions terminology changes from v1.3.1)
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}}

Revision as of 20:17, 7 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.