Відмінності між версіями «Шаблон: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.