Template:Ilink

From Old School RuneScape Wiki
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:Ilink/doc. [edit] [purge]

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.

Usage

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

Examples

Code Produces Standard syntax
{{ilink|Balance beam}} Balance beam icon.png Balance beam [[File:Balance beam icon.png|link=Balance beam]] [[Balance beam]]
{{ilink|Granite maul|pic=Abyssal whip}} Abyssal whip.png Granite maul [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
{{ilink|Balance beam|txt=Beam}} Balance beam icon.png Beam [[File:Balance beam icon.png|link=Balance beam]] [[Balance beam|Beam]]
{{ilink|Balance beam|pic=Abyssal whip|txt=Whip}} Abyssal whip.png Whip [[File:Abyssal whip.png|link=Balance beam]] [[Balance beam|Whip]]
{{ilink|Balance beam|pic=Gnome child chathead|txt=Whip|size=35}} Gnome child chathead.png Whip [[File:Gnome child chathead.png|link=Balance beam|35px]] [[Balance beam|Whip]]
{{ilink|Steam achievements|pic=A New Hero colour|type=jpg|size=35}} A New Hero (unlocked).jpg Steam achievements [[File:A New Hero (unlocked).jpg|link=Steam achievements|35px]] [[Steam achievements]]

See also

Parameters

Template parameters

ParameterDescriptionTypeStatus
Item1

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

Default
empty
Example
empty
Auto value
empty
Pagerequired
Picturepic

This changes the filename used; do not include 'File:' or '.png'

Default
First parameter + ' icon'.
Example
empty
Auto value
empty
Fileoptional
Texttxt

Alternate text in the link.

Default
First parameter.
Example
empty
Auto value
empty
Stringoptional
Picture sizesize

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

Default
Default picture size
Example
empty
Auto value
empty
Stringoptional
File typetype

The file type (extension) for the image

Default
png
Example
empty
Auto value
empty
Stringoptional