Template:Messagebox
From Blood Wiki
(Difference between revisions)
| (4 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | <center><div style="width: | + | <center><div style="max-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> | ||
Latest revision as of 17:00, 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
Small alert message