Template:Plinkp

From Old School Near-Reality Wiki
Revision as of 13:45, 7 November 2022 by Jacmob (talk | contribs) (Created page with "<includeonly><span class="plinkp-template">[[File:{{{pic|{{{1}}}}}}.{{#switch:{{{gif|no}}}|no=png|yes=gif}}|link={{{1}}}|alt={{{1}}}{{#if:{{{w|}}}|{{!}}{{{w}}}|}}{{#if:{{{h|}}}|{{!}}x{{{h}}}|}}]]</span></includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Plinkp/doc. [edit] [history] [purge]

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