Template:Weakness clickpic/doc

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Information icon-grey.svg
This is a documentation subpage for Template:Weakness clickpic.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Weakness clickpic invokes function main in Module:Weakness clickpic using Lua.

This template can be used to display the weakness icon given the weakness specified in the first parameter and will also provide a link to the appropriate page related to the weakness. It supports values seperated by commas.

Examples
{{Weakness clickpic|Crush, Fire, Thrown}}

returns

Crush weakness icon.png Crush
Fire weakness icon.png Fire spells
Thrown weakness icon.png Thrown

If no weakness is specified or the weakness is not valid (see table below), a warning will be displayed:

{{Weakness clickpic|Giant Mole}}

returns

Bad argument

The text link can be suppressed by adding notext=true.

{{Weakness clickpic|Crush, Fire, Thrown|notext=true}}

returns

Crush weakness icon.png
Fire weakness icon.png
Thrown weakness icon.png

Categories can be added to a page by adding cg=yes.

{{Weakness clickpic|Crush|cg=yes}}

Will add Category:Weak to crush attacks

Accepted values (case insensitive)
Melee Ranged Magic
Bane Slayer Other