FANDOM


Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:Iconlink/doc.

This template creates an image and links it to the page as well as including text as well as resizing it to the given size in pixels.

This is a variation of Template:Pic link.

Usage

{{iconlink|item|pic=file name|txt=text|size=size without px}}

1

This parameter takes the name of the page that the link is for

pic

If included, this changes the filename used; defaults to the first parameter + " icon"; do not include "File:" or ".png"

txt

Alternate text in the link; defaults to the first parameter

size

The size of an image if the image is too big, only number are allowed, "px" is already included in the code. The default size is 35x35px.

Examples
Code Produces Standard syntax
{{iconlink|Balance beam}} Balance beam icon Balance beam [[File:Balance beam icon.png|link=Balance beam]] [[Balance beam]]
{{iconlink|Granite maul|pic=Abyssal whip}} Abyssal whip Granite maul [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
{{iconlink|Balance beam|txt=Beam}} Balance beam icon Beam [[File:Balance beam icon.png|link=Balance beam]] [[Balance beam|Beam]]
{{iconlink|Balance beam|pic=Abyssal whip|txt=Whip}} Abyssal whip Whip [[File:Abyssal whip.png|link=Balance beam]] [[Balance beam|Whip]]
{{iconlink|Balance beam|pic=Guthix jadinko|txt=Whip|size=35}} Guthix jadinko Whip [[File:Guthix jadinko.png|link=Balance beam|35px]] [[Balance beam|Whip]]
Community content is available under CC-BY-SA unless otherwise noted.