Template:CombatNav: Difference between revisions

Tried to add automatically expanding sections for areas
(Made a change to force min-width on the columns for all area types)
(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%"
|-
|-