模板:Icon/doc

来自决策链云智库
< 模板:Icon
Zeroclanzhang讨论 | 贡献2024年1月16日 (二) 17:43的版本 (创建页面,内容为“{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{High-use}} {{Lua|Module:Icon}} == 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 :{{tlx|icon|''code''}} :{{tlx|icon|class{{=}}''code''}} ;Custom size…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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
Black alert alert}}
Black, white, and red alert alert-blackred}}
Green alert alert-constructive}}
Alert alert-imagewarning}}
B-Class article b}}
Original barnstar barnstar}}
Original barnstar hires barnstar2}}
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
Discussion discussionnotificaion}}
Draft-Class article draft}}
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
Information info}}
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

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.

模板参数

参数描述类型状态
Icon1class

The identifier or name of the icon to be displayed.

默认值
单行文本可选
sizesize

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

默认值
16x16px
单行文本可选