FANDOM


Information icon-grey
This is a documentation subpage for Template:Plinksized.
It contains usage information, categories, and other content that is not part of the original template page.

This template creates an image and links it to the page as well as including text as well as resizing it to the given size in pixels.

This is a variation of Template:Pic link.

Usage

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

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

size

The size of an image if the image is too big, only number are allowed, "px" is already included in the code.

Examples
Code Produces Standard syntax
{{plinksized|Abyssal whip}} Abyssal whip Abyssal whip [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip]]
{{plinksized|Granite maul|pic=Abyssal whip}} Abyssal whip Granite maul [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
{{plinksized|Abyssal whip|txt=Whip}} Abyssal whip Whip [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip|Whip]]
{{plinksized|Granite maul|pic=Abyssal whip|txt=Whip}} Abyssal whip Whip [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul|Whip]]
{{plinksized|Abyssal whip|pic=Guthix jadinko|txt=Whip|size=35}} Guthix jadinko Whip [[File:Guthix jadinko.png|link=Abyssal whip|35px]] [[Abyssal whip|Whip]]


Community content is available under CC-BY-SA unless otherwise noted.