FANDOM


{{{text}}}
Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Msgbox]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.
Description
This template is used to create a message box.
Dependencies
Syntax
Type {{msgbox|text= |align= |title= |note= |rtimage= |rtalt= |ltimage= |ltalt= |bgcolor= |textcolor= |bdcolor= }} somewhere.
Parameters
text (Mandatory) This provides the text of the messagebox
align (Optional) Default:center This sets the alignment of the messagebox text Possible values are "right", "left", "center" (without the quotes)
title (Optional) no default This adds a title to the messagebox
note (Optional) no default This adds a supplementary note to the messagebox
rtimage (Optional) no default This adds an image on the right of the messagebox The imagename must be supplied in the format "filename.ext" (without the quotes)
ltimage (Optional) no default This adds an image on the left of the messagebox
rtalt (Optional) no default This adds an "alt" value to the right image
ltalt (Optional) no default This adds an "alt" value to the left image
rtlink (Optional) no default This adds an "link" value to the right image
ltlink (Optional) no default This adds an "link" value to the left image
bgcolor (Optional) Default:powderblue This sets background color of the messagebox The format for color is either a hexcolor given as "#rrggbb" (ie. "#ffa90d") or an X/Window keyword color such as "lightblue" (without the quotes)
textcolor (Optional) Default:black This sets the text color of the messagebox text
bdcolor (Optional) Default:black This sets the border color of the messagebox
Sample output
{{msgbox|text=This is a message box}}
gives...
This is a message box


Sample output
{{msgbox |text=This is a message box |align=right |ltalt=Alttext |ltlink=File:Example.jpg |rtimage=Example.jpg |rtalt=example.jpg |rtlink=Main Page |bdcolor=red |bgcolor=pink |textcolor=blue }}
gives...
Alttext This is a message box example.jpg


Sample TALKBACK implementation
{{msgbox |text=Hello {{PAGENAME}}, you have new messages at [[{{{1}}}|{{{2|{{{1}}} }}}]] |align=left |ltimage=Forum new.gif |ltalt=New Messages |rtalt=<span style="font-size:25px;">eMail</span> |bdcolor=blue |bgcolor=lightblue |note= {{{3|enter ~~<noinclude></noinclude>~~ here}}} }}
gives...
New Messages Hello Msgbox, you have new messages at [[{{{1}}}|{{{1}}} ]] eMail
enter ~~~~ here
Community content is available under CC-BY-SA unless otherwise noted.