Template:Messagebox

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<center><div style="width:450px;border: 1px {{{border|white}}} solid;border-left-width:7px;padding:4px;margin:4px;background-color:{{{bg|#fffff7}}};float:right;clear:right">
+
<center><div style="min-width:450px;border: 1px {{{border|white}}} solid;border-left-width:7px;padding:4px;margin:4px;background-color:{{{bg|#fffff7}}};float:right;clear:right">
 
<div style="display:table-cell;padding-left:4px;padding-right:8px;">{{{picture|}}}</div>
 
<div style="display:table-cell;padding-left:4px;padding-right:8px;">{{{picture|}}}</div>
 
<div style="width:100%;text-align:left;vertical-align:middle;display:table-cell;color:{{{color|black}}}"><font style="font-weight:bold">{{{text|}}}</font>{{#if: {{{small|}}} |<br><font size=1>{{{small}}}</font>}}</div></div></center>
 
<div style="width:100%;text-align:left;vertical-align:middle;display:table-cell;color:{{{color|black}}}"><font style="font-weight:bold">{{{text|}}}</font>{{#if: {{{small|}}} |<br><font size=1>{{{small}}}</font>}}</div></div></center>

Revision as of 16:59, 29 July 2012

Use this template to place message boxes on a page.

Usage:

{{messagebox
| text = Message text
| small = Small message text (optional)
| picture = picture (optional)
| color = textcolor (optional)
| border = border color
| bg = background color (optional)
| category = page categoty (optional)
}}

Example:

{{messagebox
|text=Alert
|small=Small alert message
|picture=[[File:important.png|alt=|link=]]
|color=black
|border=gray
|bg=#ffffff9
}}

Result:

Alert
Small alert message
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox