Difference between revisions of "Template:MessageBox"

From relax wiki
Jump to navigation Jump to search
(Improved and corrected the example.)
(→‎Example: The example is now spread across multiple lines for better formatting.)
Line 19: Line 19:
 
== Example ==
 
== Example ==
  
  <nowiki>{{MessageBox|message=This is a test message|title=Warning|border=thin solid #f42|bgcolor=#ffe0d0}}</nowiki>
+
  <nowiki>{{MessageBox
 +
| message = This is a test message
 +
| title   = Warning
 +
| border = thin solid #f42
 +
| bgcolor = #ffe0d0
 +
}}</nowiki>
  
{{MessageBox|message=This is a test message|title=Warning|border=thin solid #f42|bgcolor=#ffe0d0}}
+
{{MessageBox
 +
| message = This is a test message
 +
| title   = Warning
 +
| border = thin solid #f42
 +
| bgcolor = #ffe0d0
 +
}}
  
 
== Misc. ==
 
== Misc. ==

Revision as of 17:26, 15 October 2015

Add message


Goal

To create a unified system for relax message box templates.

Usage

{{MessageBox|message|title=|border=|bgcolor=}}
message 
The obligatory message box text.
title 
The optional message box title, which will precede the message box text and be in bold format.
border 
The CSS border style to use, defaulting to the relax thin blue border.
bgcolor 
The CSS background-color style to use, defaulting to the relax website background colour.

Example

{{MessageBox
| message = This is a test message
| title   = Warning
| border  = thin solid #f42
| bgcolor = #ffe0d0
}}
Warning This is a test message


Misc.

This idea was suggested by Johan G. on the FlightGear wiki