Open main menu

Changes

Template:MessageBox

1,178 bytes added, 17:21, 15 October 2015
Created an initial meta-template for use in all of the relax message box templates.
{| style="border: {{{border|thin solid #88cbff}}}; border-left-width: 10px; background-color: {{{bgcolor|#e5feff}}}; width: auto; clear:both; padding: 5px 20px 5px 20px; margin: 20px auto 20px auto"
| {{#if: {{{title|}}}| '''{{{title}}}'''}} {{{message|Add message}}}
|}
<noinclude>

== Goal ==

To create a unified system for relax message box templates.

== Usage ==

<nowiki>{{</nowiki>'''MessageBox'''|message|''title=''|''border=''|''bgcolor=''<nowiki>}}</nowiki>

; 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 ==

<nowiki>{{MessageBox|{{{message}}}|title=warning}}</nowiki>

{{MessageBox|<nowiki>{{{message}}}</nowiki>|title=warning|border=thin solid #f42|bgcolor=#ffe0d0}}

== Misc. ==

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>
Trusted, Bureaucrats
4,228

edits