Difference between revisions of "Template:MonsterIcon"

From Melvor Idle
(Now uses generic Icon template as a base.)
(Added notext and menu overrides)
Line 3: Line 3:
 
Adding a second argument allows you to override the text. For example, <nowiki>{{MonsterIcon|Golbin|No, it isn't a typo}}</nowiki> gives {{MonsterIcon|Golbin|No, it isn't a typo}}
 
Adding a second argument allows you to override the text. For example, <nowiki>{{MonsterIcon|Golbin|No, it isn't a typo}}</nowiki> gives {{MonsterIcon|Golbin|No, it isn't a typo}}
  
 
+
<includeonly><onlyinclude>{{Icon|type=monster|{{{1}}}|{{{2|}}}|ext={{{ext|svg}}}|menu={{{menu|}}}|notext={{{notext|}}}}}</onlyinclude></includonly>
<includeonly><onlyinclude>{{Icon|type=monster|{{{1}}}|{{{2|}}}|ext={{{ext|svg}}}}}</onlyinclude></includonly>
 

Revision as of 20:12, 2 September 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