Difference between revisions of "Template:Mbox"

From Twinsuniverse
Jump to: navigation, search
m
(added infobox)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="mbox warning"
+
<includeonly>
| [[Image:Warning large.png|left|40px|Warning!]] || {{{1|Warning!}}}
+
<table class="mbox {{
|}</includeonly><noinclude>
+
#switch: {{lc:{{{class|}}}}}
This template may be used to display a warning above an article, which text can be customized.
+
| cleanup
 +
| content
 +
| move
 +
| warning
 +
| protect
 +
| notice
 +
| delete
 +
| disambig = {{lc:{{{class}}}}}
 +
| #default =
 +
}}" border="0" cellpadding="0" cellspacing="0">
 +
<tr>
 +
    <td>&nbsp;</td>
 +
    <td>{{{1|<nowiki> </nowiki>}}}</td>
 +
</tr>
 +
</table></includeonly><noinclude>{{Infobox Template
 +
|purpose=messagebox
 +
|singletag=no
 +
|multiline=yes
 +
|gamerelated=no
 +
|suppressible=
 +
|choice=
 +
|cat1=
 +
|var1=
 +
}}
 +
 
 +
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''
 +
** ''warning''
 +
** ''protect''
 +
** ''notice''
 +
** ''delete''
 +
** ''disambig''
 +
** 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>
 +
 
 +
==Examples==
 +
<nowiki>{{mbox|class=cleanup|This article may need some kind of cleanup, doesn't it?}}</nowiki>
 +
 
 +
{| class="mbox cleanup" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || This article may need some kind of cleanup, doesn't it?
 +
|}
 +
 
 +
 
 +
<nowiki>{{mbox|class=content|Warning, this article is having a content warning message!}}</nowiki>
 +
 
 +
{| class="mbox content" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || Warning, this article is having a content warning message!
 +
|}
 +
 
 +
 
 +
<nowiki>{{mbox|class=move|It is suggested to move / rename this article.}}</nowiki>
 +
 
 +
{| class="mbox move" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || It is suggested to move / rename this article.
 +
|}
 +
 
 +
 
 +
<nowiki>{{mbox|class=notice|Something's wrong, but I don't know what. Maybe you can sort it out.}}</nowiki>
 +
 
 +
{| class="mbox notice" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || Something's wrong, but I don't know what. Maybe you can sort it out.
 +
|}
 +
 
 +
 
 +
<nowiki>{{mbox|class=warning|You are viewing a system warning message.}}</nowiki>
 +
 
 +
{| class="mbox warning" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || You are viewing a system warning message.
 +
|}
 +
 
 +
 
 +
<nowiki>{{mbox|class=protect|This message indicates something about protection.}}</nowiki>
 +
 
 +
{| class="mbox protect" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || This message indicates something about protection.
 +
|}
 +
 
 +
 
 +
<nowiki>{{mbox|class=delete|This message indicates this page is pending deletion.}}</nowiki>
 +
 
 +
{| class="mbox delete" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || This message indicates this page is pending deletion.
 +
|}
 +
 
  
==Example==
+
  <nowiki>{{mbox|class=disambig|This message indicates the current page disambiguates page names.}}</nowiki>
  <nowiki>{{warning|warning, this article is having a warning message!}}</nowiki>
+
  
<div class="mbox warning">[[Image:Warning large.png|left|40px|Warning!]]warning, this article is having a warning message!</div>
+
{| class="mbox disambig" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || This message indicates the current page disambiguates page names.
 +
|}
  
[[Category:Twinsuniverse - Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 16:13, 4 June 2014

Mbox
Purpose

Messagebox [list all]

Single tag

No [list all]

Multi-line

Yes [list all]

Protected

No [list all]

Game related

No [list all]

Categorization
Categories

none [list all]

Variables
Names

none [list all]

Subpages

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
    • warning
    • protect
    • notice
    • delete
    • disambig
    • any other value would result in the default message type (no special styles)

Syntax

{{mbox|class=value|message}}

Examples

{{mbox|class=cleanup|This article may need some kind of cleanup, doesn't it?}}
  This article may need some kind of cleanup, doesn't it?


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


{{mbox|class=move|It is suggested to move / rename this article.}}
  It is suggested to move / rename this article.


{{mbox|class=notice|Something's wrong, but I don't know what. Maybe you can sort it out.}}
  Something's wrong, but I don't know what. Maybe you can sort it out.


{{mbox|class=warning|You are viewing a system warning message.}}
  You are viewing a system warning message.


{{mbox|class=protect|This message indicates something about protection.}}
  This message indicates something about protection.


{{mbox|class=delete|This message indicates this page is pending deletion.}}
  This message indicates this page is pending deletion.


{{mbox|class=disambig|This message indicates the current page disambiguates page names.}}
  This message indicates the current page disambiguates page names.