Модуль:Ombox/core: различия между версиями

Материал из Юридический факультет МГУ
Перейти к навигации Перейти к поиску
[[:ru:]]>DonRumata
м (DonRumata переименовал страницу Шаблон:Ombox/ядро в Шаблон:Ombox/core)
м (13 версий импортировано)
 
(не показано 10 промежуточных версий 6 участников)
Строка 1: Строка 1:
<table class="plainlinks ombox {{#ifeq:{{{мал}}}|да|mbox-мал}}  
+
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
{{#switch:{{{тип|}}}
+
{{#switch:{{{type|}}}
|бу            = ombox-бу
+
| speedy    = ombox-speedy
|удаление      = ombox-удаление
+
| delete    = ombox-delete
|содержание    = ombox-содержание
+
| content    = ombox-content
|стиль          = ombox-стиль
+
| style      = ombox-style
|переименование = ombox-переименование
+
| move      = ombox-move
|защита        = ombox-защита
+
| protection = ombox-protection
|оповещение         <!-- оповещение = default -->
+
| notice         <!-- notice = default -->
|#default       = ombox-оповещение
+
| #default   = ombox-notice
}} {{{класс|}}}" style="{{{стиль|}}}">
+
}} {{{class|}}}" style="{{{style|}}}">
 
<tr>
 
<tr>
{{#ifeq:{{{изображение|}}}|none
+
{{#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|}}}
     |бу            = Imbox speedy deletion.png
+
     | speedy    = OOjs UI icon alert-destructive.svg
     |удаление      = Imbox deletion.png
+
     | delete    = OOjs UI icon alert-destructive.svg
     |содержание    = Imbox content.png
+
     | content    = OOjs UI icon notice-warning.svg
     |стиль          = Edit-clear.svg
+
     | style      = Edit-clear.svg
     |переименование = Imbox move.png
+
     | move      = Imbox move.png
     |защита        = Imbox protection.png
+
     | protection = Imbox protection.png
     |оповещение         <!-- notice = default -->
+
     | notice         <!-- notice = default -->
     |#default       = Imbox notice.png
+
     | #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>
+
<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:{{{изображение_справа|}}}|none
+
}}</td>
 +
{{#if:{{{imageright|}}}
 +
| {{#ifeq:{{{imageright|}}}|none
 
   | <!-- No image. -->
 
   | <!-- No image. -->
   | <td class="mbox-изображение_справа"> {{{изображение_справа}}} </td>
+
   | <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
|оповещение =    <!-- оповещение = default -->
+
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">Этот шаблон использует неверный параметр "тип={{{тип|}}}" и нуждается в доработке.</div>[[Категория:Wikipedia message box parameter needs fixing|{{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>
  
{{doc}}
+
{{documentation}}
[[en:Template:Ombox/core]]
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Текущая версия на 11:31, 13 февраля 2021

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