style="text-align:center;" | [[File:{{{1}}}.png|link={{{1}}}]] || style="text-align:left; {{{2}}}" | [[{{{1}}}|{{{1}}}]]

[purge]
This template is similar to the {{item link}}
template, but is meant for use in tables where the item image and item name are to be placed in separate, horizontally adjacent table cells. This allows all item images to align with each other, separate from the text names which will also align with each other.
Usage
Use the shortcut {{il2c}}
for convenience:
{{il2c|<item name>|size=}}
This displays an centered image link for the item in one cell, and a text link in the next.
- unnamed parameter 1
- Item name.
- unnamed parameter 2
- Optional parameter to set the CSS style of the cell containing the item name.
- istyle
- Optional parameter to set the CSS style of the cell containing the item image.
- tstyle
- Optional parameter same as parameter 2.
- attr
- Optional parameter to set cell attributes (e.g., rowspan).
- A colon can be used between the attribute and its value, or {{=}}.
- The default middle vertical alignment for rowspans greater than 1 can be changed with valign=top (attr=valign:top).
- size
- Optional parameter to set the image width.
- id
- Optional parameter to display the item ID.
- t
- Optional parameter to set custom link text. This replaces the item name displayed, while keeping the link destination and image intact.
- image
- Optional parameter to set a custom image. This replaces the image displayed, while keeping the link destination and text intact. Enter as a naked image name with no [[File: code, eg. Paintbrush.png.
Example
{| class="wikitable"
| {{il2c|Bed}}
|-
| {{il2c|Wood|tstyle=font-style:italic; background-color:papayawhip}}
|-
| {{il2c|Zombie|size=20px}}
|-
| {{il2c|Iron Pickaxe|id=1}}
|-
| {{il2c|Vilethorn|t=A Vilethorn}}
|-
| {{il2c|Beehive|image=Dislodgeable Beehive.png}}
|-
| {{il2c|Ruler|istyle=text-align:right}}
|-
| {{il2c|Blue Flare|attr=rowspan:2}} || 5 seconds
|-
| 10 seconds
|- valign=top
| {{il2c|Blue Flare|attr=rowspan{{=}}2}} || 5 seconds
|-
| 10 seconds
|}
Produces:
![]() |
Bed | |
![]() |
Wood | |
![]() |
Zombie | |
![]() |
Iron Pickaxe Internal Item ID: 1
| |
![]() |
A Vilethorn | |
![]() |
Beehive | |
![]() |
Ruler | |
![]() |
Blue Flare | 5 seconds |
10 seconds | ||
![]() |
Blue Flare | 5 seconds |
10 seconds |