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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(+idea type, make warning an alias for serious,, use different icon for style and used svg icon for grouth)
Строка 1: Строка 1:
 
<includeonly><table class="metadata plainlinks" style="{{{style|width: 80%; margin: 0 auto; border-collapse: collapse; background: #f8fcff; border: 1px solid #aaa;}}} border-left: 10px solid {{#switch:{{{type|}}}
 
<includeonly><table class="metadata plainlinks" style="{{{style|width: 80%; margin: 0 auto; border-collapse: collapse; background: #f8fcff; border: 1px solid #aaa;}}} border-left: 10px solid {{#switch:{{{type|}}}
 +
  | warning  = #b22222
 
   | serious  = #b22222
 
   | serious  = #b22222
 
   | content  = #f28500
 
   | content  = #f28500
Строка 6: Строка 7:
 
   | notice  = #1e90ff
 
   | notice  = #1e90ff
 
   | growth  = #228b22
 
   | growth  = #228b22
 +
  | idea    = yellow
 
   | #default = #1e90ff
 
   | #default = #1e90ff
 
}};">
 
}};">
Строка 12: Строка 14:
 
   | <!-- 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;">{{#switch:{{{image|{{{type|}}}}}}
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
+
  | warning  = [[Image:Stop hand nuvola.svg|40px]]
    | content  = [[Image:Emblem-important.svg|40px]]
+
  | serious  = [[Image:Stop hand nuvola.svg|40px]]
    | style    = [[Image:Broom icon.svg|40px]]
+
  | content  = [[Image:Emblem-important.svg|40px]]
    | merge    = [[Image:Merge-split-transwiki default.svg]]
+
  | style    = [[Image:Applications-office.svg|40px]]
    | notice  = [[Image:Information icon.svg|40px]]
+
  | merge    = [[Image:Merge-split-transwiki default.svg|40px]]
    | growth  = [[Image:Green plus icon.png|40px]]
+
  | notice  = [[Image:Information icon.svg|40px]]
     | blank    = <!-- empty image cell -->
+
  | growth  = [[Image:Nuvola Green Plus.svg|40px]]
    | #default = {{{image|[[Image:Information icon.svg|40px]]}}}
+
  | idea     = [[Image:Ktip.svg|40px]]
 +
  | blank    = <!-- empty image cell -->
 +
  | #default = {{{image|[[Image:Information icon.svg|40px]]}}}
 
   }}</td>
 
   }}</td>
 
}}
 
}}
Строка 39: Строка 43:
 
Where <TYPE> can be one of the following:
 
Where <TYPE> can be one of the following:
  
{{mbox|type=serious|text=serious}}
+
{{msg:mbox|type=warning|text=warning}}
{{mbox|type=content|text=content}}
+
{{msg:mbox|type=content|text=content}}
{{mbox|type=style|text=style}}
+
{{msg:mbox|type=style|text=style}}
{{mbox|type=merge|text=merge}}
+
{{msg:mbox|type=merge|text=merge}}
{{mbox|type=notice|text=notice}}
+
{{msg:mbox|type=notice|text=notice}}
{{mbox|type=growth|text=growth}}
+
{{msg:mbox|type=growth|text=growth}}
 +
{{msg:mbox|type=idea|text=idea}}
  
 
the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link.
 
the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link.
 
  
 
</noinclude>
 
</noinclude>

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