Template:Icon
This template is used on approximately 360,000 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
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[edit]
Basic usage
{{icon|code}}
{{icon|class=code}}
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 | Type | Code |
---|---|---|
Featured Article | {{icon|FA}} | |
Featured Article Candidate | {{icon|FAC}} | |
Featured Article Review | {{icon|FAR}} | |
Featured Article Removal Candidate | {{icon|FARC}} | |
Former Featured Article | {{icon|FFA}} | |
Failed Featured Article Candidate | {{icon|FFAC}} | |
Featured Picture | {{icon|FP}} | |
Featured Picture Candidate | {{icon|FPC}} | |
Former Featured Picture | {{icon|FFP}} | |
Featured Portal | {{icon|FPo}} | |
Former Featured Portal | {{icon|FFPo}} | |
Featured Portal Candidate | {{icon|FPoC}} | |
Featured Portal Review | {{icon|FPoR}} | |
Featured Sound | {{icon|FS}} | |
Former Featured Sound | {{icon|FFS}} | |
Featured Sound Candidate | {{icon|FSC}} | |
Featured Topic | {{icon|FT}} | |
Featured Topic Candidate | {{icon|FTC}} | |
Featured Topic Removal Candidate | {{icon|FTRC}} | |
Former Featured Topic | {{icon|FFT}} | |
A-Class Article | {{icon|A}} | |
A-Class Article Candidate | {{icon|ACC}} | |
Demoted A-Class Article | {{icon|DAA}} | |
Failed A-Class Article Candidate | {{icon|FAAC}} | |
Good Article | {{icon|GA}} | |
Good Article Nominee | {{icon|GAN}} | |
Good Article, 2nd Opinion | {{icon|GA2}} | |
Good Article on Hold | {{icon|GAH}} | |
Good Article Reassessment | {{icon|GAR}} | |
Delisted Good Article | {{icon|DGA}} | |
Failed Good Article Nominee | {{icon|FGAN}} | |
Good Topic | {{icon|GT}} | |
Good Topic Candidate | {{icon|GTC}} | |
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}} | |
File | {{icon|Image}} | |
Valued Picture | {{icon|VP}} | |
Valued Picture Candidate | {{icon|VPC}} | |
Outline | {{icon|Outline}} | |
Portal | {{icon|Portal}} | |
Project Page | {{icon|Project}} | |
Redirect | {{icon|Redirect}} | |
Template | {{icon|Template}} | |
Module | {{icon|module}} | |
Essay | {{icon|Essay}} | |
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? (alternate) | {{icon|DYK2}} | |
In The News | {{icon|ITN}} | |
On This Day | {{icon|OTD}} | |
Peer Review | {{icon|PR}} | |
Portal Peer Review | {{icon|PPR}} | |
Question | {{icon|Q}} | |
Quality Image on Wikimedia Commons | {{icon|QI}} | |
Today's Featured Article | {{icon|TFA}} | |
Valued Image on Wikimedia Commons | {{icon|VI}} | |
Commons page | {{icon|Commons}} | |
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 | {{icon|Wikisource}} | |
Wikispecies page | {{icon|Wikispecies}} | |
Wikiversity page | {{icon|Wikiversity}} | |
Wikivoyage page | {{icon|Wikivoyage}} | |
Wiktionary page | {{icon|Wiktionary}} | |
Four Award | {{icon|FOUR}} | |
Million Award | {{icon|Million}} |
TemplateData[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.
TemplateData for Icon
<templatedata> { "description": "This template creates an inline icon-sized image. Please refer to 'Template:Icon/doc' for the list of supported values.", "params": { "1": { "label": "Icon", "description": "The identifier or name of the icon to be displayed.", "type": "line", "required": false, "aliases": [ "class" ], "default": "" }, "size": { "description": "The size of the icon to display, e.g. \"30px\".", "type": "line", "default": "16x16px" } } } </templatedata>
See also[edit]
- {{icon+link}}
The above documentation is transcluded from Template:Icon/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |