Difference between revisions of "Template:MessageBox"

From relax wiki
Jump to navigation Jump to search
(→‎Example: The example is now spread across multiple lines for better formatting.)
(Replaced the 'Misc' section with the {{MessageBox/doc series}} transclusion.)
Line 33: Line 33:
 
}}
 
}}
  
== Misc. ==
+
{{MessageBox/doc series}}
 
 
This idea was suggested by [http://wiki.flightgear.org/User_talk:Johan_G#Using_the_messagebox_templates_for_an_external_project Johan G. on the FlightGear wiki]
 
  
 
</noinclude>
 
</noinclude>

Revision as of 18:00, 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


Template:MessageBox/doc series