Anonymous

Template:DungeonBox: Difference between revisions

From Melvor Idle
Remove dependency on Variables extension
(Use infobox class)
(Remove dependency on Variables extension)
Line 2: Line 2:


This template is for use in individual dungeon 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 dungeon pages. It's powered by Lua from [[Module:Monsters]] and [[Module:CombatAreas]], pulling from their respective data modules.
<onlyinclude><includeonly>{{#vardefine:dungeon|{{{1|{{PAGENAME}}}}}}}{| class="wikitable infobox"
<onlyinclude><includeonly>{| class="wikitable infobox"
|-  
|-  
! {{#var:dungeon}}
! {{{1|{{PAGENAME}}}}}
|-
|-
| style="text-align:center;" |{{#invoke:Icons|Icon|{{#var:dungeon}}|type=dungeon|size=250|notext=true}}
| style="text-align:center;" |{{#invoke:Icons|Icon|{{{1|{{PAGENAME}}}}}|type=dungeon|size=250|notext=true}}
|-
|-
| '''Dungeon ID:''' {{#invoke:CombatAreas|getAreaStat|{{#var:dungeon}}|id}}
| '''Dungeon ID:''' {{#invoke:CombatAreas|getAreaStat|{{{1|{{PAGENAME}}}}}|id}}
|-
|-
| '''Difficulty:''' {{#invoke:CombatAreas|getAreaStat|{{#var:dungeon}}|difficulty}}
| '''Difficulty:''' {{#invoke:CombatAreas|getAreaStat|{{{1|{{PAGENAME}}}}}|difficulty}}
{{#invoke:CombatAreas|getDungeonRequirements|{{#var:dungeon}}}}
{{#invoke:CombatAreas|getDungeonRequirements|{{{1|{{PAGENAME}}}}}}}
|-
|-
| '''Rewards:'''
| '''Rewards:'''
{{#invoke:CombatAreas/AreaTables|getDungeonRewards|{{#var:dungeon}}}}
{{#invoke:CombatAreas/AreaTables|getDungeonRewards|{{{1|{{PAGENAME}}}}}}}
|-  
|-  
|''' Monsters:'''<br/>{{#invoke:Monsters|getAreaMonsterList|{{#var:dungeon}}}}
|''' Monsters:'''<br/>{{#invoke:Monsters|getAreaMonsterList|{{{1|{{PAGENAME}}}}}}}
{{#invoke:Pets|getDungeonBoxPetText|{{#var:dungeon}}}}
{{#invoke:Pets|getDungeonBoxPetText|{{{1|{{PAGENAME}}}}}}}
|}<includeonly></onlyinclude>
|}<includeonly></onlyinclude>