Template:I2/doc

Description
Displays item icon and name. This template is useful when creating lists in various infoboxes such as Infobox Item. Often used alongside Template:Columns.

The difference between Template:I and this template is that this template includes the name of the item alongside the icon, as opposes to Template:I only displaying the icon.

This template is mobile friendly.

Syntax
CLEAN

<1>
Name of the item you wish to display.

<2>
Size, in px, of the image that will display with the name.

<3>
The label that should be shown, if it is different than the page being linked to. If they are the same (and they mostly will be), do not include this third section at all.

alt
Alternate name of image should it be different to the name entered in field 1. Which generally it is.

br
By default, the i2 template includes a line break, so as to be suitable for making lists. If a more in-line usage is required, adding |br=no before the closing brackets will cancel this line break. See the third and fourth examples below to observe the difference.

Where Used
One of the most common locations this template is used, is in the Infobox Item template used on Item articles. Below are some articles that use this template.


 * Hologram
 * Server

Samples
1.

This example, with only sections <1> and <2>:

Results in...

2.

This example, with section <3> also:

Results in...

Note that the link in this second example differs from the text shown, and directs to a specific section on the target page.

3.

In this example, multiple i2 templates in sequence will appear on consecutive lines:

Results in...

4.

And in this example, adding the line-break cancellation code will cause the i2 to appear in-line with normal text: Welcome to, where all your dreams come true! Results in...

Get your heart rate up when visitng for a diagnosis!