Template:Plink

From [N8]
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Plink/doc. [edit] [purge]

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

Examples
Code Produces Standard syntax
{{plink|Black Ice Shards}} Black Ice Shards.png: RS3 Inventory image of Black Ice ShardsBlack Ice Shards [[File:Black Ice Shards.png|link=Black Ice Shards]] [[Black Ice Shards]]
{{plink|Energy Cell|txt=Cell}} Energy Cell.png: RS3 Inventory image of Energy CellCell [[File:Energy Cell.png|link=Energy Cell]] [[Energy Cell|Cell]]