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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м (Protected Template:Ombox/core: Used in the protected high-risk {{ombox}} template. [edit=sysop:move=sysop])
м (15 версий)
 
(не показано 13 промежуточных версии 5 участников)
Строка 1: Строка 1:
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|ombox-small}}  
+
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
 
| speedy    = ombox-speedy
 
| speedy    = ombox-speedy
Строка 9: Строка 9:
 
| notice          <!-- notice = default -->
 
| notice          <!-- notice = default -->
 
| #default  = ombox-notice
 
| #default  = ombox-notice
}}" style="{{#ifeq:{{{small|}}}|yes| clear: right; float: right; margin: 4px 0 4px 1em; width: 238px; font-size: 88%; line-height: 1.25em; }} {{{style|}}}">
+
}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
| <!-- 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>
+
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <td class="ombox-image">
+
| <td class="mbox-image">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
+
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Imbox speedy deletion.png
+
     | speedy    = Ambox warning pn.svg
     | delete    = Imbox deletion.png
+
     | delete    = Ambox warning pn.svg
     | content    = Imbox content.png
+
     | content    = Ambox Content.svg
     | style      = Imbox style.png
+
     | style      = Edit-clear.svg
     | move      = Imbox move.png
+
     | move      = Merge-split-transwiki default.svg
     | protection = Imbox protection.png
+
     | protection = Padlock-silver-medium.svg
 
     | notice          <!-- notice = default -->
 
     | notice          <!-- notice = default -->
     | #default  = Imbox notice.png
+
     | #default  = Information icon4.svg
     }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]]
+
     }} | {{#ifeq:{{{small|}}}|yes
 +
    | 30x30px
 +
    | 40x40px
 +
    }}|link=|alt=]]
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
| {{#ifeq:{{{imageright|}}}|none
 
   | <!-- No image. -->
 
   | <!-- No image. -->
   | <td class="ombox-imageright"> {{{imageright}}} </td>
+
   | <td class="mbox-imageright"> {{{imageright}}} </td>
 
   }}
 
   }}
 
}}
 
}}
 
</tr>
 
</tr>
</table><noinclude>
+
</table><!-- Detect and report usage with faulty "type" parameter:
 
+
-->{{#switch:{{{type|}}}
{{pp-template|small=yes}}
+
|  <!-- No type fed, is also valid input -->
 +
| speedy
 +
| delete
 +
| content
 +
| style
 +
| move
 +
| protection
 +
| notice    =   <!-- Do nothing, valid "type" -->
 +
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>
 +
}}<noinclude>
 
{{documentation}}
 
{{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]