User:Johan G/Messagebox/content

From FlightGear wiki
Jump to navigation Jump to search
top;messagebox/icon: no image;multiliner text padding;title;text
The following template description is not displayed when the template is inserted in an article.


This template is used by User:Johan G/Messagebox.


| title       = 
| text        = 

| style       = 
| one-liner   = 
| image       = 
| image-width = 
| box         = 

| text-style  = 
| image-style = 

Main parameters

Optional alternative title for the messagebox that will be shown in bold, for example Danger, Warning, Caution, Cleanup, Note, Notice, Tip, Hint, Protected, Nominated for deletion etc. Defaults to Note.
Text to be shown in the messagebox.

Parameters affecting the appearance

Optional parameters affecting the appearance of the messagebox.

Style of the messagebox. Valid values are speedy, warning, caution, note, tip, protected and neutral. Defaults to note.
Makes the messagebox a one-liner if not empty.
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).
Width of the image in pixels. Defaults to 40 pixels or for one-liners 24 pixels.
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.

CSS attributes applied to the text cell.
CSS attributes applied to the image cell.


{{messagebox/box content
| title       = {{{title|}}}
| text        = {{{text|}}}
| style       = {{{style|}}}
| one-liner   = {{{one-liner|}}}
| image       = {{{image|}}}
| image-width = {{{image-width|}}}
| box         = {{{box|}}}
| text-style  = {{{text-style|}}}
| image-style = {{{image-style|}}}

Related templates