Anonymous

Template:CombatAreaBox: Difference between revisions

From Melvor Idle
Requirements section no longer appears if area has no requirements
(New lua-powered Combat Area infobox)
 
(Requirements section no longer appears if area has no requirements)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:


This template is for use in individual Slayer Area pages. It's powered by Lua from [[Module:Monsters]] and [[Module:CombatAreas]], pulling from their respective data modules.
This template is for use in individual Slayer Area pages. It's powered by Lua from [[Module:Monsters]] and [[Module:CombatAreas]], pulling from their respective data modules.
<onlyinclude><includeonly>{{#vardefine:area|{{{1|{{PAGENAME}}}}}}}{| class="wikitable" style="float:right; clear:right;"
<onlyinclude><includeonly>{| class="wikitable infobox"
|-  
|-  
! {{#var:area}}
! {{#invoke:CombatAreas|getExpansionIcon|{{{1|{{PAGENAME}}}}}}}{{{1|{{PAGENAME}}}}}
|-
|-
| {{#invoke:Icons|Icon|{{#var:area}}|type=combatArea|size=250|notext=true}}
| style="text-align:center;" | {{#invoke:Icons|Icon|{{{1|{{PAGENAME}}}}}|type=combatArea|size=250|notext=true}}
|-
|-
| Combat Area ID: {{#invoke:CombatAreas|getAreaStat|{{#var:area}}|id}}
| '''Combat Area ID''': {{#invoke:CombatAreas|getAreaStat|{{{1|{{PAGENAME}}}}}|id}}
|-
| '''Difficulty:''' {{#invoke:CombatAreas|getAreaStat|{{{1|{{PAGENAME}}}}}|difficulty}}
{{#invoke:CombatAreas|getAreaRequirementsForBox|{{{1|{{PAGENAME}}}}}}}
|-  
|-  
| Monsters:<br/>
| '''Monsters:'''<br/>
{{#invoke:Monsters|getAreaMonsterList|{{#var:area}}}}
{{#invoke:Monsters|getAreaMonsterList|{{{1|{{PAGENAME}}}}}}}
|}<includeonly></onlyinclude>
|}<includeonly></onlyinclude>