Template:Plink/doc: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
 
Line 14:
!Standard syntax
|-
|<code><nowiki>{{plink|Hammermage potionBucket}}</nowiki></code>
|{{plink|Hammermage potionBucket}}
|<code><nowiki>[[File:Hammermage potionBucket.png|link=Hammermage potionBucket]] [[Hammermage potionBucket]]</nowiki></code>
|-
|<code><nowiki>{{plink|Hammermage potionBucket|size=50}}</nowiki></code>
|{{plink|Hammermage potionBucket|size=50}}
|<code><nowiki>[[File:Hammermage potionBucket.png|50px|link=Hammermage potionBucket]] [[Hammermage potionBucket]]</nowiki></code>
|-
|<code><nowiki>{{plink|Health potionBottle|pic=Hammermage potionBucket}}</nowiki></code>
|{{plink|Health potionBottle|pic=Hammermage potionBucket}}
|<code><nowiki>[[File:Hammermage potionBucket.png|link=Health potionBottle]] [[Health potionBottle]]</nowiki></code>
|-
|<code><nowiki>{{plink|Hammermage potionBucket|txt=PotionBottle}}</nowiki></code>
|{{plink|Hammermage potionBucket|txt=PotionBottle}}
|<code><nowiki>[[File:Hammermage potionBucket.png|link=Hammermage potionBucket]] [[Hammermage potionBucket|PotionBottle]]</nowiki></code>
|-
|<code><nowiki>{{plink|Health potionBottle|pic=Hammermage potionBucket|txt=PotionBottle}}</nowiki></code>
|{{plink|Health potionBottle|pic=Hammermage potionBucket|txt=PotionBottle}}
|<code><nowiki>[[File:Hammermage potionBucket.png|link=Health potionBottle]] [[Health potionBottle|PotionBottle]]</nowiki></code>
|}
 

Latest revision as of 07:37, 21 November 2024

This is a documentation subpage for Template:Plink.
It contains usage information, categories, and other content that is not part of the original template page.

The picture link template creates an image and links it to the page as well as including text.

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

Examples
Code Produces Standard syntax
{{plink|Bucket}} Bucket [[File:Bucket.png|link=Bucket]] [[Bucket]]
{{plink|Bucket|size=50}} Bucket [[File:Bucket.png|50px|link=Bucket]] [[Bucket]]
{{plink|Bottle|pic=Bucket}} Bottle [[File:Bucket.png|link=Bottle]] [[Bottle]]
{{plink|Bucket|txt=Bottle}} Bottle [[File:Bucket.png|link=Bucket]] [[Bucket|Bottle]]
{{plink|Bottle|pic=Bucket|txt=Bottle}} Bottle [[File:Bucket.png|link=Bottle]] [[Bottle|Bottle]]

Parameters

The 'Picture Link' (plink) template is used to create item image + text links.

Template parameters

ParameterDescriptionTypeStatus
Item1

The item to link to and display

Page namerequired
Picturepic

The name of the image file; do not include 'File:' or '.png'

Default
First parameter
Fileoptional
Text overridetxt

Override the displayed link text.

Default
First parameter
Stringoptional
Sizesize

Sets custom size (in px).

Numberoptional