Template:Icon
This template uses Lua: |
About[edit]
This template creates an inline image that is used in metapages.
Usage[edit]
- Custom size
{{icon|code|size=size}}
Parameters[edit]
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 codes[edit]
Icon | Description | Code | Aliases |
---|---|---|---|
Category | category}} | cat , categ
| |
Cleanup work | cleanup}} | ||
Disambiguation page | disambiguation}} | dab , disamb , disambig
| |
Essay | essay}} | ||
Featured article | fa}} | ||
16x16px | Featured article candidate | fac}} | fan
|
Former featured article | ffa}} | dfa
| |
16x16px | Former featured picture | ffp}} | |
16x16px | Featured picture | fp}} | |
16x16px | Featured picture candidate | fpc}} | fpn
|
File | image}} | file
| |
MediaWiki | mediawiki}} | ||
16x16px | Meta-wiki page | meta}} | |
Module | module}} | ||
16x16px | Needed article | needed}} | |
Portal | portal}} | ||
Project page | project}} | ||
Question | q}} | question
| |
Redirect | redirect}} | red , redir
| |
Template | template}} | temp , templ
| |
Today's Featured Article | tfa}} | ||
Today's Featured Picture | tfl}} | ||
WikiProject | wikiproject}} |
See also[edit]
- {{Icon link}}
- {{Class/icon}}
- {{Done/See also}} - inline icon templates by shape and color
- {{Table cell templates/doc}}
TemplateData[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.
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 |