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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(template wrapper for generic messagebox)
 
м (17 версий)
 
(не показано 16 промежуточных версии 3 участников)
Строка 1: Строка 1:
<table class="metadata plainlinks messagebox" style="{{{style|}}}">
+
{{#ifeq:{{{small|}}}|yes
<tr>
+
| {{ombox/core
<td class="ambox-image">
+
  | small = yes
{{#ifeq:{{{image|}}}|none
+
  | type  = {{{type|}}}
  | <!-- No image cell; empty cell necessary for text cell to have 100% width -->
+
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
   | <div style="width:52px;"> {{{image|[[Image:Ambox notice.png|40x40px]]}}}</div>
+
   | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
}}</td>
+
  | style = {{{style|}}}
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
+
  | textstyle = {{{textstyle|}}}
{{#if:{{{imageright|}}}
+
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
   | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
+
  }}
}}
+
| {{ombox/core
</tr>
+
  | type  = {{{type|}}}
</table><noinclude>
+
  | image = {{{image|}}}
{{Documentation}}
+
   | imageright = {{{imageright|}}}
 +
  | style = {{{style|}}}
 +
  | textstyle = {{{textstyle|}}}
 +
  | text  = {{{text}}}
 +
  }}
 +
}}<noinclude>
 +
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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

30px Template documentation[create]