Home
Random
Log in
Settings
About Brighter Shores Wiki
Disclaimers
Search
Editing
Template:MessageBox/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation}}<includeonly>[[Category:Message box templates|*]]</includeonly> The '''MessageBox''' template is a wrapper for all types of [[:Category:Message box templates|message boxes]]. This includes [[Template:License|licenses]], [[:Category:Maintenance templates|Maintenance templates]], and general notices used to alert the reader about something. ==Parameters== To use this template, copy the following code and fill in the necessary information <pre> {{MessageBox |class = (optional) classes |img = Image |imgwidth = (optional) width of the table cell around the image |Tagline text |Extra information }} </pre> The first parameter is mandatory, but all further parameters are optional. A plain message box will look like this: {{t|MessageBox|Example of a messagebox with no customisation}} {{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. ===img=== Specify an image here. Recommended is to include <code>center</code>, <code>link=</code> 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. ===imgwidth=== The width of the cell the image is (must specify <code>px</code> at the end), and defaults to <code>50px</code>. 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. ===class=== A class to give the messagebox. Typically this is used for messageboxes that use custom styling which is defined in a class. ===style=== Inline CSS to give to the messagebox. ==Example== An example of a template that has almost all parameters specified is the [[Template:Stub|Stub]] template <pre> {{MessageBox |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. }} </pre> {{MessageBox |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. }}
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Templates used on this page:
Template:Documentation
(
edit
)
Template:MessageBox
(
edit
)
Template:T
(
edit
)
Module:Array
(
edit
)
Module:DPLlua
(
edit
)
Module:DependencyList
(
edit
)
Module:Documentation
(
edit
)
Module:Paramtest
(
edit
)
Module:T
(
edit
)
Module:Tooltip
(
edit
)
Module:Yesno
(
view source
) (semi-protected)
This page is a member of a hidden category:
Category:Pages with broken file links