Difference between revisions of "Template:MonsterIcon"

From Melvor Idle
(Added notext and menu overrides)
(added size argument)
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}}}|menu={{{menu|}}}|notext={{{notext|}}}|size={{{size|}}}}}</onlyinclude></includonly>
 +
s

Revision as of 23:39, 31 January 2021

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