Template:Icon/doc: Difference between revisions
Appearance
Content deleted Content added
remove High-use template from sandbox display |
templatedata |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
{{High-use}} |
|||
{{Lua|Module:Icon}} |
{{Lua|Module:Icon}} |
||
Line 27: | Line 27: | ||
== See also == |
== See also == |
||
* {{tl|Icon link}} |
* {{tl|Icon link}} |
||
* {{tl|Class/icon}} |
|||
* {{tl|Done/See also}} - inline icon templates by shape and color |
* {{tl|Done/See also}} - inline icon templates by shape and color |
||
* {{tl|Table cell templates/doc}} |
* {{tl|Table cell templates/doc}} |
||
Line 41: | Line 42: | ||
"description": "The identifier or name of the icon to be displayed.", |
"description": "The identifier or name of the icon to be displayed.", |
||
"type": "line", |
"type": "line", |
||
"required": |
"required": true, |
||
"aliases": [ |
"aliases": [ |
||
"class" |
"class" |
||
] |
] |
||
"default": "" |
|||
}, |
}, |
||
"size": { |
"size": { |
||
Line 57: | Line 57: | ||
<!--This page transcluded beyond this template's page/subpages, so:--> |
<!--This page transcluded beyond this template's page/subpages, so:--> |
||
{{#ifeq:{{FULLPAGENAME}}|Template:Icon| |
{{#ifeq:{{FULLPAGENAME}}|Template:Icon| |
||
[[Category: |
[[Category:Icon insertion templates| ]] |
||
}} |
}} |
Latest revision as of 01:21, 7 April 2024
This is a documentation subpage for Template:Icon. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 617,000 pages, or roughly 1% 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: |
About
[edit]This template creates an inline image that is used in metapages such as Wikipedia:Vital articles and/or in user pages.
Usage
[edit]- Custom size
{{icon|code|size=size}}
Parameters
[edit]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
[edit]See also
[edit]- {{Icon link}}
- {{Class/icon}}
- {{Done/See also}} - inline icon templates by shape and color
- {{Table cell templates/doc}}
TemplateData
[edit]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 | required |
size | size | The size of the icon to display, e.g. "30px".
| Line | optional |