Template:Plink/doc
The picture link template creates an image and links it to the page as well as including text. For a textless version, use {{plinkp}}
.
This template is not intended to be commonly used in mainspace articles. It is primarily used in navboxes and tables to add images to help with navigation. In most other cases, pages should be linked with normal markup and without an image.
Usage
{{plink|item|pic=file name|txt=text}}
Examples
Code | Produces | Standard syntax |
---|---|---|
{{plink|Abyssal whip}}
|
Abyssal whip | [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip]]
|
{{plink|Granite maul|pic=Abyssal whip}}
|
Granite maul | [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
|
{{plink|Abyssal whip|txt=Whip}}
|
Whip | [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip|Whip]]
|
{{plink|Granite maul|pic=Abyssal whip|txt=Whip}}
|
Whip | [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul|Whip]]
|
See also
Parameters
The 'Picture Link' (plink) template is used to create item image + text links.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | The item to link to and display | Page name | required |
Picture | pic | The name of the image file; do not include 'File:' or '.png'
| File | optional |
Text override | txt | Override the displayed link text.
| String | optional |