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

Материал из Тептар — свободной энциклопедии
Перейти к навигации Перейти к поиску
(Керла агӀо: «<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}} | speedy = ombox-speedy | delete = ombox-delete | content = ombox-co...»)
 
Нет описания правки
 
Строка 16: Строка 16:
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[Файл:{{#switch:{{{type|}}}
     | speedy    = Imbox speedy deletion.png
     | speedy    = OOjs UI icon alert-destructive.svg
     | delete    = Imbox deletion.png
     | delete    = OOjs UI icon alert-destructive.svg
     | content    = Imbox content.png
     | content    = OOjs UI icon notice-warning.svg
     | style      = Edit-clear.svg
     | style      = Edit-clear.svg
     | move      = Imbox move.png
     | move      = Imbox move.png
     | protection = Imbox protection.png
     | protection = Imbox protection.png
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default -->
     | #default  = Question book-new.svg
     | #default  = OOjs UI icon info-progressive.svg
     }} | {{#ifeq:{{{small|}}}|yes
     }} | {{#ifeq:{{{small|}}}|yes
     | 30x30px
     | 30x30px
Строка 31: Строка 31:
   }}</td>
   }}</td>
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}">{{{text}}}{{#if: {{{text-small|}}}
| <div class="mbox-textsmall-div" style="font-size:92.8571%; /* 13px в Vector */">{{{text-small}}}</div>
}}</td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
Строка 49: Строка 51:
| protection
| protection
| notice    =    <!-- Do nothing, valid "type" -->
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">ХӀокху кепас лелош ю нийса йоцу барамца "type={{{type|}}}", иза нисъян еза.</div>[[Кадегар:Нисбан беза хаамаш болу кепаш|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| #default  = <div style="text-align: center;">Этот шаблон использует неверный параметр "type={{{type|}}}", который необходимо исправить.</div>[[Категория:Шаблоны сообщений требующие исправления|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
}}<noinclude>



Текущая версия от 08:29, 18 июня 2020

Документация

Это внутренний шаблон. Он вызывается из шаблона {{ombox}}. Никогда не используйте его прямо.

Шаблон содержит весь исполняемый код для {{ombox}}, когда как сам {{ombox}} занимается предварительной обработкой параметров, тем самым упрощая {{ombox/core}}.

Более полную информацию читайте в документации {{ombox}}.