Difference between revisions of "Template:Message box"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="message-box message-box-{{{type|notice}}}"
{| class="message-box message-box-{{{type|notice}}}{{#switch:{{{size|}}}|small= message-box-small}}"
| class="message-box-image" | [[File:{{{image|Message-box {{{type|notice}}}.png}}}|50px]]
| class="message-box-image" | [[File:{{{image|Message-box {{{type|notice}}}.png}}}|{{#switch:{{{size|}}}|small=20px|=40px}}]]
| class="message-box-text" | <div class="message-box-header">{{{header|<noinclude>This is the header of a message box.</noinclude>}}}</div>
| class="message-box-text" | <div class="message-box-header">{{{header|<noinclude>This is the header of a message box.</noinclude>}}}</div>
<div class="message-box-content">{{{content|<noinclude>This is the description of the message box, to describe to the reader why this box is exactly here and what to expect.</noinclude>}}}</div>
<div class="message-box-content">{{{content|<noinclude>This is the description of the message box, to describe to the reader why this box is exactly here and what to expect.</noinclude>}}}</div>
|}
|}<noinclude>{{documentation}}</noinclude>

Latest revision as of 14:43, 20 March 2010

Message-box notice.png
This is the header of a message box.
This is the description of the message box, to describe to the reader why this box is exactly here and what to expect.
Documentation for {{message box}}

Use

To create a standardised format for message boxes around the wiki.

Usage

{{message box
|type     = (optional; default: notice) (notice|warning|alert)
|size     = (optional; default: none)   (small|none)
|header   = Header text
|content  = Message description
|image    = (optional; default: image related to type) Image
}}