Template:Icon
Appearance
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| This template uses Lua: |
About
This template creates an inline image that is used in metapages.
Usage
- Custom size
{{icon|code|size=size}}
Parameters
1orclass- 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 codes
| Icon | Description | Code | Aliases |
|---|---|---|---|
| Category | {{icon|category}}
|
cat, categ
| |
| Cleanup work | {{icon|cleanup}}
|
||
| File:Symbol dab class.svg | Disambiguation page | {{icon|disambiguation}}
|
dab, disamb, disambig
|
| File:Essay.svg | Essay | {{icon|essay}}
|
|
| Featured article | {{icon|fa}}
|
||
| File:File-star.svg | Featured article candidate | {{icon|fac}}
|
fan
|
| Former featured article | {{icon|ffa}}
|
dfa
| |
| File:Star-box-multiple-outline.svg | Former featured picture | {{icon|ffp}}
|
|
| File:Star-box-outline.svg | Featured picture | {{icon|fp}}
|
|
| File:File-star-outline.svg | Featured picture candidate | {{icon|fpc}}
|
fpn
|
| File | {{icon|image}}
|
file
| |
| MediaWiki | {{icon|mediawiki}}
|
||
| File:Community Logo.svg | Meta-wiki page | {{icon|meta}}
|
|
| Module | {{icon|module}}
|
||
| File:Creation.svg | Needed article | {{icon|needed}}
|
|
| File:Symbol portal class.svg | Portal | {{icon|portal}}
|
|
| File:Symbol project class.svg | Project page | {{icon|project}}
|
|
| Question | {{icon|q}}
|
question
| |
| File:Symbol redirect vote2.svg | Redirect | {{icon|redirect}}
|
red, redir
|
| File:Symbol template class.svg | Template | {{icon|template}}
|
temp, templ
|
| Today's Featured Article | {{icon|tfa}}
|
||
| Today's Featured Picture | {{icon|tfl}}
|
||
| WikiProject | {{icon|wikiproject}}
|
See also
- {{Icon link}}
- {{Class/icon}}
- {{Done/See also}} - inline icon templates by shape and color
- {{Table cell templates/doc}}
TemplateData
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 | optional |
| size | size | The size of the icon to display, e.g. "30px".
| Line | optional |