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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м
м
Строка 13: Строка 13:
 
{{#if:{{{image|}}}
 
{{#if:{{{image|}}}
 
   | [[Image:{{{image}}}|40px]]
 
   | [[Image:{{{image}}}|40px]]
   | [[Image:{{#switch:{{{image|{{{type|}}}}}}
+
   | [[Image:{{#switch:{{{type|}}}
 
     | warning  = Stop hand nuvola.svg
 
     | warning  = Stop hand nuvola.svg
 
     | serious  = Stop hand nuvola.svg
 
     | serious  = Stop hand nuvola.svg
Строка 23: Строка 23:
 
     | idea    = Ktip.svg
 
     | idea    = Ktip.svg
 
     | blank    = <!-- empty image cell -->
 
     | blank    = <!-- empty image cell -->
     | #default = {{{image|}}}
+
     | #default = <!-- empty image cell -->
 
   }}|40px]]
 
   }}|40px]]
 
}}
 
}}

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