Template:Pic link plain
Revision as of 04:22, 13 October 2018 by >Darklordrr (Added template(s) Test)
Template documentation
Template:Pic link plain/Doc Visit Template:Pic link plain/Doc to edit me!
Template:Shortcut 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
{{plink|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
Code | Produces | Standard syntax |
---|---|---|
{{plink|Abyssal whip}}
|
Template:Plink | [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip]]
|
{{plink|Granite maul|pic=Abyssal whip}}
|
Template:Plink | [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul]]
|
{{plink|Abyssal whip|txt=Whip}}
|
Template:Plink | [[File:Abyssal whip.png|link=Abyssal whip]] [[Abyssal whip|Whip]]
|
{{plink|Granite maul|pic=Abyssal whip|txt=Whip}}
|
Template:Plink | [[File:Abyssal whip.png|link=Granite maul]] [[Granite maul|Whip]]
|