Template:Plink

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

The picture link template creates an image and links it to the page as well as including text. For a textless version, use {{plinkp}}.

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.

Parameters

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

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; do not include "File:" or ".png"

txt

Alternate text in the link; defaults to the first parameter

Examples
Code Produces Standard syntax
{{plink|Abyssal whip}} Abyssal whip.png Abyssal whip [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip]]
{{plink|Granite maul|pic=Abyssal whip}} Abyssal whip.png Granite maul [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
{{plink|Abyssal whip|txt=Whip}} Abyssal whip.png Whip [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip|Whip]]
{{plink|Granite maul|pic=Abyssal whip|txt=Whip}} Abyssal whip.png Whip [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul|Whip]]

gif

Use the parameter gif=yes if the image is a GIF file. If parameter is not given, defaults to no.

Code Produces Standard syntax
{{plink|Imbued god capes|gif=yes}} Imbued god capes.gif Imbued god capes [[File:Imbued god capes.gif|link=Imbued god capes]] [[Imbued god capes]]

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.


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

Template parameters

ParameterDescriptionTypeStatus
11

Item

Default
empty
Example
The item to link to and display
Auto value
empty
Stringrequired
Imagepic

The name of the image file. Defaults to the Item param.

Default
empty
Example
empty
Auto value
empty
Stringoptional
Gifgif

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Text overridetxt

Override the displayed link text.

Default
empty
Example
empty
Auto value
empty
Stringoptional