Template:Icon/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Icon It contains usage information, categories and other content that is not part of the original template page. |
Template for displaying small icons.
Usage[edit source]
{{icon|name of icon}}
Parameters[edit source]
<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[edit source]
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[edit source]
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Icon
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
icon name | 1 | no description
| String | required |
size | 2 | Size of the icon | Number | optional |
tooltip | tooltip | Alt text for the icon | String | optional |