Template:Pic link table
The picture link table template is a variant of {{plink}} used to created image-and-text links within tables.
Usage
1
The first unnamed parameter takes the name of the page to be linked to. The template will automatically use the same name for the image shown in the first column.
| Code | Produces | Standard syntax | |
|---|---|---|---|
{{plinkt|Abyssal whip}}
|
Abyssal whip | | [[File:Abyssal whip.png|link=Abyssal whip]] | [[Abyssal whip]] | |
pic
If included, this changes the filename used; defaults to the first parameter. Do not include "File:" or ".png"
| Code | Produces | Standard syntax | |
|---|---|---|---|
{{plinkt|Abyssal whip|pic=Granite maul}}
|
Abyssal whip | | [[File:Granite maul.png|link=Abyssal whip]] | [[Abyssal whip]] | |
border
Use the parameter border=no if the border between the picture and text cells should be removed. If the parameter is not given, the border will not be removed.
| Code | Produces | Standard syntax | |
|---|---|---|---|
{{plinkt|Abyssal whip|border=no}}
|
Abyssal whip | | style="border-right: none;" | [[File:Abyssal whip.png|link=Abyssal whip]] | style="border-left: none;" | [[Abyssal whip]] | |
gif
Use the parameter gif=yes if the image is a GIF file. If parameter is not given, defaults to no.
| Code | Produces | Standard syntax | |
|---|---|---|---|
{{plinkt|Broav|gif=yes}}
|
![]() |
Broav | | [[File:Broav.gif|link=Broav]] | [[Broav]] |
link
Use the parameter link to set the target page to link to, use link=no to produce plain text:
| Code | Produces | Standard syntax | |
|---|---|---|---|
{{plinkt|Overload (4)|link=Overload}}
|
Overload (4) | | [[File:Overload (4).png|link=Overload]] | [[Overload|Overload (4)]] | |
{{plinkt|Overload (4)|link=no}}
|
Overload (4) | | [[File:Overload (4).png|link=]] | Overload (4) | |
rowspan
Use the parameter rowspan to control how many rows to output:
| Code | Produces | Standard syntax | |||
|---|---|---|---|---|---|
| {{plinkt|Overload (3)|rowspan=6}}
| {{plinkt|Extreme attack (3)}}
|-
| {{plinkt|Extreme strength (3)}}
|-
| {{plinkt|Extreme defence (3)}}
|-
| {{plinkt|Extreme magic (3)}}
|-
| {{plinkt|Extreme ranging (3)}}
|-
| {{plinkt|Clean torstol}}
|
Overload (3) | Extreme attack (3) | | rowspan="6" | [[File:Overload (3).png]] | rowspan="6" | [[Overload (3)]] | [[File:Extreme attack (3).png]] | [[Extreme strength (3)]] |- | [[File:Extreme strength (3).png]] | [[Extreme strength (3)]] |- | [[File:Extreme defence (3).png]] | [[Extreme strength (3)]] |- | [[File:Extreme magic (3).png]] | [[Extreme strength (3)]] |- | [[File:Extreme ranging (3).png]] | [[Extreme strength (3)]] |- | [[File:Clean torstol.png]] | [[Clean torstol]] | ||
| Extreme strength (3) | |||||
| Extreme defence (3) | |||||
| Extreme magic (3) | |||||
| Extreme ranging (3) | |||||
| Clean torstol | |||||
sort
Use the parameter sort to control the value used for sorting.
size
The size of an image if the image is too big. Only numbers are allowed; "px" is already included in the code.
width
Adjusts the width of the text cell only - without this, adjusting the width like | width="200" {{Plinkt|Bucket}} will increase the size of both cells. Only numbers are allowed; "px" is already included in the code. This only needs to be set once, on the first row of the table.
Primarily used to ensure consistent column widths across separate tables, as shown below.
Without width set (❌ UGLY):
| Item | Cost | |
|---|---|---|
| Superior tetsu helm | 600,000 | |
| Superior tetsu body | 2,400,000 | |
| Superior tetsu platelegs and extra long title | 1,200,000 | |
| Item | Cost | |
|---|---|---|
| Tetsu katana | 2,500,000 | |
| Tetsu wakizashi | 1,250,000 | |
With width set (✅ good):
| Item | Cost | |
|---|---|---|
| Superior tetsu helm | 600,000 | |
| Superior tetsu body | 2,400,000 | |
| Superior tetsu platelegs and extra long title | 1,200,000 | |
| Item | Cost | |
|---|---|---|
Tetsu katana (width specified here)
|
2,500,000 | |
| Tetsu wakizashi | 1,250,000 | |
See also
Template data
| Show/hide template's data | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. A variant of the "Picture Link" (plink) template, "Picture Link Table" (plinkt) is used to display an item image and text link across two table cells.
|
|||||||||||||||||||||||||||||||||||||||||||||
