Шаблон:ModernButton: различия между версиями
DeRecnad (обсуждение | вклад) Нет описания правки Метка: ручная отмена |
DeRecnad (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
<div class="modern-button"> | <templatestyles src="ModernButton/styles.css" /> | ||
<div class="modern-button"> | |||
{{#if: {{{external|}}} | | |||
<a href="{{{external}}}" style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;"> | |||
| {{#if: {{{link|}}} | | |||
[[{{{link}}}|<div style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;"> | |||
| <div style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;"> | |||
}} }} | |||
{{#if: {{{img|}}} | [[File:{{{img}}}|{{{pixel|60px}}}|link=]] }} | |||
<div> | |||
<div class="text" style="font-weight: 500;">{{{text|}}}</div> | |||
<div class="subtext" style="color: #D3D3D3; font-size: 12px;">{{{subtext|}}}</div> | |||
</div> | |||
{{#if: {{{external|}}} | </a> | {{#if: {{{link|}}} | </div>]] | </div> }} | |||
</div> | |||
</div> | |||