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

Материал из Space Station 14 Вики
Новая страница: «<div class="exclusive-next__content" style=" {{#switch:{{{posX|}}}|left=left:0;right:unset;|right=left:unset;right:0;|}} {{#switch:{{{posY|}}}|top=top:0;|bottom=bottom:0;}}>Next</div> {{#if:{{{ForText|}}}|<div class="exclusive-next-text__content">Next</div>}} <!-- -->{{#css: *:has(.exclusive-next__content, .exclusive-next-text__content) { position: relative; } .exclusive-next__content { position: absolute; padding: 2px 4px; font-family:...»
 
мНет описания правки
Метка: ручная отмена
 
(не показано 18 промежуточных версий этого же участника)
Строка 1: Строка 1:
<div class="exclusive-next__content" style="
{{#if:{{{ForText|}}}|
 
  <div style="position:relative;padding:0 2px;">
{{#switch:{{{posX|}}}|left=left:0;right:unset;|right=left:unset;right:0;|}}
    <div class="exclusive-next-text__icon">Next</div>
{{#switch:{{{posY|}}}|top=top:0;|bottom=bottom:0;}}>Next</div>
    <div style="position:relative;margin-right:30px;">{{{1}}}</div>
 
  </div>
{{#if:{{{ForText|}}}|<div class="exclusive-next-text__content">Next</div>}}
|
<!--
  <div class="exclusive-next" style="{{#switch:{{{posX|}}}|left=left:0;right:unset;|right=left:unset;right:0;|}}{{#switch:{{{posY|}}}|top=top:0;bottom:unset;|bottom=bottom:0;top:unset;}}>Next</div>
}}<!--


-->{{#css:  
-->{{#css:  
*:has(.exclusive-next__content, .exclusive-next-text__content) {
.mw-parser-output *:has(.exclusive-next) {
     position: relative;
     position: relative;
}
}


.exclusive-next__content {
.exclusive-next,
.exclusive-next-text__icon {
     position: absolute;
     position: absolute;
   
    left:0;
    top:0;


     padding: 2px 4px;
     padding: 2px 4px;
Строка 19: Строка 24:
     font-size: 0.7em;
     font-size: 0.7em;
     font-weight: bold;
     font-weight: bold;
     color: #d9a938;
     color: #db9e0d;
     background: #d9a93809;
     background: #db9e0d1a;
     border-radius: 0.4em;
     border-radius: 0.3em;
}
}


.exclusive-next-text__content {
.exclusive-next-text__icon {
    position: absolute;
    top: 0;
     right: 0;
     right: 0;
     bottom: 0;
     bottom: 0;
    left: 0;


     padding: 2px 4px;
     text-align: right;
    font-family: "noto sans";
     border-radius: 0;
     font-size: 0.7em;
    font-weight: bold;
     color: #d9a938;
     color: #d9a938;
     background: #d9a93809;
     background: #ffb30007;
    text-align: right;
}
}


}}<noinclude>{{doc}}</noinclude>
}}<noinclude>{{doc}}</noinclude>

Текущая версия от 12:39, 16 января 2025

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

WarningCorvaxNext — шаблон, предназначенный для предупреждения пользователей об уникальном контенте из сборки Corvax Next на страницах основы.

Выстраивание позиции

Параметры для выстраивания позиции:

  • posX = right, left
  • posY = top, bottom

Лево-верх (по умолчанию)

Ввод:

{{WarningCorvaxNext}}

Результат:

Next

Право-верх

Ввод:

{{WarningCorvaxNext|posX=right|posY=top}}

Результат:

Next

Лево-низ

Ввод:

{{WarningCorvaxNext|posX=left|posY=bottom}}

Результат:

Next

Право-низ

Ввод:

{{WarningCorvaxNext|posX=right|posY=bottom}}

Результат:

Next

Выделение текста

Ввод:

{{WarningCorvaxNext|ForText=1|текст}}

Результат: {WarningCorvaxNext|ForText=1|текст}}