Template:SpellIcon: Difference between revisions

From Melvor Idle
(New template spell icons, which automatically determines the correct icon type)
 
(Support 'section' parameter)
Line 3: Line 3:
For a complete list of options, please refer to [[Template:Icon]].
For a complete list of options, please refer to [[Template:Icon]].


<includeonly><onlyinclude>{{Icon|type={{#invoke:Magic|getSpellIconType|{{{1|}}}}}|{{{1}}}|{{{2|}}}|ext={{{ext|}}}|size={{{size|}}}|qty={{{qty|}}}|img={{{img|}}}|notext={{{notext|}}}|nolink={{{nolink|}}}|noicon={{{noicon|}}}|menu={{{menu|}}}}}</onlyinclude></includeonly>
<includeonly><onlyinclude>{{Icon|type={{#invoke:Magic|getSpellIconType|{{{1|}}}}}|{{{1}}}|{{{2|}}}|ext={{{ext|}}}|size={{{size|}}}|qty={{{qty|}}}|img={{{img|}}}|notext={{{notext|}}}|nolink={{{nolink|}}}|noicon={{{noicon|}}}|menu={{{menu|}}}|section={{{section|}}}}}</onlyinclude></includeonly>

Revision as of 22:23, 21 June 2023

A template for quickly building spell links with icons, which automatically determines the appropriate icon type unlike using Template:Icon directly. For example, {{SpellIcon|Surge II}} becomes

Error creating thumbnail: File missing
Surge II

.

For a complete list of options, please refer to Template:Icon.