Template:Icon/doc

Revision as of 19:39, 6 April 2025 by Polavux (talk | contribs) (Created page with "<templatedata> { "params": { "1": { "label": "Image", "description": "The image to use for the icon.", "example": "BTD6 Quincy RapidShotAA.png", "type": "wiki-file-name", "required": true }, "2": { "label": "Link", "description": "Adds a link to the page next to the icon and makes clicking on the icon link to that page.", "example": "Quincy (BTD6)", "type": "string" }, "3": { "label": "Label", "description": "Changes the text d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Creates an inline icon of an image, optionally with a link.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Image1

The image to use for the icon.

Example
BTD6 Quincy RapidShotAA.png
Filerequired
Link2

Adds a link to the page next to the icon and makes clicking on the icon link to that page.

Example
Quincy (BTD6)
Stringoptional
Label3

Changes the text displayed on the link.

Example
Quincy
Stringoptional
Flip?flip

If set to anything, the icon will be flipped horizontally.

Example
y
Booleanoptional

Example usage

Wikitext Output
{{icon|BTD6 Quincy RapidShotAA.png}}
{{icon|BTD6 Quincy RapidShotAA.png|Quincy (BTD6)}}  Quincy (BTD6)
{{icon|BTD6 Quincy RapidShotAA.png|Quincy (BTD6)|Quincy}} Quincy Quincy