Template:Icon
![]() |
This is a documentation subpage for Template:Icon. It contains usage information, categories and other content that is not part of the original page. |
![]() |
This template uses material from the Wikipedia template Template:Icon/doc, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors). |
![]() | This template uses Lua: |
AboutEdit
This template creates an inline image that is used in metapages such as Wikipedia:Vital articles and/or in user pages.
UsageEdit
- Custom size
{{icon|code|size=size}}
ParametersEdit
1
orclass
- the icon code. See the table below for a list of available codes.size
- a custom icon size, e.g. "30px". The default size is "16x16px" (16 by 16 pixels).
Icon codesEdit
See alsoEdit
- {{Icon link}}
- {{Class/icon}}
- {{Done/See also}} - inline icon templates by shape and color
- {{Table cell templates/doc}}
TemplateDataEdit
TemplateData for Icon
This template creates an inline icon-sized image. Please refer to 'Template:Icon/doc' for the list of supported values.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon | 1 class | The identifier or name of the icon to be displayed. | Line | required |
size | size | The size of the icon to display, e.g. "30px".
| Line | optional |
![]() |
This is a documentation subpage for Template:Icon. It contains usage information, categories and other content that is not part of the original page. |
Lua error in package.lua at line 80: module 'Module:Transclusion_count/data/I' not found.
![]() | This template uses Lua: |

AboutEdit
This template creates an inline image that is used in metapages such as Wikipedia:Vital articles and/or in user pages.

UsageEdit

- Basic usage
{{icon|code}}
{{icon|class=code}}

- Custom size
{{icon|code|size=size}}

ParametersEdit

1
orclass
- the icon code. See the table below for a list of available codes.
size
- a custom icon size, e.g. "30px". The default size is "16x16px" (16 by 16 pixels).

Icon codesEdit

See alsoEdit
- {{Icon link}}
- {{Class/icon}}
- {{Done/See also}} - inline icon templates by shape and color

TemplateDataEdit
TemplateData for Icon
This template creates an inline icon-sized image. Please refer to 'Template:Icon/doc' for the list of supported values.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon | 1 class | The identifier or name of the icon to be displayed. | Line | required |
size | size | The size of the icon to display, e.g. "30px".
| Line | optional |
![]() |
This template uses material from the Wikipedia template Template:Icon, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors). |