User:Johan G/Messagebox/content

From FlightGear wiki
< User:Johan G‎ | Messagebox
Revision as of 02:51, 2 June 2014 by Johan G (talk | contribs) (Notice → note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Goal

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

Usage

{{messagebox
| title       = 
| text        = 

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

| text-style  = 
| image-style = 
}}

Main parameters

title
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
Text to be shown in the messagebox.

Parameters affecting the appearance

Optional parameters affecting the appearance of the messagebox.

style
Style of the messagebox. Valid values are speedy, warning, caution, note, tip, protected and neutral. Defaults to note.
one-liner
Makes the messagebox a one-liner if not empty.
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.

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

Examples

{{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