Шаблон:Mbox — различия между версиями

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м (fix)
м (rm div around examples, shouldn't need it now)
Строка 28: Строка 28:
 
This template is used to create messages with a consistent visual style, based on message types, and is typically used in other templates. The type of messages supported are:
 
This template is used to create messages with a consistent visual style, based on message types, and is typically used in other templates. The type of messages supported are:
  
<div class="ns-0"><!-- necessary to show how it would look in the main namespace -->
 
 
{{msg:mbox|type=warning|text=warning or serious}}
 
{{msg:mbox|type=warning|text=warning or serious}}
 
{{msg:mbox|type=content|text=content}}
 
{{msg:mbox|type=content|text=content}}
Строка 37: Строка 36:
 
{{msg:mbox|type=idea|text=idea}}
 
{{msg:mbox|type=idea|text=idea}}
 
{{msg:mbox|type=query|text=query}}
 
{{msg:mbox|type=query|text=query}}
</div>
 
  
 
The default image can be suppressed with image="none", or you can use a custom image with image="<IMAGE>" (without the Image: prefix). See [[Wikibooks:Template messages]] for examples of how this template is used.
 
The default image can be suppressed with image="none", or you can use a custom image with image="<IMAGE>" (without the Image: prefix). See [[Wikibooks:Template messages]] for examples of how this template is used.
 
</noinclude>
 
</noinclude>

Версия 20:01, 28 сентября 2008


Usage

{{mbox|type=<TYPE>|your message here}}

This template is used to create messages with a consistent visual style, based on message types, and is typically used in other templates. The type of messages supported are:

This message box is using an invalid "type=warning" parameter and needs fixing.
This message box is using an invalid "type=merge" parameter and needs fixing.
This message box is using an invalid "type=growth" parameter and needs fixing.
This message box is using an invalid "type=idea" parameter and needs fixing.
This message box is using an invalid "type=query" parameter and needs fixing.

The default image can be suppressed with image="none", or you can use a custom image with image="<IMAGE>" (without the Image: prefix). See Wikibooks:Template messages for examples of how this template is used.