Template:MonsterIcon: Difference between revisions

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.

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