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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м (109 версий)
 
(не показано 27 промежуточных версии 8 участников)
Строка 1: Строка 1:
<includeonly><table class="plainlinks noprint messagebox {{{type|notice}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>
+
<includeonly>{{
<tr style="vertical-align:middle;">{{#ifeq:{{{image|yes}}}|none
+
  {{namespace detect
|<!-- no image cell -->
+
  | demospace = {{{demospace|}}}
|<td style="padding:0.3em; text-align:center; vertical-align:middle; width:45px;">
+
  | main = ambox
{{#if:{{{image|}}}|[[Image:{{{image}}}|{{{size|40x40px}}}]]|{{#switch:{{{type|}}}
+
  | wikijunior = ambox
| warning = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]
+
  | cookbook = ambox
| serious  = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]
+
  | talk      = tmbox
| content  = [[Image:Book important2.svg|{{{size|45x45px}}}]]
+
  | file      = imbox
| style    = [[Image:Applications-office.svg|{{{size|40x40px}}}]]
+
  | category = cmbox
  | merge    = [[Image:Merge-split-transwiki default.svg|{{{size|40x40px}}}]]
+
  | other     = ombox
| move     = [[Image:Merge-split-transwiki default.svg|{{{size|40x40px}}}]]
+
  }}
| notice  = [[Image:Book notice.svg|{{{size|40x40px}}}]]
+
| type      = {{{type|}}}
| growth  = [[Image:Nuvola apps bookcase.svg|{{{size|40x40px}}}]]
+
| image      = {{{image|}}}
| idea    = [[Image:Dialog-information on.svg|{{{size|40x40px}}}]]
+
| imageright = {{{imageright|}}}
| query    = [[Image:Torchlight help yellow.png|{{{size|40x40px}}}]]
+
| style      = {{{style|}}}
| free    = [[Image:Imbox license.png|40px]]
+
| textstyle = {{{textstyle|}}}
| nonfree = [[Image:Orange copyright.svg|50px]]
+
| text      = {{{text|{{{msg|}}}}}}
| grey  = [[Image:PD-icon.svg|40px]]
+
| small      = {{{small|}}}
| pd  = [[Image:PD-icon.svg|40px]]
+
| smallimage = {{{smallimage|}}}
| blank    = <!-- empty image cell -->
+
| smallimageright = {{{smallimageright|}}}
|#default  = [[Image:Book notice.svg|{{{size|40x40px}}}]]}}}}</td>}}
+
| smalltext  = {{{smalltext|}}}
<td style="{{{text style|color:black; vertical-align:middle; padding:0.5em; padding-left:0em; width:90%;}}}">
+
}}</includeonly><noinclude>
{{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}}
+
</td>
+
{{#if:{{{imageright|}}}|<td>{{{imageright}}}</td>}}
+
</tr></table></includeonly><noinclude>
+
 
+
== Usage ==
+
 
+
{{[[{{FULLPAGENAME}}|{{lc:{{PAGENAME}}}}]]|type=<TYPE>|your message here}}
+
 
+
This template is used to create messages with a consistent visual style, based on message types, and is typically used in other templates. The type of messages supported are:
+
 
+
{{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 image can be suppressed with image="none", or you can use a custom image with image="<IMAGE>" (without the Image: prefix). See [[Wikibooks:Template messages]] for examples of how this template is used.
+
 
{{documentation}}
 
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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

30px Template documentation[create]