Template:Icon/doc

From SlyMods
Jump to navigation Jump to search

Template for displaying small icons.

Usage

{{icon|name of icon}}

Parameters

<unnamed 1>

Which icon should be displayed.

<unnamed 2> (optional)

Specifies size of the icon (defaults to height of 16px). Can either be set to one of the presets below or directly given as a px value (same syntax as for setting image size of a normal file link).
The presets are:
  • "small": Icons will be displayed at a height appropriate for tables, navboxes and infoboxes (12px).
  • "medium"/"normal": Icons will be displayed at 16px height.
  • "big": Icons will be displayed at 20px height.

tooltip (optional)

Alt text displayed when hovering over the icon or if the icon image is not available. Overrides the icon's default text.

Available icons

Controller button icons are by ArksDigital on itch.io.

Name Icon
triangle triangle
square square
x x
circle circle
dpad dpad
u u
r r
d d
l l
l1 l1
l2 l2
l3 l3
r1 r1
r2 r2
r3 r3
start start
select select
lstick lstick
rstick rstick
optional optional
required required
semi-required semi-required

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Icon

No description.

Template parameters

ParameterDescriptionTypeStatus
icon name1

no description

Example
square
Stringrequired
size2

Size of the icon

Numberoptional
tooltiptooltip

Alt text for the icon

Stringoptional