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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
м
м (109 версій)
 
(не показано 84 проміжні версії 12 учасників)
Рядок 1: Рядок 1:
−
<includeonly><table class="metadata plainlinks" style="{{{style|width:90%; margin:0px 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
−
   | move    = #9932cc
+
   | talk      = tmbox
−
   | notice  = #1e90ff
+
   | file      = imbox
−
   | growth  = #228b22
+
   | category  = cmbox
−
  | idea    = yellow
+
   | other    = ombox
−
  | query    = yellow
+
   }}
−
  | #default = #1e90ff
+
| type      = {{{type|}}}
−
}};}}}">
+
| image      = {{{image|}}}
−
<tr><td style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;">
+
| imageright = {{{imageright|}}}
−
{{#if:{{{image|}}}
+
| style      = {{{style|}}}
−
  | [[Image:{{{image}}}|40px]]
+
| textstyle = {{{textstyle|}}}
−
  | [[Image:{{#switch:{{{type|}}}
+
| text      = {{{text|{{{msg|}}}}}}
−
    | warning = Stop hand nuvola.svg
+
| small      = {{{small|}}}
−
    | serious  = Stop hand nuvola.svg
+
| smallimage = {{{smallimage|}}}
−
    | content  = Emblem-important.svg
+
| smallimageright = {{{smallimageright|}}}
−
    | style    = Applications-office.svg
+
| smalltext  = {{{smalltext|}}}
−
    | merge    = Merge-split-transwiki default.svg
+
}}</includeonly><noinclude>
−
    | move    = Merge-split-transwiki default.svg
+
{{documentation}}
−
    | notice  = Information icon.svg
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
−
    | growth  = Nuvola Green Plus.svg
+
−
    | idea    = Ktip.svg
+
−
    | query    = Image:Torchlight help yellow.png
+
−
    | blank    = <!-- empty image cell -->
+
−
    | #default = <!-- empty image cell -->
+
−
  }}|40px]]
+
−
}}
+
−
</td><td style="color: #000000;">
+
−
{{{1|{{{msg|{{{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 or serious}}
+
−
{{msg:mbox|type=content|text=content}}
+
−
{{msg:mbox|type=style|text=style}}
+
−
{{msg:mbox|type=merge|text=merge or move}}
+
−
{{msg:mbox|type=notice|text=notice}}
+
−
{{msg:mbox|type=growth|text=growth}}
+
−
{{msg:mbox|type=idea|text=idea}}
+
−
{{msg|mbox|type=query|text=query}}
+
−
 
+
−
the default images can be suppressed by specifying "image=blank", or "image=<IMAGE>", where <IMAGE> is a replacement image link. Examples of how this template is used are located on [[Wikibooks:Template messages]].
+
−
 
+
 
</noinclude>
 
</noinclude>

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

30px Template documentation[create]