Відмінності між версіями «Шаблон: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>

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

30px Template documentation[create]