Template:Icon: Difference between revisions
Jump to navigation
Jump to search
en>Mr. Stradivarius m Changed protection level of Template:Icon: Highly visible template: allow template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)) |
en>Jackmcbarn rm redundancy and add size parameter |
||
Line 1: | Line 1: | ||
{{#switch:{{lc:{{{class|{{{1|}}}}}}}} | [[File:{{#switch:{{lc:{{{class|{{{1|}}}}}}}} | ||
|fa = | |fa = Featured article star.svg | Featured article | ||
|far = | |far = Cscr-star piece.png | Featured article review | ||
|farc = | |farc = Cscr-star piece.png | Featured article removal candidate | ||
|ffa|dfa = | |ffa|dfa = Featured article star - cross.svg | Former featured article | ||
|fac|fan = | |fac|fan = Cscr-candidate.svg | Featured article candidate | ||
|ffac|nofa = | |ffac|nofa = Featured article star - cross.svg | Failed featured article candidate | ||
|fl = | |fl = Featured article star.svg | Featured list | ||
|flrc|flr = | |flrc|flr = Cscr-star piece.png | Featured list removal candidate | ||
|ffl|dfl = | |ffl|dfl = Cscr-featured-strike.svg | Former featured list | ||
|flc|fln = | |flc|fln = Cscr-candidate.svg | Featured list candidate | ||
|fflc|nofl = | |fflc|nofl = Cscr-former.svg | Failed featured list candidate | ||
|a = | |a = Symbol a class.svg | A-Class article | ||
|dac|daa = | |dac|daa = Symbol unsupport A vote.svg | Demoted A-Class article | ||
|acc|acn|aac = | |acc|acn|aac = A candidate.svg | A-Class article candidate | ||
|noac|faac = | |noac|faac = Symbol unsupport A vote.svg | Failed A-Class article candidate | ||
|ga = | |ga = Symbol support vote.svg | Good article | ||
|gar = | |gar = GA Candidate Neutral vote(ChaosNil).svg | Good article reassessment | ||
|dga = | |dga = Symbol unsupport vote.svg | Delisted good article | ||
|gan|gac = | |gan|gac = GA candidate.svg | Good article nominee | ||
|ga2 = | |ga2 = Symbol neutral vote.svg | Good article, 2nd opinion | ||
|gah = | |gah = Symbol wait.svg | Good article on hold | ||
|fgan|noga|gaf|gf = | |fgan|noga|gaf|gf = Symbol oppose vote.svg | Failed good article nominee | ||
|fp = | |fp = Cscr-featured.svg | Featured picture | ||
|ffp = | |ffp = Cscr-former.svg | Former featured picture | ||
|vp = | |vp = ENWP VP Logo.svg | Valued picture | ||
|vpc = | |vpc = Valued pics 1.svg | Valued picture candidate | ||
|fs = | |fs = Cscr-featured.svg | Featured sound | ||
|ffs = | |ffs = Cscr-former.svg | Former featured sound | ||
|fsc = | |fsc = Cscr-candidate.svg | Featured sound candidate | ||
|fpo = | |fpo = Cscr-featured.svg | Featured portal | ||
|fpor = | |fpor = Cscr-star piece.png | Featured portal review | ||
|ffpo = | |ffpo = Featured article star - cross.svg | Former featured portal | ||
|fpoc = | |fpoc = Cscr-candidate.svg | Featured portal candidate | ||
|ft = | |ft = Cscr-featuredtopic.svg | Featured topic | ||
|ftrc = | |ftrc = Cscr-star piece.png | Featured topic removal candidate | ||
|fft|dft = | |fft|dft = DFT candidate_cluster.svg | Former featured topic | ||
|ftc|ftn = | |ftc|ftn = FT candidate cluster.svg | Featured topic candidate | ||
|gt = | |gt = Support cluster.svg | Good topic | ||
|gtrc = | |gtrc = Symbol unsupport vote.svg | Good topic removal candidate | ||
|gtc|gtn = | |gtc|gtn = GA candidate cluster.svg | Good topic candidate | ||
|bplus|b+ = | |bplus|b+ = Symbol bplus class.svg | Bplus-Class article | ||
|b = | |b = Symbol b class.svg | B-Class article | ||
|br|bcr = | |br|bcr = Bclass-checklist.svg | B-Class review | ||
|c = | |c = Symbol c class.svg | C-Class article | ||
|start = | |start = Symbol start class.svg | Start-Class article | ||
|stub = | |stub = Symbol stub class.svg | Stub-Class article | ||
|list = | |list = Symbol list class.svg | List-Class article | ||
|no = | |no = Crystal button cancel.svg | Unknown-Class article | ||
|book = | |book = Symbol book class2.svg | Wikipedia book | ||
|cat|categ | |cat|categ | ||
|category = | |category = Folder Hexagonal Icon.svg | Category | ||
|dab|disamb | |dab|disamb | ||
|disambig | |disambig | ||
|disambiguation = | |disambiguation = Symbol dab class.svg | Disambiguation page | ||
|image|file = | |image|file = Video-x-generic.svg | File | ||
|portal = | |portal = Portal-puzzle.svg | Portal | ||
|project = | |project = Symbol information vote.svg | Project page | ||
|red|redir | |red|redir | ||
|redirect = | |redirect = Symbol redirect vote2.svg | Redirect | ||
|temp|templ | |temp|templ | ||
|template = | |template = Symbol template class.svg | Template | ||
|na = | |na = Symbol neutral vote.svg | Non-article page | ||
|aa = | |aa = Yes check.svg | Audited article of limited subject matter | ||
|da = | |da = Symbol oppose vote.svg | Demoted article | ||
|dyk = | |dyk = Symbol question.svg | Did You Know? | ||
|dyk2 = | |dyk2 = DYK questionmark icon.svg | Did You Know? | ||
|pr = | |pr = Nuvola apps kedit.png | Peer review | ||
|ppr = | |ppr = Nuvola apps kedit.png | Portal peer review | ||
|q|question = | |q|question = Symbol question.svg | Question | ||
|qi = | |qi = Quality images logo.svg | Quality image on Wikimedia Commons | ||
|vi = | |vi = Valued image seal.svg | Valued image on Wikimedia Commons | ||
|tfa = | |tfa = Wikipedia-logo.svg | Today's Featured Article | ||
|itn = | |itn = Globe current.svg | In The News | ||
|otd = | |otd = Nuvola apps date.svg | On This Day | ||
|wikiproject = | |wikiproject = People icon.svg | WikiProject | ||
|wikipedia = | |wikipedia = Wikipedia-logo.svg | Wikipedia page | ||
|commons = | |commons = Commons-logo.svg | Commons page | ||
|wikiquote = | |wikiquote = Wikiquote-logo.svg | Wikiquote page | ||
|wikiversity = | |wikiversity = Wikiversity-logo.svg | Wikiversity page | ||
|wikibooks = | |wikibooks = Wikibooks-logo.svg | Wikibooks page | ||
|wikisource = | |wikisource = Wikisource-logo.svg | Wikisource page | ||
|wiktionary = | |wiktionary = Wiktionary-logo.svg | Wiktionary page | ||
|wikinews = | |wikinews = Wikinews-logo.svg | Wikinews page | ||
|wikispecies = | |wikispecies = Wikispecies-logo.svg | Wikispecies page | ||
|wikidata = | |wikidata = Wikidata-logo.svg | Wikidata page | ||
|wikivoyage = | |wikivoyage = Wikivoyage-logo.svg | Wikivoyage page | ||
|meta = | |meta = Wikimedia Community Logo.svg | Meta-wiki page | ||
|four = | |four = Four Award.svg | Four Award | ||
|million = | |million = Million award logo.svg | Million Award | ||
|#default = | |#default = Symbol question.svg | ||
}}|{{{size|16px}}}|link=]]<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:56, 8 April 2014
This template is used on 590,000+ pages, or roughly 4939% 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: |
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
1
orclass
- 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
|
|
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.
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}}