Модуль:Ombox/core: различия между версиями
Перейти к навигации
Перейти к поиску
[[:ru:]]>DonRumata м (DonRumata переименовал страницу Шаблон:Ombox/ядро в Шаблон:Ombox/core) |
Yegor (обсуждение | вклад) м (13 версий импортировано) |
||
(не показано 10 промежуточных версий 6 участников) | |||
Строка 1: | Строка 1: | ||
− | <table class="plainlinks ombox {{#ifeq:{{{ | + | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} |
− | {{#switch:{{{ | + | {{#switch:{{{type|}}} |
− | | | + | | speedy = ombox-speedy |
− | | | + | | delete = ombox-delete |
− | | | + | | content = ombox-content |
− | | | + | | style = ombox-style |
− | | | + | | move = ombox-move |
− | | | + | | protection = ombox-protection |
− | | | + | | notice <!-- notice = default --> |
− | |#default | + | | #default = ombox-notice |
− | }} {{{ | + | }} {{{class|}}}" style="{{{style|}}}"> |
<tr> | <tr> | ||
− | {{#ifeq:{{{ | + | {{#ifeq:{{{image|}}}|none |
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></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}}} |
− | | [[Файл:{{#switch:{{{ | + | | [[Файл:{{#switch:{{{type|}}} |
− | | | + | | speedy = OOjs UI icon alert-destructive.svg |
− | | | + | | delete = OOjs UI icon alert-destructive.svg |
− | | | + | | content = OOjs UI icon notice-warning.svg |
− | | | + | | style = Edit-clear.svg |
− | | | + | | move = Imbox move.png |
− | | | + | | protection = Imbox protection.png |
− | | | + | | notice <!-- notice = default --> |
− | |#default | + | | #default = OOjs UI icon info-progressive.svg |
− | }} | {{#ifeq:{{{ | + | }} | {{#ifeq:{{{small|}}}|yes |
| 30x30px | | 30x30px | ||
| 40x40px | | 40x40px | ||
Строка 31: | Строка 31: | ||
}}</td> | }}</td> | ||
}} | }} | ||
− | <td class="mbox-text" style="{{{ | + | <td class="mbox-text" style="{{{textstyle|}}}">{{{text}}}{{#if: {{{text-small|}}} |
− | {{#if:{{{ | + | | <div class="mbox-textsmall-div" style="font-size:92.8571%; /* 13px в Vector */">{{{text-small}}}</div> |
− | | {{#ifeq:{{{ | + | }}</td> |
+ | {{#if:{{{imageright|}}} | ||
+ | | {{#ifeq:{{{imageright|}}}|none | ||
| <!-- No image. --> | | <!-- No image. --> | ||
− | | <td class="mbox- | + | | <td class="mbox-imageright"> {{{imageright}}} </td> |
}} | }} | ||
}} | }} | ||
</tr> | </tr> | ||
</table><!-- Detect and report usage with faulty "type" parameter: | </table><!-- Detect and report usage with faulty "type" parameter: | ||
− | -->{{#switch:{{{ | + | -->{{#switch:{{{type|}}} |
| <!-- No type fed, is also valid input --> | | <!-- No type fed, is also valid input --> | ||
− | | | + | | speedy |
− | | | + | | delete |
− | | | + | | content |
− | | | + | | style |
− | | | + | | move |
− | | | + | | protection |
− | | | + | | notice = <!-- Do nothing, valid "type" --> |
− | | #default = <div style="text-align: center;">Этот шаблон использует неверный параметр " | + | | #default = <div style="text-align: center;">Этот шаблон использует неверный параметр "type={{{type|}}}", который необходимо исправить.</div>[[Категория:Шаблоны сообщений требующие исправления|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
}}<noinclude> | }}<noinclude> | ||
− | {{ | + | {{documentation}} |
− | + | <!-- Add categories and interwikis to the /doc subpage, not here! --> | |
</noinclude> | </noinclude> |
Текущая версия на 11:31, 13 февраля 2021
40x40px | {{{text}}} |
40x40px | Этому модулю не хватает документации. Вы можете помочь проекту, сделав описание модуля: что он делает, как его использовать, какие параметры он принимает, в какие категории добавляет. Это поможет другим использовать его.
|