Template:Plinksized
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.
| Code | Produces | Standard syntax |
|---|---|---|
{{plinksized|Energy Cell}}
|
Energy Cell
|
[[File:Energy Cell.png|link=Energy Cell]] [[Energy Cell]]
|
{{plinksized|Black Ice Shards|pic=Energy Cell}}
|
Black Ice Shards
|
[[File:Energy Cell.png|link=Black Ice Shards]] [[Black Ice Shards]]
|
{{plinksized|Energy Cell|txt=Cell}}
|
Cell
|
[[File:Energy Cell.png|link=Energy Cell]] [[Energy Cell|Cell]]
|
{{plinksized|Black Ice Shards|pic=Energy Cell|txt=Cell}}
|
Cell
|
[[File:Energy Cell.png|link=Black Ice Shards]] [[Black Ice Shards|Cell]]
|
{{plinksized|Energy Cell|pic=Energy Cell|txt=Cell|size=35}}
|
[[File:Energy Cell.png|link=Energy Cell|35px]] [[Energy Cell|Cell]]
|
