Template:Mbox

From St. Louis Hackerspace Wiki

(Difference between revisions)
Jump to: navigation, search
(MBOX 2.0! Enjoy!)
 
Line 1: Line 1:
-
<div style="background:{{{bb|#fff}}};border: 2px solid {{{bc|#000}}}; margin: auto; width: {{{width|600px}}}; padding: 2px; {{RC}}">
+
{{D|s={{bc|{{{bb|#fff}}}}}{{db|2px solid {{{bc|#000}}}}}{{dm|auto}}{{dw|{{{width|600px}}}}}{{dp|2px}}{{RC}}
-
<div style="background:{{{tb|#ccc}}};color:{{{tc|#000}}};text-align:center; margin: auto; width:{{{width|598px}}}; {{RCTop|5px}}">'''{{{title}}}'''</div>
+
|c={{D|s={{bc|{{{tb|#ccc}}}}}{{fc|{{{tc|#000}}}}}{{tac}}{{dm}}{{dw|{{{width|598px}}}}}{{RCTop|5px}}|c='''{{{title}}}'''}}{{D|s={{bc|{{{mb|transparent}}}}}{{fc|{{{mc|#000}}}}}{{dm}}{{dw|{{{width|598px}}}}}{{RCBottom|5px}}|c={{{message}}}}}}}
-
<div style="background:{{{mb|transparent}}}; color:{{{mc|#000}}}; margin: auto; width:{{{width|598px}}}; {{RCBottom|5px}}">{{{message}}}</div>
+
-
</div>
+
<noinclude>
<noinclude>
 +
* Created by: MrHacks
 +
* Version: 2.0
 +
This template is used to create messageboxes
This template is used to create messageboxes

Current revision as of 02:28, 26 March 2010

{{{title}}}
{{{message}}}
  • Created by: MrHacks
  • Version: 2.0

This template is used to create messageboxes

Variables

  • title - the title text
  • message - the message text
  • width - the width of the Mbox
  • bb - Mbox background color
  • bc - Mbox border color
  • tb - Title background color
  • tc - Title text color
  • mb - Message background color
  • mc - Message text color

Ideal colors for the title (background and foreground):

  • Blue (blue) and White (white) - Notice
  • Yellow (yellow) and Black (black) - Caution
  • Orange (orange) and Black (black) - Warning
  • Red (red) and White (white) - Danger

You can also use hexadecimal color values, including triplets.

Personal tools