Template:Message Box: Difference between revisions

From Everybody Edits Wiki
Jump to navigation Jump to search
mNo edit summary
ok css you win
Line 1: Line 1:
<div class="messageBox_base" style="border-left:4px solid {{{color|#FFBB00}}};">
<div class="messageBox_base" style="border-left:4px solid {{{color|#FFBB00}}};">
{{#if:{{{banner|}}}|<div class="messageBox_banner" style="background:url({{{banner}}});"></div>}}
{{#if:{{{banner|}}}|<div class="messageBox_banner">[[File:{{{banner}}}|link=]]</div>}}
<div class="messageBox_text">{{{text|This is a message box.}}}</div>
<div class="messageBox_text">{{{text|This is a message box.}}}</div>
</div><noinclude>
</div><noinclude>
Line 14: Line 14:
: '''Optional'''. CSS color of the left border.
: '''Optional'''. CSS color of the left border.
; <code>banner</code>
; <code>banner</code>
: '''Optional'''. Displays a faded banner across the left with the image specified.
: '''Optional'''. Shorthand file name (e.g. <code>Template Stub.png</code>). Displays a faded banner across the left with the image specified.
</noinclude>
</noinclude>

Revision as of 05:34, 15 April 2026

This is a message box.

Creates a custom message box.

Usage

<ref>{{MessageBox|text=|color=|banner=}}</ref>

Parameters

text
Required. Text content of the message box.
color
Optional. CSS color of the left border.
banner
Optional. Shorthand file name (e.g. Template Stub.png). Displays a faded banner across the left with the image specified.