Template:Icon/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Icon. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 475,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 by Ahechtbot. |
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
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
Icon | Type | Code |
---|---|---|
Vital Article | Template:Tlg | |
Featured Article | Template:Tlg | |
Featured Article Candidate | Template:Tlg | |
Featured Article Review | Template:Tlg | |
Featured Article Removal Candidate | Template:Tlg | |
Former Featured Article | Template:Tlg | |
Failed Featured Article Candidate | Template:Tlg | |
Featured Picture | Template:Tlg | |
Featured Picture Candidate | Template:Tlg | |
Former Featured Picture | Template:Tlg | |
Featured Portal | Template:Tlg | |
Former Featured Portal | Template:Tlg | |
Featured Portal Candidate | Template:Tlg | |
Featured Portal Review | Template:Tlg | |
Featured Sound | Template:Tlg | |
Former Featured Sound | Template:Tlg | |
Featured Sound Candidate | Template:Tlg | |
Featured Topic | Template:Tlg | |
Featured Topic Candidate | Template:Tlg | |
Featured Topic Removal Candidate | Template:Tlg | |
Former Featured Topic | Template:Tlg | |
A-Class Article | Template:Tlg | |
A-Class Article Candidate | Template:Tlg | |
Demoted A-Class Article | Template:Tlg | |
Failed A-Class Article Candidate | Template:Tlg | |
Good Article | Template:Tlg | |
Good Article Nominee | Template:Tlg | |
Good Article, 2nd Opinion | Template:Tlg | |
Good Article on Hold | Template:Tlg | |
Good Article Reassessment | Template:Tlg | |
Delisted Good Article | Template:Tlg | |
Failed Good Article Nominee | Template:Tlg | |
Good Topic | Template:Tlg | |
Good Topic Candidate | Template:Tlg | |
Good Topic Removal Candidate | Template:Tlg | |
Bplus-Class Article | Template:Tlg | |
B-Class Article | Template:Tlg | |
B-Class Review | Template:Tlg | |
C-Class Article | Template:Tlg | |
Start-Class Article | Template:Tlg | |
Stub-Class Article | Template:Tlg | |
Featured List | Template:Tlg | |
Featured List Candidate | Template:Tlg | |
Former Featured List | Template:Tlg | |
Failed Featured List Candidate | Template:Tlg | |
Featured List Review | Template:Tlg | |
Featured List Removal Candidate | Template:Tlg | |
List-Class Article | Template:Tlg | |
Wikipedia Book | Template:Tlg | |
Category | Template:Tlg | |
Disambiguation page | Template:Tlg | |
File | Template:Tlg | |
Valued Picture | Template:Tlg | |
Valued Picture Candidate | Template:Tlg | |
Outline | Template:Tlg | |
Portal | Template:Tlg | |
Project Page | Template:Tlg | |
Redirect | Template:Tlg | |
Template | Template:Tlg | |
Module | Template:Tlg | |
Essay | Template:Tlg | |
Non-article Page | Template:Tlg | |
Unknown-Class Article | Template:Tlg | |
Unassessed Article | Template:Tlg | |
Audited Article of limited subject matter | Template:Tlg | |
Demoted Article | Template:Tlg | |
Did You Know? | Template:Tlg | |
Did You Know? (alternate) | Template:Tlg | |
In The News | Template:Tlg | |
On This Day | Template:Tlg | |
Peer Review | Template:Tlg | |
Portal Peer Review | Template:Tlg | |
Question | Template:Tlg | |
Quality Image on Wikimedia Commons | Template:Tlg | |
Today's Featured Article | Template:Tlg | |
Valued Image on Wikimedia Commons | Template:Tlg | |
Commons page | Template:Tlg | |
Meta-wiki page | Template:Tlg | |
Wikibooks page | Template:Tlg | |
Wikidata page | Template:Tlg | |
Wikinews page | Template:Tlg | |
Wikipedia page | Template:Tlg | |
WikiProject page | Template:Tlg | |
Wikiquote page | Template:Tlg | |
Wikisource page | Template:Tlg | |
Wikispecies page | Template:Tlg | |
Wikiversity page | Template:Tlg | |
Wikivoyage page | Template:Tlg | |
Wiktionary page | Template:Tlg | |
Four Award | Template:Tlg | |
Million Award | Template:Tlg |
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 -