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

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