Template:CombatNav: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (Made a change to force min-width on the columns for all area types) |
Falterfire (talk | contribs) (Tried to add automatically expanding sections for areas) |
||
Line 3: | Line 3: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
Setting up things so that only the relevant section will be expanded | Setting up things so that only the relevant section will be expanded | ||
-->{{#vardefine:CombatCollapse|{{#ifeq:{{{1|}}}|Combat Area||mw-collapsed}}}}<!-- | -->{{#vardefine:areaType|{{#invoke:CombatAreas|getAreaStat|{{PAGENAME}}}}}}<!-- | ||
-->{{#vardefine:SlayCollapse|{{#ifeq:{{{1|}}}|Slayer Area||mw-collapsed}}}}<!-- | -->{{#vardefine:CombatCollapse|{{#ifeq:{{{1|{{#var:areaType}}}}}|Combat Area||mw-collapsed}}}}<!-- | ||
-->{{#vardefine:DungeonCollapse|{{#ifeq:{{{1|}}}|Dungeon||mw-collapsed}}}}<!-- | -->{{#vardefine:SlayCollapse|{{#ifeq:{{{1|{{#var:areaType}}}}}|Slayer Area||mw-collapsed}}}}<!-- | ||
-->{{#vardefine:DungeonCollapse|{{#ifeq:{{{1|{{#var:areaType}}}}}|Dungeon||mw-collapsed}}}}<!-- | |||
-->{| class="wikitable mw-collapsible" style="margin:auto; clear:both; width: 100%" | -->{| class="wikitable mw-collapsible" style="margin:auto; clear:both; width: 100%" | ||
|- | |- |
Revision as of 16:57, 18 December 2020
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, or Dungeon as an argument the appropriate section will not be automatically collapsed. (For example {{CombatNav|Combat Area}} will default to only have the 'Slayer Areas' and 'Dungeons' sections collapsed