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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м (tweaked)
м (+missing size option)
Строка 15: Строка 15:
 
  |<!-- no image cell -->
 
  |<!-- no image cell -->
 
  |<td style="padding:0.5em; text-align:center; vertical-align:middle; width:50px;">
 
  |<td style="padding:0.5em; text-align:center; vertical-align:middle; width:50px;">
{{#if:{{{image|}}}|[[Image:{{{image}}}|40x40px]]|{{#switch:{{{type|}}}
+
{{#if:{{{image|}}}|[[Image:{{{image}}}|{{{size|40x40px}}}]]|{{#switch:{{{type|}}}
 
  | warning  = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]
 
  | warning  = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]
 
  | serious  = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]
 
  | serious  = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]

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

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.
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.