User:Johan G/Messagebox/icon
< User:Johan G | Messagebox
Jump to navigation
Jump to search
messagebox/icon: no image
The following template description is not displayed when the template is inserted in an article.
Goal
This template is used by User:Johan G/Messagebox/content.
Usage
{{messagebox/icon | style = | one-liner = | image = | image-width = | box = | image-style = }}
Parameters affecting the appearance
Optional parameters affecting the appearance of the icon.
- style
- Determines the colour of the default icons. Valid values are speedy, warning, caution, note, tip, protected and neutral. Defaults to note.
- one-liner
- If not empty a smaller image width will be used.
- image
- Image or icon to use excluding the File: namespace prefix, for example Cleanup.png. Instead of an image name a shortcut can be used. When using the shortcuts the icons will automatically get the right colour for the style. Valid icon shortcuts are: /!\, (!), (?), (i), (x) and U (for padlock).
- image-width
- Width of the image in pixels. Defaults to 40 pixels or for one-liners 24 pixels.
- box
- Will override the box format. Valid values are box, top and section. The defaults are box for the talk namespaces and the category namespace, and top for any other namespace.
CSS style parameters
Optional parameters allowing cascading style sheet (CSS) style attributes to be used. These will override the style of the messagebox. Use sparingly and only when needed.
- image-style
- CSS attributes applied to the image cell.
Examples
{{messagebox/icon | style = {{{style|}}} | one-liner = {{{one-liner|}}} | image = {{{image|}}} | image-width = {{{image-width|}}} | box = {{{box|}}} | image-style = {{{image-style|}}} }}
Related templates