Template:Plinksized

From [N8]
Revision as of 09:13, 2 June 2020 by Banri (talk | contribs) (Created page with "<includeonly>[[File:{{{pic|{{{1}}}}}}.png|link={{{1}}}{{#if:{{{size|}}}|{{!}}{{{size}}}px}}|alt={{{1}}}.png: Inventory image of {{{1}}}]] [[{{{1}}}|{{{txt|{{{1}}}}}}]]{{#...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Plinksized/doc. [edit] [purge]

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|Energy Cell}} Energy Cell.png: Inventory image of Energy Cell Energy Cell [[File:Energy Cell.png|link=Energy Cell]] [[Energy Cell]]
{{plinksized|Black Ice Shards|pic=Energy Cell}} Black Ice Shards.png: Inventory image of Black Ice Shards Black Ice Shards [[File:Energy Cell.png|link=Black Ice Shards]] [[Black Ice Shards]]
{{plinksized|Energy Cell|txt=Cell}} Energy Cell.png: Inventory image of Energy Cell Cell [[File:Energy Cell.png|link=Energy Cell]] [[Energy Cell|Cell]]
{{plinksized|Black Ice Shards|pic=Energy Cell|txt=Cell}} Black Ice Shards.png: Inventory image of Black Ice Shards Cell [[File:Energy Cell.png|link=Black Ice Shards]] [[Black Ice Shards|Cell]]
{{plinksized|Energy Cell|pic=Energy Cell|txt=Cell|size=35}} Energy Cell.png: Inventory image of Energy Cell Cell [[File:Energy Cell.png|link=Energy Cell|35px]] [[Energy Cell|Cell]]