Відмінності між версіями «Шаблон:Mbox»

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
м
м (109 версій)
 
(не показані 99 проміжних версій 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>{{
   | warning  = #b22222
+
  {{namespace detect
   | serious  = #b22222
+
  | demospace = {{{demospace|}}}
   | content = #f28500
+
   | main = ambox
   | style    = #f4c430
+
   | wikijunior = ambox
   | merge    = #9932cc
+
   | cookbook = ambox
   | notice  = #1e90ff
+
   | talk      = tmbox
   | growth  = #228b22
+
   | file      = imbox
  | idea     = yellow
+
   | category  = cmbox
   | #default = #1e90ff
+
   | other     = ombox
}};">
+
   }}
<tr><td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">
+
| type      = {{{type|}}}
{{#if:{{{image|}}}
+
| image      = {{{image|}}}
  | [[Image:{{{image}}}|40px]]
+
| imageright = {{{imageright|}}}
  | [[Image:{{#switch:{{{image|{{{type|}}}}}}
+
| style     = {{{style|}}}
    | warning  = Stop hand nuvola.svg
+
| textstyle  = {{{textstyle|}}}
    | serious  = Stop hand nuvola.svg
+
| text      = {{{text|{{{msg|}}}}}}
    | content  = Emblem-important.svg
+
| small      = {{{small|}}}
    | style   = Applications-office.svg
+
| smallimage = {{{smallimage|}}}
    | merge    = Merge-split-transwiki default.svg
+
| smallimageright = {{{smallimageright|}}}
    | notice  = Information icon.svg
+
| smalltext  = {{{smalltext|}}}
    | growth  = Nuvola Green Plus.svg
+
}}</includeonly><noinclude>
    | idea    = Ktip.svg
+
{{documentation}}
    | blank    = <!-- empty image cell -->
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
    | #default = {{{image|}}}
+
  }}|40px]]
+
}}
+
</td><td style="color: #000000;">
+
{{{text|''Enter Text''}}}
+
</td style="padding: 0.25em 0.5em;">
+
{{#if:{{{imageright|}}}|
+
  <td class="ambox-imageright"> {{{imageright}}} </td>
+
}}
+
</tr>
+
</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:
+
 
+
{{msg:mbox|type=warning|text=warning}}
+
{{msg:mbox|type=content|text=content}}
+
{{msg:mbox|type=style|text=style}}
+
{{msg:mbox|type=merge|text=merge}}
+
{{msg:mbox|type=notice|text=notice}}
+
{{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.
+
 
+
 
</noinclude>
 
</noinclude>

Поточна версія на 20:12, 25 травня 2015

30px Template documentation[create]