Template:Icon is used to display icon images from games, normally adjacent to a link to the relevant article. This can be used in an article when referring to a stat, element, status effect, or otherwise for which a game has an icon.

The game is specified in the first parameter, followed by the category of icon, and the icon itself to be displayed. For accessibility, the name and link is displayed after the icon. Icons compatible with the template are stored in Module:Icon/data.

This template depends on Module:Icon
This template uses Lua. To make adjustments to this template, edit the module page.

Usage

{{icon|game= |category= |icon=}}

The above is used for generating icons. If all is specified, an icon is generated.

For example:

{{icon|FFVIIR|attribute|strength}}

will display:

Strength Strength

If the icon has no link attached, or nolink is used in a fourth parameter, no link will be displayed. For example:

{{icon|FFVIIR|attribute|strength|nolink}}

will display:

Strength

Parameters

Required

game or <unnamed 1>

The game that the icon is from. Options depend on games with icons stored in Module:Icon/data.

Required

category or <unnamed 2>

The category of the icon to be displayed. Options depend icons stored in Module:Icon/data, and should be singular.

Required

icon or <unnamed 3>

The icon displayed. Options depend on games with icons stored in Module:Icon/data.

Required

<unnamed 4>

Used for options. Fill with nolink to hide the link portion and only show the icon.

Community content is available under CC-BY-SA unless otherwise noted.