Template:Icon: Difference between revisions

From Melvor Idle
(Add more complete documentation for options)
(Document potion override)
Line 25: Line 25:


You can also just do {{T|Icon|Combat}} {{Icon|Combat}} if you need an icon for an image that doesn't belong to a given category.
You can also just do {{T|Icon|Combat}} {{Icon|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: {{T|Icon|Diamond Luck Potion}} becomes {{Icon|Diamond Luck Potion}}.


Some special overrides exist:
Some special overrides exist:

Revision as of 23:13, 13 February 2022

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.

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|Knight Time|type=combatArea}} becomes Knight Time.

You can also just do {{Icon|Combat}} 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.

Some special overrides exist:

Input Output
{{Icon|Melee}} Melee
{{Icon|Item Alchemy}} Item Alchemy
{{Icon|Superheat}} Superheat
{{Icon|Basic Resupply}} Basic Resupply
{{Icon|Standard Resupply}} Standard Resupply
{{Icon|Generous Resupply}} Generous Resupply
{{Icon|Golbin|type=monster}} Golbin
{{Icon|Spider (lv. 51)|type=monster}} Spider (lv. 51)
{{Icon|Spider2|type=monster}} File:Spider2 (monster).png Brown Spider
{{Icon|Alt. Magic|type=skill}} Alt. Magic

Other options: