Template:Icon/doc
< Template:Icon
Jump to navigation
Jump to search
Revision as of 07:49, 5 December 2020 by imported>Moxy
| 40px | 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. |
| 40px | 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). |
| 30px | 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}} |
| 16x16px | Featured Article | {{icon|FA}} |
| 16x16px | Featured Article Candidate | {{icon|FAC}} |
| 16x16px | Featured Article Review | {{icon|FAR}} |
| 16x16px | Featured Article Removal Candidate | {{icon|FARC}} |
| 16x16px | Former Featured Article | {{icon|FFA}} |
| 16x16px | Failed Featured Article Candidate | {{icon|FFAC}} |
| 16x16px | Featured Picture | {{icon|FP}} |
| 16x16px | Featured Picture Candidate | {{icon|FPC}} |
| 16x16px | Former Featured Picture | {{icon|FFP}} |
| 16x16px | Featured Portal | {{icon|FPo}} |
| 16x16px | Former Featured Portal | {{icon|FFPo}} |
| 16x16px | Featured Portal Candidate | {{icon|FPoC}} |
| 16x16px | Featured Portal Review | {{icon|FPoR}} |
| 16x16px | Featured Sound | {{icon|FS}} |
| 16x16px | Former Featured Sound | {{icon|FFS}} |
| 16x16px | Featured Sound Candidate | {{icon|FSC}} |
| 16x16px | Featured Topic | {{icon|FT}} |
| 16x16px | Featured Topic Candidate | {{icon|FTC}} |
| 16x16px | Featured Topic Removal Candidate | {{icon|FTRC}} |
| 16x16px | Former Featured Topic | {{icon|FFT}} |
| 16x16px | 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}} |
| 16x16px | Good Article | {{icon|GA}} |
| 16x16px | Good Article Nominee | {{icon|GAN}} |
| 16x16px | Good Article, 2nd Opinion | {{icon|GA2}} |
| 16x16px | Good Article on Hold | {{icon|GAH}} |
| 16x16px | Good Article Reassessment | {{icon|GAR}} |
| 16x16px | Delisted Good Article | {{icon|DGA}} |
| 16x16px | Failed Good Article Nominee | {{icon|FGAN}} |
| 16x16px | Good Topic | {{icon|GT}} |
| 16x16px | Good Topic Candidate | {{icon|GTC}} |
| 16x16px | Good Topic Removal Candidate | {{icon|GTRC}} |
| 16x16px | Bplus-Class Article | {{icon|BPLUS}} |
| 16x16px | B-Class Article | {{icon|B}} |
| 16x16px | B-Class Review | {{icon|BR}} |
| 16x16px | C-Class Article | {{icon|C}} |
| 16x16px | Start-Class Article | {{icon|START}} |
| 16x16px | Stub-Class Article | {{icon|STUB}} |
| 16x16px | Featured List | {{icon|FL}} |
| 16x16px | Featured List Candidate | {{icon|FLC}} |
| 16x16px | Former Featured List | {{icon|FFL}} |
| 16x16px | Failed Featured List Candidate | {{icon|FFLC}} |
| 16x16px | Featured List Review | {{icon|FLR}} |
| 16x16px | Featured List Removal Candidate | {{icon|FLRC}} |
| 16x16px | List-Class Article | {{icon|LIST}} |
| 16x16px | Wikipedia Book | {{icon|Book}} |
| 16x16px | Category | {{icon|Category}} |
| 16x16px | Disambiguation page | {{icon|Disambig}} |
| 16x16px | File | {{icon|Image}} |
| 16x16px | Valued Picture | {{icon|VP}} |
| 16x16px | Valued Picture Candidate | {{icon|VPC}} |
| 16x16px | Outline | {{icon|Outline}} |
| 16x16px | Portal | {{icon|Portal}} |
| 16x16px | Project Page | {{icon|Project}} |
| 16x16px | Redirect | {{icon|Redirect}} |
| 16x16px | Template | {{icon|Template}} |
| 16x16px | Module | {{icon|module}} |
| 16x16px | Essay | {{icon|Essay}} |
| 16x16px | Non-article Page | {{icon|NA}} |
| 16x16px | Unknown-Class Article | {{icon|NO}} |
| 16x16px | Unassessed Article | {{icon|Unassessed}} |
| 16x16px | Audited Article of limited subject matter | {{icon|AA}} |
| 16x16px | Demoted Article | {{icon|DA}} |
| 16x16px | Did You Know? | {{icon|DYK}} |
| 16x16px | Did You Know? (alternate) | {{icon|DYK2}} |
| 16x16px | In The News | {{icon|ITN}} |
| 16x16px | On This Day | {{icon|OTD}} |
| 16x16px | Peer Review | {{icon|PR}} |
| 16x16px | Portal Peer Review | {{icon|PPR}} |
| 16x16px | Question | {{icon|Q}} |
| 16x16px | Quality Image on Wikimedia Commons | {{icon|QI}} |
| 16x16px | Today's Featured Article | {{icon|TFA}} |
| 16x16px | Valued Image on Wikimedia Commons | {{icon|VI}} |
| 16x16px | Commons page | {{icon|Commons}} |
| 16x16px | Meta-wiki page | {{icon|Meta}} |
| 16x16px | Wikibooks page | {{icon|Wikibooks}} |
| 16x16px | Wikidata page | {{icon|Wikidata}} |
| 16x16px | Wikinews page | {{icon|Wikinews}} |
| 16x16px | Wikipedia page | {{icon|Wikipedia}} |
| 16x16px | WikiProject page | {{icon|WikiProject}} |
| 16x16px | Wikiquote page | {{icon|Wikiquote}} |
| 16x16px | Wikisource page | {{icon|Wikisource}} |
| 16x16px | Wikispecies page | {{icon|Wikispecies}} |
| 16x16px | Wikiversity page | {{icon|Wikiversity}} |
| 16x16px | Wikivoyage page | {{icon|Wikivoyage}} |
| 16x16px | Wiktionary page | {{icon|Wiktionary}} |
| 16x16px | 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 -