Template:Icon: Difference between revisions
(Document potion override) |
m (Reference currency templates) |
||
Line 10: | Line 10: | ||
* [[Template:PrayerIcon]] for prayers | * [[Template:PrayerIcon]] for prayers | ||
* [[Template:ZoneIcon]] for combat zones | * [[Template:ZoneIcon]] for combat zones | ||
* [[Template:GP]], [[Template:SC]], or [[Template:RC]] for formatting of currencies (gold pieces, slayer coins, and raid coins respectively) | |||
For example: {{T|ItemIcon|Raw Trout}} becomes {{ItemIcon|Raw Trout}}. | For example: {{T|ItemIcon|Raw Trout}} becomes {{ItemIcon|Raw Trout}}. |
Revision as of 22:58, 17 April 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:
- Template:ItemIcon for items
- Template:MonsterIcon for monsters
- Template:Skill for skill
- Template:UpgradeIcon for upgrades (like the
Dragon Pickaxe)
- Template:PetIcon for pets
- Template:PrayerIcon for prayers
- Template:ZoneIcon for combat zones
- Template:GP, Template:SC, or Template:RC for formatting of currencies (gold pieces, slayer coins, and raid coins respectively)
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 marksspell
for standard and ancient magick spellscurse
for curse spellsaurora
for aurora spellsthieving
for Thieving NPCsconstellation
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}} |
|
{{Icon|Item Alchemy}} |
|
{{Icon|Superheat}} |
|
{{Icon|Basic Resupply}} |
![]() |
{{Icon|Standard Resupply}} |
![]() |
{{Icon|Generous Resupply}} |
![]() |
{{Icon|Golbin|type=monster}} |
![]() |
{{Icon|Spider (lv. 51)|type=monster}} |
![]() |
{{Icon|Spider2|type=monster}} |
File:Spider2 (monster).png Brown Spider |
{{Icon|Alt. Magic|type=skill}} |
Other options:
Option | Description | Example | ||
---|---|---|---|---|
Input | Output | |||
type |
Specifies the icon type | {{Icon|Normal Log|type=item}} |
![]() | |
ext |
Specifies the image's extension. This should almost always be automatically determined, therefore if this option is required for the correct image to display then there is likely an issue with extension overrides within Module:Icons | {{Icon|Golbin|ext=svg|type=monster}} |
||
size |
Determines the height (in pixels) of the image. If not specified the default is 25px (or 23px if the menu option is used) |
{{Icon|Combat|size=50}} |
||
qty |
Specifies the number of item to go alongside the icon and text | {{Icon|Elder Dragonhide|qty=5000|type=item}} |
5,000 ![]() | |
img |
If specified, this determines which image is used, in which case the first parameter only determines the link rather than the link and image | {{Icon|Mining|type=pet|img=Cool Rock}} |
||
notext |
If specified, only the image (with link) is generated | {{Icon|Mastery|notext=true}} |
||
nolink |
If specified, the text is generated without a link | {{Icon|Mastery|nolink=true}} |
||
noicon |
If specified, only the text (with link) is generated. This has limited use here, and was originally intended for use in Lua modules to allow for ease of disambiguating links | {{Icon|Cyclops|noicon=true|type=thieving}} |
Cyclops | |
menu |
Formats the icon in a handy table (useful for menuboxes) | {{Icon|Combat|menu=true}} |
|