Difference between revisions of "Template:Mbox"

From Twinsuniverse
Jump to: navigation, search
(added the new 'delete' mbox type)
(added the new 'disambig' mbox type)
Line 8: Line 8:
 
| protect
 
| protect
 
| notice
 
| notice
| delete = {{lc:{{{class}}}}}
+
| delete
 +
| disambig = {{lc:{{{class}}}}}
 
| #default =  
 
| #default =  
 
}}" border="0" cellpadding="0" cellspacing="0">
 
}}" border="0" cellpadding="0" cellspacing="0">
Line 28: Line 29:
 
** ''notice''
 
** ''notice''
 
** ''delete''
 
** ''delete''
 +
** ''disambig''
 
** any other value would result in the default message type (no special styles)
 
** any other value would result in the default message type (no special styles)
  
Line 80: Line 82:
 
{| class="mbox delete" border="0" cellpadding="0" cellspacing="0"
 
{| class="mbox delete" border="0" cellpadding="0" cellspacing="0"
 
|   || This message indicates this page is pending deletion.
 
|   || This message indicates this page is pending deletion.
 +
|}
 +
 +
 +
<nowiki>{{mbox|class=disambig|This message indicates the current page disambiguates page names.}}</nowiki>
 +
 +
{| class="mbox disambig" border="0" cellpadding="0" cellspacing="0"
 +
| &nbsp; || This message indicates the current page disambiguates page names.
 
|}
 
|}
  

Revision as of 17:36, 13 January 2013

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.