Template:Icon/doc

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search

About

This template creates an inline image that is used in metapages such as Wikipedia:Vital articles and/or in user pages.

Usage

Basic usage
{{icon|code}}
{{icon|class=code}}
Custom size
{{icon|code|size=size}}

Parameters

  • 1 or class - 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 Description Code Aliases
A-Class article a}}
Error creating thumbnail: Audited article of limited subject matter aa}}
Error creating thumbnail: A-Class article candidate acc}} aac, acn
B-Class article b}}
File:Symbol book class2.svg Wikipedia book book}}
File:Symbol bplus class.svg Bplus-Class article bplus}} b+
Error creating thumbnail: B-Class review br}} bcr
C-Class article c}}
Category category}} cat, categ
Error creating thumbnail: Cleanup work cleanup}}
Commons page commons}}
File:Symbol oppose vote.svg Demoted article da}}
File:Symbol unsupport A vote.svg Demoted A-Class article dac}} daa
Error creating thumbnail: Delisted good article dga}}
Error creating thumbnail: Disambiguation page disambiguation}} dab, disamb, disambig
Did You Know? dyk}}
Error creating thumbnail: Did You Know? dyk2}}
Error creating thumbnail: Essay essay}}
Error creating thumbnail: Featured article fa}}
Featured article candidate fac}} fan
Error creating thumbnail: Featured article review far}}
Error creating thumbnail: Featured article removal candidate farc}}
File:Featured article star - cross.svg Former featured article ffa}} dfa
File:Featured article star - cross.svg Failed featured article candidate ffac}} nofa
Error creating thumbnail: Former featured list ffl}} dfl
Error creating thumbnail: Failed featured list candidate fflc}} nofl
Error creating thumbnail: Former featured picture ffp}}
File:Featured article star - cross.svg Former featured portal ffpo}}
Error creating thumbnail: Former featured sound ffs}}
Error creating thumbnail: Former featured topic fft}} dft
File:Symbol oppose vote.svg Failed good article nominee fgan}} gaf, gf, noga
Error creating thumbnail: Featured list fl}}
Featured list candidate flc}} fln
Error creating thumbnail: Featured list removal candidate flrc}} flr
Error creating thumbnail: Four Award four}} 4a
Error creating thumbnail: Featured picture fp}}
Featured picture candidate fpc}} fpn
File:Linecons big-star.svg Before the featured portal process ceased in 2017, this had been designated as a featured portal. fpo}}
Featured portal candidate fpoc}}
Error creating thumbnail: Featured portal review fpor}}
Error creating thumbnail: Featured sound fs}}
Featured sound candidate fsc}}
Error creating thumbnail: Featured topic ft}}
Error creating thumbnail: Featured topic candidate ftc}} ftn
Error creating thumbnail: Featured topic removal candidate ftrc}}
Good article ga}}
Error creating thumbnail: Good article, 2nd opinion ga2}}
Error creating thumbnail: Good article on hold gah}}
File:GA candidate.svg Good article nominee gan}} gac
File:GA Candidate Neutral vote(ChaosNil).svg Good article reassessment gar}}
Error creating thumbnail: Guild of Copy Editors goce}}
File:Support cluster.svg Good topic gt}}
File:GA candidate cluster.svg Good topic candidate gtc}} gtn
Error creating thumbnail: Good topic removal candidate gtrc}}
Error creating thumbnail: File image}} file
File:Globe current.svg In The News itn}}
Error creating thumbnail: List-Class article list}} comparison
Error creating thumbnail: MediaWiki mediawiki}}
Error creating thumbnail: Meta-wiki page meta}}
Error creating thumbnail: Million Award million}}
File:Lua-logo-nolabel.svg Module module}}
Non-article page na}}
File:Symbol needed class.svg Needed article needed}}
Error creating thumbnail: Unknown-Class article no}}
File:Symbol unsupport A vote.svg Failed A-Class article candidate noac}} faac
File:Nuvola apps date.svg On This Day otd}}
Error creating thumbnail: Outline outline}}
Error creating thumbnail: Phabricator phabricator}} phab
Portal portal}}
Picture of the Day potd}}
File:Nuvola apps kedit.png Portal peer review ppr}}
File:Nuvola apps kedit.png Peer review pr}}
Error creating thumbnail: Project page project}}
Question q}} question
File:Quality images logo.svg Quality image on Wikimedia Commons qi}}
Redirect redirect}} red, redir
Error creating thumbnail: Start-Class article start}}
Error creating thumbnail: Stub-Class article stub}}
Error creating thumbnail: Template template}} temp, templ
Today's Featured Article tfa}}
Today's Featured List tfl}}
File:Valued image seal.svg Valued image on Wikimedia Commons vi}}
Error creating thumbnail: Vital article vital}}
Error creating thumbnail: Valued picture vp}}
File:Valued pics 1.svg Valued picture candidate vpc}}
Error creating thumbnail: Wikibooks page wikibooks}}
Error creating thumbnail: Wikidata page wikidata}}
Wikinews page wikinews}}
Wikipedia page wikipedia}}
WikiProject wikiproject}}
Error creating thumbnail: Wikiquote page wikiquote}}
Error creating thumbnail: Wikisource page wikisource}}
Error creating thumbnail: Wikispecies page wikispecies}}
File:Wikitech-2021-blue-icon.svg Wikitech wikitech}}
Error creating thumbnail: Wikiversity page wikiversity}}
Error creating thumbnail: Wikivoyage page wikivoyage}}
Error creating thumbnail: Wiktionary page wiktionary}}

See also

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Icon in articles based on its TemplateData.

TemplateData for Icon

This template creates an inline icon-sized image. Please refer to 'Template:Icon/doc' for the list of supported values.

Template parameters

ParameterDescriptionTypeStatus
Icon1 class

The identifier or name of the icon to be displayed.

Default
Lineoptional
sizesize

The size of the icon to display, e.g. "30px".

Default
16x16px
Lineoptional