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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м
м (109 версий)
 
(не показаны 104 промежуточные версии 13 участников)
Строка 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>{{
   | serious  = #b22222
+
  {{namespace detect
   | content  = #f28500
+
  | demospace = {{{demospace|}}}
   | style    = #f4c430
+
   | main = ambox
   | merge    = #9932cc
+
   | wikijunior = ambox
   | notice  = #1e90ff
+
   | cookbook  = ambox
   | growth  = #228b22
+
   | talk      = tmbox
   | #default = #1e90ff
+
   | file      = imbox
}};">
+
   | category  = cmbox
<tr>
+
   | other    = ombox
{{#ifeq:{{{image}}}|none
+
  }}
  | <!-- no image cell -->
+
| type      = {{{type|}}}
  | <td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">{{{image|}}}</td>
+
| image     = {{{image|}}}
}}
+
| imageright = {{{imageright|}}}
<td style="color: #000000;">
+
| style     = {{{style|}}}
{{{text|''Enter Text''}}}
+
| textstyle  = {{{textstyle|}}}
</td style="padding: 0.25em 0.5em;">
+
| text      = {{{text|{{{msg|}}}}}}
{{#if:{{{imageright|}}}|
+
| small      = {{{small|}}}
  <td class="ambox-imageright"> {{{imageright}}} </td>
+
| smallimage = {{{smallimage|}}}
}}
+
| smallimageright = {{{smallimageright|}}}
</tr>
+
| smalltext  = {{{smalltext|}}}
</table></includeonly><noinclude>
+
}}</includeonly><noinclude>
 
+
{{documentation}}
== Usage ==
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
+
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>
 
</noinclude>

Текущая версия на 20:17, 25 мая 2015

30px Template documentation[create]