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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м
м
Строка 1: Строка 1:
<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|}}}
 
   | serious  = #b22222
 
   | serious  = #b22222
 
   | content  = #f28500
 
   | content  = #f28500
Строка 11: Строка 11:
 
{{#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|}}}</td>
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
+
    | content  = [[Image:Emblem-important.svg|40px]]
+
    | style    = [[Image:Broom icon.svg|40px]]
+
    | merge    = [[Image:Merge-split-transwiki default.svg]]
+
    | notice  = [[Image:Information icon.svg|40px]]
+
    | growth  = [[Image:Green plus icon.png]]
+
    | blank    = <!-- empty image cell -->
+
    | #default = {{{image|[[Image:Information icon.svg|40px]]}}}
+
  }}</td>
+
 
}}
 
}}
 
<td style="color: #000000;">
 
<td style="color: #000000;">
Строка 29: Строка 20:
 
}}
 
}}
 
</tr>
 
</tr>
</table>
+
</table></includeonly><noinclude>
 +
 
 +
== 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:
 +
 
 +
<nowiki>{{mbox|type=<TYPE>|text=<TEXT>}}</nowiki>
 +
 
 +
Where <TYPE> can be one of the following:
 +
 
 +
{{mbox|type=serious|text=serious}}
 +
{{mbox|type=content|text=content}}
 +
{{mbox|type=style|text=style}}
 +
{{mbox|type=merge|text=merge}}
 +
{{mbox|type=notice|text=notice}}
 +
{{mbox|type=growth|text=growth}}
 +
 
 +
 
 +
</noinclude>

Версия 17:17, 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=serious" 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.