Template:Icon
| This template is used on approximately 484,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
| This template uses Lua: |
This template creates an inline image that is used in metapages such as Wikipedia:Vital articles and/or in user pages.
Syntax
Basic usage
{{icon|code}}
{{icon|class=code}}
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 | Type | Code |
|---|---|---|
| 16x16px | Vital Article | {{icon|Vital}} |
| Featured article | Featured Article | {{icon|FA}} |
| Featured article candidate | Featured Article Candidate | {{icon|FAC}} |
| Featured Article Review | {{icon|FAR}} | |
| Featured Article Removal Candidate | {{icon|FARC}} | |
| Former featured article | Former Featured Article | {{icon|FFA}} |
| Failed featured article candidate | Failed Featured Article Candidate | {{icon|FFAC}} |
| Featured Picture | {{icon|FP}} | |
| Featured Picture Candidate | {{icon|FPC}} | |
| Former featured picture | Former Featured Picture | {{icon|FFP}} |
| 16x16px | Featured Portal | {{icon|FPo}} |
| Former Featured Portal | {{icon|FFPo}} | |
| Featured portal candidate | Featured Portal Candidate | {{icon|FPoC}} |
| Featured portal review | Featured Portal Review | {{icon|FPoR}} |
| Featured sound | Featured Sound | {{icon|FS}} |
| Former Featured Sound | {{icon|FFS}} | |
| Featured sound candidate | Featured Sound Candidate | {{icon|FSC}} |
| Featured Topic | {{icon|FT}} | |
| Featured topic candidate | Featured Topic Candidate | {{icon|FTC}} |
| Featured Topic Removal Candidate | {{icon|FTRC}} | |
| Former Featured Topic | {{icon|FFT}} | |
| A-Class Article | {{icon|A}} | |
| 16x16px | A-Class Article Candidate | {{icon|ACC}} |
| 16x16px | Demoted A-Class Article | {{icon|DAA}} |
| 16x16px | Failed A-Class Article Candidate | {{icon|FAAC}} |
| Good article | Good Article | {{icon|GA}} |
| Good article nominee | Good Article Nominee | {{icon|GAN}} |
| 16x16px | Good Article, 2nd Opinion | {{icon|GA2}} |
| Good Article on Hold | {{icon|GAH}} | |
| 16x16px | Good Article Reassessment | {{icon|GAR}} |
| 16x16px | Delisted Good Article | {{icon|DGA}} |
| Failed Good Article Nominee | {{icon|FGAN}} | |
| Good Topic | {{icon|GT}} | |
| Good Topic Candidate | {{icon|GTC}} | |
| 16x16px | Good Topic Removal Candidate | {{icon|GTRC}} |
| Bplus-Class Article | {{icon|BPLUS}} | |
| B-Class Article | {{icon|B}} | |
| B-Class Review | {{icon|BR}} | |
| C-Class Article | {{icon|C}} | |
| Start-Class Article | {{icon|START}} | |
| Stub-Class Article | {{icon|STUB}} | |
| Featured List | {{icon|FL}} | |
| Featured List Candidate | {{icon|FLC}} | |
| Former Featured List | {{icon|FFL}} | |
| Failed Featured List Candidate | {{icon|FFLC}} | |
| Featured List Review | {{icon|FLR}} | |
| Featured List Removal Candidate | {{icon|FLRC}} | |
| List-Class Article | {{icon|LIST}} | |
| Wikipedia Book | {{icon|Book}} | |
| Category | {{icon|Category}} | |
| Disambiguation page | {{icon|Disambig}} | |
| 16x16px | File | {{icon|Image}} |
| Valued Picture | {{icon|VP}} | |
| Valued picture candidate | Valued Picture Candidate | {{icon|VPC}} |
| Outline | {{icon|Outline}} | |
| Portal | Portal | {{icon|Portal}} |
| 16x16px | Project Page | {{icon|Project}} |
| Redirect | {{icon|Redirect}} | |
| Template | {{icon|Template}} | |
| Module | {{icon|module}} | |
| Essay | Essay | {{icon|Essay}} |
| 16x16px | Non-article Page | {{icon|NA}} |
| Unknown-Class Article | {{icon|NO}} | |
| Unassessed Article | {{icon|Unassessed}} | |
| Audited Article of limited subject matter | {{icon|AA}} | |
| Demoted Article | {{icon|DA}} | |
| Did You Know? | {{icon|DYK}} | |
| Did You Know? | Did You Know? (alternate) | {{icon|DYK2}} |
| 16x16px | In The News | {{icon|ITN}} |
| On This Day | {{icon|OTD}} | |
| Peer review | Peer Review | {{icon|PR}} |
| Portal peer review | Portal Peer Review | {{icon|PPR}} |
| Question | {{icon|Q}} | |
| Quality Image on Wikimedia Commons | {{icon|QI}} | |
| Today's Featured Article | {{icon|TFA}} | |
| 16x16px | Valued Image on Wikimedia Commons | {{icon|VI}} |
| Commons page | {{icon|Commons}} | |
| Meta-wiki page | Meta-wiki page | {{icon|Meta}} |
| Wikibooks page | {{icon|Wikibooks}} | |
| Wikidata page | {{icon|Wikidata}} | |
| Wikinews page | {{icon|Wikinews}} | |
| Wikipedia page | {{icon|Wikipedia}} | |
| WikiProject page | {{icon|WikiProject}} | |
| Wikiquote page | {{icon|Wikiquote}} | |
| Wikisource page | Wikisource page | {{icon|Wikisource}} |
| 16x16px | Wikispecies page | {{icon|Wikispecies}} |
| Wikiversity page | {{icon|Wikiversity}} | |
| Wikivoyage page | {{icon|Wikivoyage}} | |
| 16x16px | Wiktionary page | {{icon|Wiktionary}} |
| Four Award | {{icon|FOUR}} | |
| 16x16px | Million Award | {{icon|Million}} |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
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 |
See also
- {{icon+link}}
- Template:Done/See also - Inline icon templates by shape and color.
- Template:Table cell templates/doc -
| The above documentation is transcluded from Template:Icon/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |