Template:MonsterBox: Difference between revisions

Updated to use Lua
(Created Infobox template for monsters.)
 
(Updated to use Lua)
Line 1: Line 1:
This template is for the infobox for monsters.
{{MonsterBox|Master Wizard}}


Content is automatically generated by a bot and thus any modifications could be lost whenever the game is updated.
Based on [[Template:Monster]], but pulling data from [[Module:Monsters/data]] filtered through [[Module:Monsters]]
<onlyinclude><includeonly>{| class="wikitable" style="float:right; clear:right; margin: 1rem 1rem;"
 
<onlyinclude><includeonly>{{#vardefine:monster|{{{1|{{PAGENAME}}}}}}}{| class="wikitable" style="float:right; clear:right; margin: 0rem 0rem 1rem 1rem;"
|-  
|-  
! {{{name}}}
! {{#var:monster}}
|-
|-
| [[File:{{{name}}}_(monster).svg | 250px]]
| {{#invoke:Icons|Icon|{{#var:monster}}|type=monster|size=250|notext=true}}
|-
|-
| style="text-align: center;" | Monster ID: {{{monsterID}}}
| style="text-align: center;" | Monster ID: {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|id}}
|-
|-
| Zones:
| Zones:
{{{zones}}}
{{#invoke:Monsters|getMonsterAreas|{{#var:monster}}}}
|}
|}
</includeonly></onlyinclude>
</includeonly></onlyinclude>