Template:Icon

From Nubious
Revision as of 21:49, 12 October 2024 by Nubious (talk | contribs)

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

This template creates an inline image that is used in metapages such as Wikipedia:Vital articles and/or in user pages.

Usage

Basic usage
Template:Tlx
Template:Tlx
Custom size
Template:Tlx

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

{{#invoke:Icon/table|main}}

See also

Template:Wikipedia templates

TemplateData

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>