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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.)
м (17 версій)
 
(не показано 4 проміжні версії 2 учасників)
Рядок 1: Рядок 1:
<table class="plainlinks ombox
+
{{#ifeq:{{{small|}}}|yes
{{#switch:{{{type|}}}
+
| {{ombox/core
| speedy    = ombox-speedy
+
  | small = yes
| delete    = ombox-delete
+
  | type  = {{{type|}}}
| content    = ombox-content
+
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| style      = ombox-style
+
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| move      = ombox-move
+
  | style = {{{style|}}}
| protection = ombox-protection
+
  | textstyle = {{{textstyle|}}}
| notice          <!-- notice = default -->
+
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
| #default  = ombox-notice
+
  }}
}}" style="{{{style|}}}">
+
| {{ombox/core
<tr>
+
  | type  = {{{type|}}}
{{#ifeq:{{{image|}}}|none
+
   | image = {{{image|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
+
  | imageright = {{{imageright|}}}  
| <td class="ombox-image">
+
  | style = {{{style|}}}
  {{#if:{{{image|}}}
+
  | textstyle = {{{textstyle|}}}
  | {{{image}}}
+
  | text  = {{{text}}}
  | {{#switch:{{{type|}}}
+
  }}
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]
+
}}<noinclude>
    | delete    = [[Image:Imbox deletion.png|40x40px]]
+
{{documentation}}
    | content    = [[Image:Imbox content.png|40x40px]]
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
    | style      = [[Image:Imbox style.png|40x40px]]
+
    | move      = [[Image:Imbox move.png|40x40px]]
+
    | protection = [[Image:Imbox protection.png|40x40px]]
+
    | notice          <!-- notice = default -->
+
    | #default  = [[Image:Imbox notice.png|40x40px]]
+
    }}
+
   }}</td>
+
}}
+
<td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
{{#if:{{{imageright|}}}
+
| <td class="ombox-imageright"> {{{imageright}}} </td>
+
}}
+
</tr>
+
</table><noinclude>
+
 
+
{{pp-template|small=yes}}
+
{{Documentation}}
+
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
+
 
</noinclude>
 
</noinclude>

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

30px Template documentation[create]