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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(+idea type, make warning an alias for serious,, use different icon for style and used svg icon for grouth)
м
Строка 13: Строка 13:
 
{{#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;">{{#switch:{{{image|{{{type|}}}}}}
+
   | <td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">[[Image:{{#switch:{{{image|{{{type|}}}}}}
   | warning  = [[Image:Stop hand nuvola.svg|40px]]
+
   | warning  = Stop hand nuvola.svg
   | serious  = [[Image:Stop hand nuvola.svg|40px]]
+
   | serious  = Stop hand nuvola.svg
   | content  = [[Image:Emblem-important.svg|40px]]
+
   | content  = Emblem-important.svg
   | style    = [[Image:Applications-office.svg|40px]]
+
   | style    = Applications-office.svg
   | merge    = [[Image:Merge-split-transwiki default.svg|40px]]
+
   | merge    = Merge-split-transwiki default.svg
   | notice  = [[Image:Information icon.svg|40px]]
+
   | notice  = Information icon.svg
   | growth  = [[Image:Nuvola Green Plus.svg|40px]]
+
   | growth  = Nuvola Green Plus.svg
   | idea    = [[Image:Ktip.svg|40px]]
+
   | idea    = Ktip.svg
 
   | blank    = <!-- empty image cell -->
 
   | blank    = <!-- empty image cell -->
   | #default = {{{image|[[Image:Information icon.svg|40px]]}}}
+
   | #default = {{{image|}}}
 
   }}</td>
 
   }}</td>
 
}}
 
}}

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