Template:Plink

From Zeah RSPS - Wiki
Jump to navigation Jump to search

Script error: The module returned a nil value. It is supposed to return an export table. The picture link template creates an image and links it to the page as well as including text. For a textless version, use Script error: No such module "T"..

This template is not intended to be commonly used in mainspace articles. It is primarily used in navboxes and tables to add images to help with navigation. In most other cases, pages should be linked with normal markup and without an image.

Usage

{{plink|item|pic=file name|txt=text}}

Examples

Examples
Code Produces Standard syntax
{{plink|Abyssal whip}} Abyssal whip.pngAbyssal whip [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip]]
{{plink|Granite maul|pic=Abyssal whip}} Abyssal whip.pngGranite maul [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
{{plink|Abyssal whip|txt=Whip}} Abyssal whip.pngWhip [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip|Whip]]
{{plink|Granite maul|pic=Abyssal whip|txt=Whip}} Abyssal whip.pngWhip [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul|Whip]]
{{plink|Imbued god capes|gif=yes}} Imbued god capes.gifImbued god capes [[File:Imbued god capes.gif|link=Imbued god capes]] [[Imbued god capes]]

See also

Parameters

The 'Picture Link' (plink) template is used to create item image + text links.

Template parameters

ParameterDescriptionTypeStatus
Item1

The item to link to and display

Page namerequired
Picturepic

The name of the image file; do not include 'File:' or '.png'

Default
First parameter
Fileoptional
Gifgif

Set to 'yes' to change the file extension from '.png' to '.gif'

Default
'no'
Stringoptional
Text overridetxt

Override the displayed link text.

Default
First parameter
Stringoptional