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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м (changed default image from warning to notice)
м (minor fix by putting msg on its own line)
Строка 28: Строка 28:
 
  | blank    = <!-- empty image cell -->
 
  | blank    = <!-- empty image cell -->
 
  |#default  = [[Image:Book notice.svg|40x40px]]}}}}</td>}}
 
  |#default  = [[Image:Book notice.svg|40x40px]]}}}}</td>}}
<td style="color:black;">{{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}}</td>
+
<td style="color:black;">
 +
{{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}}
 +
</td>
 
{{#if:{{{imageright|}}}|<td>{{{imageright}}}</td>}}
 
{{#if:{{{imageright|}}}|<td>{{{imageright}}}</td>}}
 
</tr></table></includeonly><noinclude>
 
</tr></table></includeonly><noinclude>

Версия 17:30, 6 октября 2007

Usage

This template is used to create other templates with a consistent visual style. Messages will be color coded to demonstrate their type and severity. The types of message are described as:

{{mbox|type=<TYPE>|text=<TEXT>}}

Where <TYPE> can be one of the following:

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 images can be suppressed by specifying "image=none", or "image=<IMAGE>", where <IMAGE> is a replacement image link. Examples of how this template is used are located on Wikibooks:Template messages.