Template:SlayerAreaBox: Difference between revisions

Added Area Effect & embolden category names
(Created new lua-powered Slayer Area box)
 
(Added Area Effect & embolden category names)
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>{{#vardefine:area|{{{1|{{PAGENAME}}}}}}}{| class="wikitable" style="float:right; clear:right; max-width:250px;"
|-  
|-  
! {{#var:area}}
! {{#var:area}}
Line 8: Line 8:
| {{#invoke:Icons|Icon|{{#var:area}}|type=combatArea|size=250|notext=true}}
| {{#invoke:Icons|Icon|{{#var:area}}|type=combatArea|size=250|notext=true}}
|-
|-
| Slayer Area ID: {{#invoke:CombatAreas|getAreaStat|{{#var:area}}|id}}
| '''Slayer Area ID:''' {{#invoke:CombatAreas|getAreaStat|{{#var:area}}|id}}
|-
|-
| Requirements:
| '''Requirements:'''
{{#invoke:CombatAreas|getAreaStat|{{#var:area}}|slayerLevel}}
{{#invoke:CombatAreas|getAreaStat|{{#var:area}}|slayerLevel}}
|-
|-
| Slayer Item:
| '''Slayer Item:'''
{{#invoke:CombatAreas|getAreaStat|{{#var:area}}|slayerItem}}
{{#invoke:CombatAreas|getAreaStat|{{#var:area}}|slayerItem}}
|-
| '''Area Effect:'''
{{#invoke:CombatAreas|getAreaStat|{{#var:area}}|areaEffectDesc}}
|-  
|-  
| Monsters:<br/>
| '''Monsters:'''<br/>
{{#invoke:Monsters|getAreaMonsterList|{{#var:area}}}}
{{#invoke:Monsters|getAreaMonsterList|{{#var:area}}}}
|}<includeonly></onlyinclude>
|}<includeonly></onlyinclude>