Template:Icon

From Melvor Idle
Revision as of 23:01, 17 April 2022 by Auron956 (talk | contribs) (Move documentation to subpage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A generic version of the template used in things like Template:ItemIcon or Template:UpgradeIcon.

You probably want to use one of the following instead for most things:

For example: {{ItemIcon|Raw Trout}} becomes Raw Trout (item).svg Raw Trout.

Some icon categories/types do not have these shorthand templates, so instead the type parameter should be used: {{Icon|<IconName>|type=<IconType>}}. The types this applies to are as follows:

  • mark for Summoning marks
  • spell for standard and ancient magick spells
  • curse for curse spells
  • aurora for aurora spells
  • thieving for Thieving NPCs
  • constellation for Astrology constellations

Format is like so: {{Icon|Castle of Kings|type=combatArea|Knight Time}} becomes Castle of Kings (combatArea).svg Knight Time.

You can also just do {{Icon|Combat}} Combat.svg Combat if you need an icon for an image that doesn't belong to a given category.

For Herblore potions, the generic potion page can be linked to by specifying the potion name without a tier, for example: {{Icon|Diamond Luck Potion}} becomes Diamond Luck Potion I (item).svg Diamond Luck Potion.

Some special overrides exist:

Input Output
{{Icon|Melee}} Attack (skill).svg Melee
{{Icon|Item Alchemy}} Item Alchemy III (spell).svg Item Alchemy
{{Icon|Superheat}} Superheat IV (spell).svg Superheat
{{Icon|Basic Resupply}} Lobster (item).svg Basic Resupply
{{Icon|Standard Resupply}} Crab (item).svg Standard Resupply
{{Icon|Generous Resupply}} Shark (item).svg Generous Resupply
{{Icon|Golbin|type=monster}} Golbin (monster).svg Golbin
{{Icon|Spider (lv. 51)|type=monster}} Spider (monster).svg Spider (lv. 51)
{{Icon|Spider2|type=monster}} Brown Spider (monster).svg Brown Spider
{{Icon|Alt. Magic|type=skill}} Magic (skill).svg Alt. Magic

Other options: