Шаблон:Ombox/core — различия между версиями
Материал из Аэроскан Сервис
м (Protected Template:Ombox/core: Used in the protected high-risk {{ombox}} template. [edit=sysop:move=sysop]) |
Admin (обсуждение | вклад) м (15 версий) |
||
| (не показано 13 промежуточных версии 5 участников) | |||
| Строка 1: | Строка 1: | ||
| − | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes| | + | <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=" | + | }}" 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 | + | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td> |
| − | | <td class=" | + | | <td class="mbox-image"> |
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| − | | [[ | + | | [[File:{{#switch:{{{type|}}} |
| − | | speedy = | + | | speedy = Ambox warning pn.svg |
| − | | delete = | + | | delete = Ambox warning pn.svg |
| − | | content = | + | | content = Ambox Content.svg |
| − | | style = | + | | style = Edit-clear.svg |
| − | | move = | + | | move = Merge-split-transwiki default.svg |
| − | | protection = | + | | protection = Padlock-silver-medium.svg |
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| − | | #default = | + | | #default = Information icon4.svg |
| − | }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]] | + | }} | {{#ifeq:{{{small|}}}|yes |
| + | | 30x30px | ||
| + | | 40x40px | ||
| + | }}|link=|alt=]] | ||
}}</td> | }}</td> | ||
}} | }} | ||
| − | <td class=" | + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
| <!-- No image. --> | | <!-- No image. --> | ||
| − | | <td class=" | + | | <td class="mbox-imageright"> {{{imageright}}} </td> |
}} | }} | ||
}} | }} | ||
</tr> | </tr> | ||
| − | </table>< | + | </table><!-- Detect and report usage with faulty "type" parameter: |
| − | + | -->{{#switch:{{{type|}}} | |
| − | {{ | + | | <!-- 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
| 40x40px | {{{text}}} |