Template:MonsterBox: Difference between revisions

Remove dependency on Variables extension
(Consistency of ID alignment with other infobox templates)
(Remove dependency on Variables extension)
Line 3: Line 3:
Based on [[Template:Monster]], but pulling data from [[Module:Monsters/data]] filtered through [[Module:Monsters]]
Based on [[Template:Monster]], but pulling data from [[Module:Monsters/data]] filtered through [[Module:Monsters]]


<onlyinclude><includeonly>{{#vardefine:monster|{{{1|{{PAGENAME}}}}}}}{| class="wikitable infobox"
<onlyinclude><includeonly>{| class="wikitable infobox"
|-  
|-  
! {{#var:monster}}
! {{{1|{{PAGENAME}}}}}
|-
|-
| style="text-align: center;" | {{#invoke:Icons|Icon|{{#var:monster}}|type=monster|size=250|notext=true}}
| style="text-align: center;" | {{#invoke:Icons|Icon|{{{1|{{PAGENAME}}}}}|type=monster|size=250|notext=true}}
|-
|-
| '''Monster ID:''' {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|id}}
| '''Monster ID:''' {{#invoke:Monsters|getMonsterStat|{{{1|{{PAGENAME}}}}}|id}}
|-
|-
| '''Zones:'''
| '''Zones:'''
{{#invoke:Monsters|getMonsterAreas|{{#var:monster}}}}
{{#invoke:Monsters|getMonsterAreas|{{{1|{{PAGENAME}}}}}}}
{{#invoke:Monsters|getOtherMonsterBoxText|{{#var:monster}}}}
{{#invoke:Monsters|getOtherMonsterBoxText|{{{1|{{PAGENAME}}}}}}}
|}{{#invoke:Monsters|getMonsterCategories|{{#var:monster}}}}
|}{{#invoke:Monsters|getMonsterCategories|{{{1|{{PAGENAME}}}}}}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>