Template:Plinkt: Difference between revisions
(Created page with "<onlyinclude><includeonly><!-- -->class="plinkt-image {{#ifeq:{{yesno|{{{border|}}}|blank=|false=no}}|no<!-- -->| no-border<!-- -->}}" <!-- -->{{#if:{{{rowspan|}}}|rowspan="{{{rowspan}}}" <nowiki/>}}<!-- -->{{!}}<!-- --><span class="inventory-image"><!-- -->[[File:{{{pic|{{{1}}}}}}.png|<!-- -->link={{#switch:{{{link|}}}<!-- -->|no=<!-- -->|#default={{{link}}}<!-- -->|={{{1}}}<!-- -->}}<!-- -->{{#if:{{{size|}}}|{{!}}{{{size}}}px}}<!-- -->]]...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6:
-->{{!}}<!--
--><span class="inventory-image"><!--
-->[[File:{{{pic|{{{1}}}}}}.png|{{{size|30}}}px|<!--
-->link={{#switch:{{{link|}}}<!--
-->|no=<!--
Line 12:
-->|={{{1}}}<!--
-->}}<!--
-->]]<!--
--></span> || <!--
|
Latest revision as of 23:34, 1 November 2024
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|Hammermage potion}}
|
Hammermage potion | | [[File:Hammermage potion.png|link=Hammermage potion]] | [[Hammermage potion]] |
pic
If included, this changes the filename used; defaults to the first parameter. Do not include "File:" or ".png"
Code | Produces | Standard syntax | |
---|---|---|---|
{{plinkt|Hammermage potion|pic=Brown Kelp}}
|
Hammermage potion | | [[File:Brown Kelp.png|link=Hammermage potion]] | [[Hammermage potion]] |
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|Hammermage potion|border=no}}
|
Hammermage potion | | style="border-right: none;" | [[File:Hammermage potion.png|link=Hammermage potion]] | style="border-left: none;" | [[Hammermage potion]] |
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|Hammermage potion|link=Brown Kelp}}
|
Hammermage potion | | [[File:Hammermage potion.png|link=Brown Kelp]] | [[Brown Kelp|Hammermage potion]] | |
{{plinkt|Hammermage potion|link=no}}
|
Hammermage potion | | [[File:Hammermage potion.png|link=]] | Hammermage potion |
rowspan
Use the parameter rowspan=
to control how many rows to output:
Code | Produces | Standard syntax | |||
---|---|---|---|---|---|
| {{plinkt|Jellied Eels|rowspan=4}} | {{plinkt|Lesser Jellied Eels}} |- | {{plinkt|Gray Jellied Eels}} |- | {{plinkt|Rocky Jellied Eels}} |- | {{plinkt|Rord Jellied Eels}} |
Jellied Eels | Lesser Jellied Eels | | rowspan="6" | [[File:Jellied Eels.png]] | rowspan="6" | [[Jellied Eels]] | [[File:Lesser Jellied Eels.png]] | [[Lesser Jellied Eels]] |- | [[File:Gray Jellied Eels.png]] | [[Gray Jellied Eels]] |- | [[File:Rocky Jellied Eels.png]] | [[Rocky Jellied Eels]] |- | [[File:Rord Jellied Eels.png]] | [[Rord Jellied Eels]] | ||
File:Gray Jellied Eels.png | Gray Jellied Eels | ||||
File:Rocky Jellied Eels.png | Rocky Jellied Eels | ||||
File:Rord Jellied Eels.png | Rord Jellied Eels |
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:
Item | Cost | |
---|---|---|
Bucket | 20 | |
Crate | 20 | |
Fishing Spear and extra long title | 12 |
Item | Cost | |
---|---|---|
Bucket | 20 | |
crate | 20 |
With width
set:
Item | Cost | |
---|---|---|
Bucket | 20 | |
Crate | 20 | |
Fishing Spear and extra long title | 12 |
Item | Cost | |
---|---|---|
Bucket (width specified here)
|
20 | |
Crate | 20 |
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.
|