Template:Pic link
This template creates an image and links it to the page as well as including text. For a textless version, use {{Pic link plain}}
.
This template should be used sparingly. Its main purpose is to add images to navboxes and tables. In most other cases, pages should be linked with normal markup and without an image.
Usage
{{Pic link|item|pic=file name|txt=text}}
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 numbers are allowed, "px" is already included in the code.
Code | Produces | Standard syntax |
---|---|---|
{{plink|Abyssal whip}}
|
![]() |
[[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip]]
|
{{plink|Granite maul|pic=Abyssal whip}}
|
![]() |
[[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
|
{{plink|Abyssal whip|txt=Whip}}
|
![]() |
[[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip|Whip]]
|
{{plink|Granite maul|pic=Abyssal whip|txt=Whip}}
|
![]() |
[[File:Abyssal whip.png|link=Granite maul]] [[Granite maul|Whip]]
|
{{plink|Abyssal whip|pic=Guthix jadinko|txt=Whip|size=35}}
|
![]() |
[[File:Guthix jadinko.png|link=Abyssal whip|35px]] [[Abyssal whip|Whip]]
|
Template 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. The "Picture Link" (plink) template is used to create item image+text links.
|