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

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(need to add here too)
м (17 версій)
 
(не показані 6 проміжних версій 3 учасників)
Рядок 1: Рядок 1:
<table class="plainlinks ombox
+
{{#ifeq:{{{small|}}}|yes
{{#switch:{{{type|}}}
+
| {{ombox/core
| speedy    = ombox-speedy
+
  | small = yes
| delete    <!-- delete = serious -->
+
  | type  = {{{type|}}}
| serious    = ombox-delete
+
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| content    = ombox-content
+
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| style      = ombox-style
+
  | style = {{{style|}}}
| move      <!-- move = merge -->
+
  | textstyle = {{{textstyle|}}}
| merge      = ombox-move
+
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
| protection = ombox-protection
+
  }}
| notice    <!-- notice = default -->
+
| {{ombox/core
| #default  = ombox-notice
+
  | type  = {{{type|}}}
}}" style="{{{style|}}}">
+
  | image = {{{image|}}}
<tr>
+
   | imageright = {{{imageright|}}}  
{{#ifeq:{{{image|}}}|none
+
  | style = {{{style|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
+
  | textstyle = {{{textstyle|}}}
| <td class="ombox-image">
+
  | text  = {{{text}}}
  {{#if:{{{image|}}}
+
  }}
  | {{{image}}}
+
}}<noinclude>
  | {{#switch:{{{type|}}}
+
{{documentation}}
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
    | serious
+
    | delete    = [[Image:Imbox deletion.png|40x40px]]
+
    | content    = [[Image:Imbox content.png|40x40px]]
+
    | style      = [[Image:Imbox style.png|40x40px]]
+
    | merge
+
    | 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]