Template:Plinkp/doc

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

The picture link plain template creates an image and links it to the page. Unlike {{plink}}, there is no text next to the image.

Usage

{{plinkp|item|pic=file name|gif}}

Examples

Code Produces Standard syntax
{{plinkp|Abyssal whip}} Abyssal whip [[File:Abyssal whip.png|link=Abyssal whip]]
{{plinkp|Granite maul|pic=Abyssal whip}} Granite maul [[File:Abyssal whip.png|link=Granite maul]]
{{plinkp|Imbued god capes|gif=yes}} Imbued god capes [[File:Imbued god capes.gif|link=Imbued god capes]]
{{plinkp|Abyssal whip|w=10px}} Abyssal whip [[File:Abyssal whip.png|link=Abyssal whip|10px]]
{{plinkp|Ancestral robe bottom|h=20px}} Ancestral robe bottom [[File:Ancestral robe bottom.png|link=Ancestral robe bottom|x20px]]

See also

Parameters

A variant of the "Picture Link" (plink) template, "Picture Link Plain" (plinkp) is used to display an item image and have it link to its corresponding page.

Template parameters

ParameterDescriptionTypeStatus
Item1

The item to link to and display

Page namerequired
Picturepic

This changes the filename used; 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
Widthw

Specify a width to scale the image to.

Default
Image's standard width.
Stringoptional
Heighth

Specify a height to scale the image to.

Default
Image's standard height.
Stringoptional