Difference between revisions of "Template:Mbox"

From Twinsuniverse
Jump to: navigation, search
m
Line 1: Line 1:
<includeonly>{| class="mbox warning" border="0" cellpadding="0" cellspacing="0"
+
<includeonly><table class="mbox {{
| [[Image:Warning large.png|40px|Warning!]] || {{{1|Warning!}}}
+
#switch: {{lc:{{{class|}}}}}
|}</includeonly><noinclude>
+
| cleanup
This template may be used to display a warning above an article, which text can be customized.
+
| content
 +
| move
 +
| notice = {{lc:{{{class}}}}}
 +
| #default =  
 +
}}" border="0" cellpadding="0" cellspacing="0">
 +
<tr>
 +
    <td>&snbp;</td>
 +
    <td>{{{1|<nowiki> </nowiki>}}}</td>
 +
</tr>
 +
</table></includeonly><noinclude>
 +
This template may be used to display a message above an article, which text can be customized.
  
 
==Parameters==
 
==Parameters==
# The warning message (case sensitive, defaults to "Warning!")
+
# The message text (case sensitive, defaults to empty message)
 +
* '''class''': The type of the message, may be any of these values (case insensitive):
 +
** ''cleanup''
 +
** ''content''
 +
** ''move''
 +
** ''notice''
 +
** any other value would result in the default message type (no special styles)
  
 
==Syntax==
 
==Syntax==
  <nowiki>{{warning|message}}</nowiki>
+
  <nowiki>{{mbox|class=value|message}}</nowiki>
  
 
==Example==
 
==Example==
  <nowiki>{{warning|warning, this article is having a warning message!}}</nowiki>
+
  <nowiki>{{mbox|class=content|warning, this article is having a content warning message!}}</nowiki>
  
{| class="mbox warning" border="0" cellpadding="0" cellspacing="0"
+
{| class="mbox content" border="0" cellpadding="0" cellspacing="0"
| [[Image:Warning large.png|40px|Warning!]] || warning, this article is having a warning message!
+
| <nowiki> </nowiki> || warning, this article is having a content warning message!
 
|}
 
|}
  
 
[[Category:System Templates]]
 
[[Category:System Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:18, 7 December 2012

This template may be used to display a message above an article, which text can be customized.

Parameters

  1. The message text (case sensitive, defaults to empty message)
  • class: The type of the message, may be any of these values (case insensitive):
    • cleanup
    • content
    • move
    • notice
    • any other value would result in the default message type (no special styles)

Syntax

{{mbox|class=value|message}}

Example

{{mbox|class=content|warning, this article is having a content warning message!}}
warning, this article is having a content warning message!