Шаблон:WarningCorvaxNext: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) Новая страница: «<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:...» |
Pok (обсуждение | вклад) мНет описания правки Метка: ручная отмена |
||
(не показано 18 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
<div class="exclusive- | {{#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> | |||
| | |||
<!-- | <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( | .mw-parser-output *:has(.exclusive-next) { | ||
position: relative; | position: relative; | ||
} | } | ||
.exclusive- | .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: # | color: #db9e0d; | ||
background: # | background: #db9e0d1a; | ||
border-radius: 0. | border-radius: 0.3em; | ||
} | } | ||
.exclusive-next- | .exclusive-next-text__icon { | ||
right: 0; | right: 0; | ||
bottom: 0; | bottom: 0; | ||
text-align: right; | |||
border-radius: 0; | |||
color: #d9a938; | color: #d9a938; | ||
background: # | background: #ffb30007; | ||
} | } | ||
}}<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|текст}}