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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(Updated to use the "ombox-small" class in MediaWiki:Common.css, since the 31 days CSS caching has passed.)
м (15 версий)
 
(не показано 10 промежуточных версии 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
Строка 12: Строка 12:
 
<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="mbox-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>
 
}}
 
}}
Строка 46: Строка 49:
 
| protection
 
| protection
 
| notice    =    <!-- Do nothing, valid "type" -->
 
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
+
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>
 
}}<noinclude>
 
}}<noinclude>
 
{{pp-template|small=yes}}
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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

30px Template documentation[create]