Template:Icon: Difference between revisions
Template Creation |
m bugdix |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{# | {{#if: {{{font|}}} | {{#{{{font}}}: {{{1}}} }} | {{#fas: {{{1}}} }} }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 22:11, 12 October 2024
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Icon/doc to edit this documentation. (How does this work?) |
Template:Documentation subpage Template:High-use Template: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]
- Basic usage
- Template:Tlx
- Template:Tlx
- Custom size
- Template:Tlx
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]
{{#invoke:Icon/table|main}}
See also[edit]
- Template:Tl
- Template:Tl
- Template:Tl - inline icon templates by shape and color
- Template:Tl
TemplateData[edit]
Template:TemplateData header <templatedata> { "description": "This template creates an inline icon-sized image. Please refer to 'Template:Icon/doc' for the list of supported values.", "params": { "1": { "label": "Icon", "description": "The identifier or name of the icon to be displayed.", "type": "line", "required": true, "aliases": [ "class" ] }, "size": { "description": "The size of the icon to display, e.g. \"30px\".", "type": "line", "default": "16x16px" } } }
</templatedata>