From Brighter Shores Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:MessageBox.
It contains usage information, categories, and other content that is not part of the original template page.

The MessageBox template is a wrapper for all types of message boxes. This includes licenses, Maintenance templates, and general notices used to alert the reader about something.


To use this template, copy the following code and fill in the necessary information

|class = (optional) classes
|img = Image
|imgwidth = (optional) width of the table cell around the image
|Tagline text
|Extra information

The first parameter is mandatory, but all further parameters are optional. A plain message box will look like this: {{MessageBox|Example of a messagebox with no customisation}}

First parameter

The first parameter will give the tagline for the message box. This is the most eye-catching info in the box and should be short and sweet.

Second parameter

The second parameter specifies more information about the message, and can be used to specify some more details about what information is being conveyed.


Specify an image here. Recommended is to include center, link= and a file size, to stylize the image properly. Just specifying the file name will not work with this parameter; the image needs to be given as a complete file link.


The width of the cell the image is (must specify px at the end), and defaults to 50px. This effectively sets the margins around the image, if the image is smaller than 50 px. It is typically best to omit this parameter, but in cases where the image is larger setting a custom width may be helpful.


A class to give the messagebox. Typically this is used for messageboxes that use custom styling which is defined in a class.


Inline CSS to give to the messagebox.


An example of a template that has almost all parameters specified is the Stub template

|class = stub
|img = [[File:Stub.png|Stub|center|50px|link=]]
|This page is a [[Brighter Shores:Stubs|stub]].
|A stub is an article which does not cover all information available about the topic. You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding] it.