Template:Plink/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{{Documentation}} 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== <pre>{{plink|item|pic=file name|txt=text}}</pre> ==Examples== {|class="wikitable" |+ Examples !Code !...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
!Standard syntax |
!Standard syntax |
||
|- |
|- |
||
|<code><nowiki>{{plink| |
|<code><nowiki>{{plink|Bucket}}</nowiki></code> |
||
|{{plink| |
|{{plink|Bucket}} |
||
|<code><nowiki>[[File: |
|<code><nowiki>[[File:Bucket.png|link=Bucket]] [[Bucket]]</nowiki></code> |
||
|- |
|- |
||
|<code><nowiki>{{plink| |
|<code><nowiki>{{plink|Bucket|size=50}}</nowiki></code> |
||
|{{plink| |
|{{plink|Bucket|size=50}} |
||
|<code><nowiki>[[File: |
|<code><nowiki>[[File:Bucket.png|50px|link=Bucket]] [[Bucket]]</nowiki></code> |
||
|- |
|- |
||
|<code><nowiki>{{plink| |
|<code><nowiki>{{plink|Bottle|pic=Bucket}}</nowiki></code> |
||
|{{plink| |
|{{plink|Bottle|pic=Bucket}} |
||
|<code><nowiki>[[File: |
|<code><nowiki>[[File:Bucket.png|link=Bottle]] [[Bottle]]</nowiki></code> |
||
|- |
|- |
||
|<code><nowiki>{{plink| |
|<code><nowiki>{{plink|Bucket|txt=Bottle}}</nowiki></code> |
||
|{{plink| |
|{{plink|Bucket|txt=Bottle}} |
||
|<code><nowiki>[[File: |
|<code><nowiki>[[File:Bucket.png|link=Bucket]] [[Bucket|Bottle]]</nowiki></code> |
||
|- |
|- |
||
|<code><nowiki>{{plink| |
|<code><nowiki>{{plink|Bottle|pic=Bucket|txt=Bottle}}</nowiki></code> |
||
|{{plink| |
|{{plink|Bottle|pic=Bucket|txt=Bottle}} |
||
|<code><nowiki>[[File: |
|<code><nowiki>[[File:Bucket.png|link=Bottle]] [[Bottle|Bottle]]</nowiki></code> |
||
|} |
|} |
||
Latest revision as of 07:37, 21 November 2024
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
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.
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 |
Size | size | Sets custom size (in px). | Number | optional |