Template:Game icon

From Final Fantasy XIV Online Wiki
(Redirected from Template:Action icon)
Jump to navigation Jump to search
Documentation for Template:Game icon [view] [edit] [history] [purge] (How does this work?)
{{game icon|name|text|size=|alt=|hq=|qty=|wrap=}}

Links to something in the game and displays its icon alongside the link. This template supports basically anything - items, actions, traits, quests, and anything else that uses Property:Has game icon.

Note that this template queries the given page for its attributes. It is designed for ease of use in text, but it should be avoided in semantically generated lists. If you are creating a table generated by a semantic query, the query should retrieve all the necessary icon data (see "Prerequisites" below), and pass each element's values directly to the formatting templates or modules (such as Module:Icon. That will avoid generating additional queries for every element in the list (a.k.a. "N + 1" queries).

Prerequisites

In order for {{game icon}} to work with a given page, the page needs a Has game icon value and either:

OR

Has game icon and Has context should be set by the relevant infobox. For pages without an infobox, such as Mount Speed, {{Lead icon}} should be used to specify the relevant icon and icon frame type for the page.

Parameters

Base parameters

name (unnamed parameter 1)
Item name. Defaults to "Item".
text (unnamed parameter 2)
alt
Optional. Link text; defaults to canonical name. Set to x to prevent link text from appearing. Unnamed parameter 2 has precedence over alt named parameter.
size
Optional. Can be small (default), mid, or big.
wrap
Set to anything to force text to wrap. Generally only used in infoboxes. Will not wrap text by default.

Item parameters

hq
Optional. Displays a high quality item.

Item/currency parameters

qty
Optional. Quantity of currency or items, displayed between icon and text. Mostly used by {{Vendor table row}} to display vendor/exchange costs. Accepts a number or a hyphenated range.


Template Data

Links to something in the game and displays its icon alongside the link.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item1

Page name of the target item

Page namerequired
Link text2

Text displayed in the link. Defaults to the linked item's canonical name. Use "x" to hide the link text and display only the icon.

Lineoptional
Sizesize

Display size of the icon.

Suggested values
small mid big
Default
small
Stringoptional
HQhq

For items only. Shows the high quality version of the item in the icon.

Auto value
0
Booleanoptional
Quantityqty

For items and currencies only. Quantity of currency or items represented. Accepts a number or a hyphenated range.

Stringoptional
Wrapwrap

Force link text to wrap. Generally only used in other templates like infoboxes.

Booleanoptional


Examples

Items

This is an example a paragraph with the {{game icon|Raisins}} item in it.

This is an example a paragraph with the Raisins item in it.

Other frame icons

Currencies

Probably easier to use {{currency}} for most things still

Quests

Achievements

{{game icon|Skyward Gemstone II}}

Skyward Gemstone II

Duties

{{game icon|Sastasha}}

Sastasha

FATEs/Critical Engagements

{{game icon|The Dalriada}}

The Dalriada

Enemies

{{game icon|Antelope Doe}}

Antelope Doe

{{game icon|Jungle Coeurl}}

Jungle Coeurl

Icon missing

{{game icon|The Black Shroud}}

File:The Black Shroud.png The Black Shroud