Шаблон:Mbox — различия между версиями
Материал из Аэроскан Сервис
м |
|||
| Строка 11: | Строка 11: | ||
{{#ifeq:{{{image}}}|none | {{#ifeq:{{{image}}}|none | ||
| <!-- no image cell --> | | <!-- no image cell --> | ||
| − | | <td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">{{{image|}}}</td> | + | | <td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">{{#switch:{{{image|{{{type|}}}}}} |
| + | | serious = [[Image:Stop hand nuvola.svg|40px]] | ||
| + | | content = [[Image:Emblem-important.svg|40px]] | ||
| + | | style = [[Image:Broom icon.svg|40px]] | ||
| + | | merge = [[Image:Merge-split-transwiki default.svg]] | ||
| + | | notice = [[Image:Information icon.svg|40px]] | ||
| + | | growth = [[Image:Green plus icon.png|40px]] | ||
| + | | blank = <!-- empty image cell --> | ||
| + | | #default = {{{image|[[Image:Information icon.svg|40px]]}}} | ||
| + | }}</td> | ||
}} | }} | ||
<td style="color: #000000;"> | <td style="color: #000000;"> | ||
| Строка 36: | Строка 45: | ||
{{mbox|type=notice|text=notice}} | {{mbox|type=notice|text=notice}} | ||
{{mbox|type=growth|text=growth}} | {{mbox|type=growth|text=growth}} | ||
| + | |||
| + | the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link. | ||
</noinclude> | </noinclude> | ||
Версия 17:19, 17 сентября 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:
| 40x40px | serious |
This message box is using an invalid "type=serious" parameter and needs fixing.
| 40x40px | content |
| 40x40px | style |
| 40x40px | merge |
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.
the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link.