Шаблон:Mbox — различия между версиями
Материал из Аэроскан Сервис
м (some tweaks to try to make it look a little better and allow some more customization) |
м (tweaked) |
||
| Строка 14: | Строка 14: | ||
<tr style="vertical-align:middle;">{{#ifeq:{{{image|yes}}}|none | <tr style="vertical-align:middle;">{{#ifeq:{{{image|yes}}}|none | ||
|<!-- no image cell --> | |<!-- no image cell --> | ||
| − | |<td style="padding:0.5em; text-align:center; vertical-align:middle;"> | + | |<td style="padding:0.5em; text-align:center; vertical-align:middle; width:50px;"> |
{{#if:{{{image|}}}|[[Image:{{{image}}}|40x40px]]|{{#switch:{{{type|}}} | {{#if:{{{image|}}}|[[Image:{{{image}}}|40x40px]]|{{#switch:{{{type|}}} | ||
| warning = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]] | | warning = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]] | ||
| Строка 28: | Строка 28: | ||
| blank = <!-- empty image cell --> | | blank = <!-- empty image cell --> | ||
|#default = [[Image:Book notice.svg|{{{size|40x40px}}}]]}}}}</td>}} | |#default = [[Image:Book notice.svg|{{{size|40x40px}}}]]}}}}</td>}} | ||
| − | <td style="{{{text style|background:white; color:black; vertical-align:middle; padding:0.5em; padding-left:0em;}}}"> | + | <td style="{{{text style|background:white; color:black; vertical-align:middle; padding:0.5em; padding-left:0em; width:90%;}}}"> |
{{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}} | {{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}} | ||
</td> | </td> | ||
Версия 18:13, 13 июня 2008
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:
| 40x40px | warning or serious |
This message box is using an invalid "type=warning" parameter and needs fixing.
| 40x40px | content |
| 40x40px | style |
| 40x40px | merge or move |
This message box is using an invalid "type=merge" parameter and needs fixing.
| 40x40px | notice |
| 40x40px | growth |
This message box is using an invalid "type=growth" parameter and needs fixing.
| 40x40px | idea |
This message box is using an invalid "type=idea" parameter and needs fixing.
| 40x40px | query |
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.