Template:Icon/doc
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
{{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
Name | Icon |
---|---|
triangle | |
square | |
x | |
circle | |
dpad | |
u | |
r | |
d | |
l | |
l1 | |
l2 | |
l3 | |
r1 | |
r2 | |
r3 | |
start | start |
select | select |
lstick | |
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.
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 |