Template:Plinksized

Revision as of 22:10, 21 January 2021 by Oscillator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]]
==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.

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.

Used in the {{Infobox}} template but can be used anywhere.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page1

This parameter takes the name of the page that the link is for

Example
Energy cell
Stringoptional
22

no description

Unknownoptional
Picpic

If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"

Example
Energy cell
Stringoptional
Sizesize

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

Example
100
Stringoptional
Texttxt

Alternate text in the link; defaults to the first parameter

Stringoptional
altalt

no description

Unknownoptional