Template:Ilinkt/doc

From Old School Near-Reality Wiki
Jump to navigation Jump to search
Information icon-grey.png
This is a documentation subpage for Template:Ilinkt.
It contains usage information, categories, and other content that is not part of the original template page.

The icon link table template is used to created image-and-text links within tables where the image file is suffixed with "icon".

Usage

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

Examples

Code Produces Standard syntax
{{ilinkt|Balance beam}} px Balance beam [[File:Balance beam icon.png|link=Balance beam]]||[[Balance beam]]
{{ilinkt|Granite maul|pic=Abyssal whip}} px Granite maul [[File:Abyssal whip.png|link=Granite maul]]||[[Granite maul]]
{{ilinkt|Balance beam|txt=Beam}} px Beam [[File:Balance beam icon.png|link=Balance beam]]||[[Balance beam|Beam]]
{{ilinkt|Balance beam|pic=Abyssal whip|txt=Whip}} px Whip [[File:Abyssal whip.png|link=Balance beam]]||[[Balance beam|Whip]]
{{ilinkt|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]]
{{ilinkt|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.

Page namerequired
Picturepic

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

Default
First parameter + ' icon'.
Fileoptional
Texttxt

Alternate text in the link.

Default
First parameter.
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.
Stringoptional
File typetype

The file type (extension) for the image

Default
png
Stringoptional