Template:Pic link plain/doc
< Template:Pic link plain
Jump to navigation
Jump to search
Revision as of 04:24, 13 October 2018 by >Darklordrr (Created page with "{{Documentation}} {{Shortcut|Template:Plink}} This template creates an image and links it to the page as well as including text. For a textless version, use {{t|Pic link plain...")
Template documentation
Template:Pic link plain/doc/Doc Visit Template:Pic link plain/doc/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[edit source]
{{plink|item|pic=file name|txt=text}}
1[edit source]
This parameter takes the name of the page that the link is for
pic[edit source]
If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"
txt[edit source]
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]]
|