Difference between revisions of "Template:MonsterIcon"

From Melvor Idle
(New Monster equivalent of ItemIcon)
 
(Now uses generic Icon template as a base.)
Line 4: Line 4:
  
  
<includeonly><onlyinclude>[[File:{{{1}}} (monster).{{{ext|svg}}}|25px|link={{{1}}}]]&nbsp;[[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]</onlyinclude></includonly>
+
<includeonly><onlyinclude>{{Icon|type=monster|{{{1}}}|{{{2|}}}|ext={{{ext|svg}}}}}</onlyinclude></includonly>

Revision as of 19:36, 24 August 2020

A template for quickly building monster links with icons. For example, {{MonsterIcon|Golbin}} becomes Golbin (monster).svg Golbin.

Adding a second argument allows you to override the text. For example, {{MonsterIcon|Golbin|No, it isn't a typo}} gives Golbin (monster).svg No, it isn't a typo