• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Icon

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 536,000 pages, or roughly 1327% 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

Lua error in package.lua at line 80: module 'Module:Icon/data/sandbox' not found.

See also

  • {{Icon link}}
  • {{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. Click here to see a monthly parameter usage report for this template based on this 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
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://moasspedia.org/w/index.php?title=Template:Icon&oldid=19110"
Categories:
  • Pages with script errors
  • Lua-based templates
  • Templates using TemplateData
  • Single-image insertion templates
Last edited on 23 January 2015, at 05:29

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 23 January 2015, at 05:29.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop