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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м
м
Строка 10: Строка 10:
 
   | #default = #1e90ff
 
   | #default = #1e90ff
 
}};">
 
}};">
<tr>
+
<tr><td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image}}}|none
+
{{#if:{{{image|}}}
  | <!-- no image cell -->
+
  | [[Image:{{{image}}}|40px]]
  | <td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">[[Image:{{#switch:{{{image|{{{type|}}}}}}
+
  | [[Image:{{#switch:{{{image|{{{type|}}}}}}
  | warning  = Stop hand nuvola.svg
+
    | warning  = Stop hand nuvola.svg
  | serious  = Stop hand nuvola.svg
+
    | serious  = Stop hand nuvola.svg
  | content  = Emblem-important.svg
+
    | content  = Emblem-important.svg
  | style    = Applications-office.svg
+
    | style    = Applications-office.svg
  | merge    = Merge-split-transwiki default.svg
+
    | merge    = Merge-split-transwiki default.svg
  | notice  = Information icon.svg
+
    | notice  = Information icon.svg
  | growth  = Nuvola Green Plus.svg
+
    | growth  = Nuvola Green Plus.svg
  | idea    = Ktip.svg
+
    | idea    = Ktip.svg
  | blank    = <!-- empty image cell -->
+
    | blank    = <!-- empty image cell -->
  | #default = {{{image|}}}
+
    | #default = {{{image|}}}
   }}|40px]]</td>
+
   }}|40px]]
 
}}
 
}}
<td style="color: #000000;">
+
</td><td style="color: #000000;">
 
{{{text|''Enter Text''}}}
 
{{{text|''Enter Text''}}}
 
</td style="padding: 0.25em 0.5em;">
 
</td style="padding: 0.25em 0.5em;">

Версия 23:43, 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:

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.

the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link.