Anonymous

Template:SpellBox: Difference between revisions

From Melvor Idle
Remove dependency on Variables extension
(Center align icon)
(Remove dependency on Variables extension)
Line 3: Line 3:
Based on [[Template:Spell]], but pulling data from [[Module:Magic/data]] filtered through [[Module:Magic]]
Based on [[Template:Spell]], but pulling data from [[Module:Magic/data]] filtered through [[Module:Magic]]


<onlyinclude><includeonly>{{#vardefine:spell|{{{1|{{PAGENAME}}}}}}}{| class="wikitable infobox"
<onlyinclude><includeonly>{| class="wikitable infobox"
|-  
|-  
! {{#var:spell}}
! {{{1|{{PAGENAME}}}}}
|-
|-
| style="text-align:center;" | {{#invoke:Magic|getSpellStat|{{#var:spell}}|bigIcon}}
| style="text-align:center;" | {{#invoke:Magic|getSpellStat|{{{1|{{PAGENAME}}}}}|bigIcon}}
|-
|-
| '''{{#invoke:Magic|getSpellStat|{{#var:spell}}|type}} ID''': {{#invoke:Magic|getSpellStat|{{#var:spell}}|id}}
| '''{{#invoke:Magic|getSpellStat|{{{1|{{PAGENAME}}}}}|type}} ID''': {{#invoke:Magic|getSpellStat|{{{1|{{PAGENAME}}}}}|id}}
|-
|-
| '''Requirements:'''<br/>{{#invoke:Magic|getSpellStat|{{#var:spell}}|requirements}}
| '''Requirements:'''<br/>{{#invoke:Magic|getSpellStat|{{{1|{{PAGENAME}}}}}|requirements}}
{{#invoke:Magic|getOtherSpellBoxText|{{#var:spell}}}}
{{#invoke:Magic|getOtherSpellBoxText|{{{1|{{PAGENAME}}}}}}}
|-
|-
| '''Runes:'''
| '''Runes:'''
<div class="center">{{#invoke:Magic|getSpellStat|{{#var:spell}}|runes}}</div>
<div class="center">{{#invoke:Magic|getSpellStat|{{{1|{{PAGENAME}}}}}|runes}}</div>
|}{{#invoke:Magic|getSpellCategories|{{#var:spell}}}}</includeonly></onlyinclude>
|}{{#invoke:Magic|getSpellCategories|{{{1|{{PAGENAME}}}}}}}</includeonly></onlyinclude>