Template:Icon/doc: Difference between revisions

From Melvor Idle
(Move documentation to subpage)
 
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 6: Line 6:
* [[Template:MonsterIcon]] for monsters
* [[Template:MonsterIcon]] for monsters
* [[Template:Skill]] for skill
* [[Template:Skill]] for skill
* [[Template:SpellIcon]] for spells from any spellbook
* [[Template:SpellbookIcon]] for spellbooks themselves
* [[Template:UpgradeIcon]] for upgrades (like the {{UpgradeIcon|Dragon Pickaxe}})
* [[Template:UpgradeIcon]] for upgrades (like the {{UpgradeIcon|Dragon Pickaxe}})
* [[Template:Synergy]] for showing synergies between two familiars
* [[Template:PetIcon]] for pets
* [[Template:PetIcon]] for pets
* [[Template:PrayerIcon]] for prayers
* [[Template:PrayerIcon]] for prayers
* [[Template:ZoneIcon]] for combat zones
* [[Template:ZoneIcon]] for combat zones
* [[Template:ConstellationIcon]] for Astrology constellations
* [[Template:TownshipIcon]] for all types of Township icons
* [[Template:AgilityIcon]] for Agility obstacles and pillars
* [[Template:POIIcon]] for Cartography Points of Interest ('POIs')
* [[Template:GP]], [[Template:SC]], or [[Template:RC]] for formatting of currencies (gold pieces, slayer coins, and raid coins respectively)
* [[Template:GP]], [[Template:SC]], or [[Template:RC]] for formatting of currencies (gold pieces, slayer coins, and raid coins respectively)
* [[Template:PP]] for formatting of prayer points


For example: {{T|ItemIcon|Raw Trout}} becomes {{ItemIcon|Raw Trout}}.
For example: {{T|ItemIcon|Raw Trout}} becomes {{ItemIcon|Raw Trout}}.
Line 17: Line 25:


* <code>mark</code> for Summoning marks
* <code>mark</code> for Summoning marks
* <code>spell</code> for standard and ancient magick spells
* <code>curse</code> for curse spells
* <code>aurora</code> for aurora spells
* <code>thieving</code> for Thieving NPCs
* <code>thieving</code> for Thieving NPCs
* <code>constellation</code> for Astrology constellations


Format is like so: {{T|Icon|type=combatArea|Castle of Kings|Knight Time}} becomes {{Icon|type=combatArea|Castle of Kings|Knight Time}}.
Format is like so: {{T|Icon|type=combatArea|Castle of Kings|Knight Time}} becomes {{Icon|type=combatArea|Castle of Kings|Knight Time}}.
Line 47: Line 51:
|{{T|Icon|type=monster|Golbin}}||{{Icon|type=monster|Golbin}}
|{{T|Icon|type=monster|Golbin}}||{{Icon|type=monster|Golbin}}
|-
|-
|{{T|Icon|type=monster|Spider (lv. 51)}}||{{MonsterIcon|Spider (lv. 51)}}
|{{T|Icon|type=skill|Alt. Magic}}||{{Icon|type=skill|Alt. Magic}}
|-
|{{T|Icon|type=monster|Spider2}}||{{MonsterIcon|Spider2}}
|-
|-
|{{T|Icon|type=skill|Alt. Magic}}||{{Icon|type=skill|Alt. Magic}}
|{{T|Icon|type=monster|Earth Golem (AoD)}}||{{Icon|type=monster|Earth Golem (AoD)}}
|}
|}


Line 78: Line 80:
|-
|-
| <code>menu</code> || Formats the icon in a handy table (useful for menuboxes) || {{T|Icon|Combat|menu=true}} || {{Icon|Combat|menu=true}}
| <code>menu</code> || Formats the icon in a handy table (useful for menuboxes) || {{T|Icon|Combat|menu=true}} || {{Icon|Combat|menu=true}}
|-
| <code>section</code> || If specified, attempts to link to a particular section of the page being linked to || {{T|Icon|Bird Nest|type=item|section=Loot Table}} || {{Icon|Bird Nest|type=item|section=Loot Table}}
|}
|}

Latest revision as of 12:14, 3 April 2024

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
  • thieving for Thieving NPCs

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|Alt. Magic|type=skill}} Alt. Magic
{{Icon|Earth Golem (AoD)|type=monster}} Earth Golem

Other options: