• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Icon

  • Language
  • Watch
  • View source

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 566,000 pages, or roughly 3919% of all 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.
This template uses Lua:
  • Module:Icon

Contents

  • 1 About
  • 2 Usage
  • 3 Parameters
  • 4 Icon codes
  • 5 See also
  • 6 TemplateData

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

See also

  • {{Icon link}}
  • {{Class/icon}}
  • {{Done/See also}} - inline icon templates by shape and color
  • {{Table cell templates/doc}}
  • v
  • t
  • e
Wikipedia templates
Main namespace
  • General
  • Cleanup
    • Verifiability and sources
  • Disputes
  • Hatnotes
  • Infoboxes
  • Links
    • External link templates
    • Linking country articles
  • Lists
  • Main page
  • Section
  • Sources of articles
    • Quick reference
  • Standard boxes
  • Stub types
  • Translation
Other namespaces
  • Compact TOC
  • Category
  • File
  • Talk
  • Template
  • User
    • Userboxes
  • User talk
  • Wikipedia
    • WikiProject banners
All namespaces
  • Deletion (Speedy)
  • Formatting
  • Maintenance
  • Merging
  • Moving
    • Requested
  • Navigation
  • Redirect pages
    • Functional index
    • Language codes
  • Splitting
  • Wikimedia sister projects
Navboxes
with templates
  • Archive
  • Articles for deletion
  • Birth, death and age
  • Button
  • Category header
  • Citation and verifiability
  • Citation Style 1
  • Deletion review
  • Editnotice
  • Hatnotes
  • Help desk
  • Inline cleanup
  • Introduction cleanup
  • IPA
  • Math
  • Notice and warnings
  • Organization infoboxes
  • Proposed article mergers
  • Protection
  • Quotation
  • Redirects
  • Search
  • Semantics
  • Speedy deletion
    • Notices
  • String-handling
  • Sup and sub-related
  • Top icon
  • Transwiki maintenance
  • Unicode
  • User talk pages
  • User noticeboard notices
  • Userboxes
    • User rights
  • Userspace linking
  • Userspace Disclaimers
  • Wikibreak
  • WikiLove
Inline images
  • Wikipedia icons
  • Discussion icons
  • Comment icons
  • Emoji
Related topics
  • Template documentation
  • Examples of templates
  • Maintenance template removal
  • Requested templates
  • WikiProject Templates
  • Template help
  • Template namespace
Search
  • Category

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[Edit template data]

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
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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Icon&oldid=1499"
Last edited on 26 September 2025, at 12:23
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 26 September 2025, at 12:23. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement