Difference between revisions of "Template:Message box"
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}}}| | | 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 15:43, 20 March 2010
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 }}