Predefinição:Image Label: mudanças entre as edições

De Wiki NBS
Ir para navegação Ir para pesquisar
Sem resumo de edição
Sem resumo de edição
Linha 1: Linha 1:
<div style="position:absolute;
<div style="z-index:1; position:absolute;
                         {{#if:{{{text-align|}}}|text-align:{{{text-align}}};}}
                         {{#if:{{{text-align|}}}|text-align:{{{text-align}}};}}
                         {{#if:{{{font-size|}}}|font-size:{{{font-size}}};}}
                         {{#if:{{{font-size|}}}|font-size:{{{font-size}}};}}
                         {{#if:{{{background|}}}|background-color: rgba(255, 255, 255, 0.5); padding: 0 2px;}}
                         {{#if:{{{background|}}}|background-color: rgba(255, 255, 255, 0.5); padding: 0 2px;}}
                         left:{{#expr:{{{x|0.25}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-6}}px;
                         left:{{#expr:{{{x|0.35}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-6}}px;
                         top:{{#expr:{{{y|0.15}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-8}}px">
                         top:{{#expr:{{{y|0.45}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-8}}px">


{{#ifexpr:({{{x|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-6)>800|[[Category:Pages using image label with a wide image]]|}}{{#ifexpr:({{{y|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-8)>800|[[Category:Pages using image label with a tall image]]|}}{{{text}}}</div>
{{#ifexpr:({{{x|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-6)>800|[[Category:Pages using image label with a wide image]]|}}{{#ifexpr:({{{y|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-8)>800|[[Category:Pages using image label with a tall image]]|}}{{{text}}}
</div>
<div role="img" class="{{#switch:{{{float|}}}|left=floatleft|right=floatright}} noresize" <!-- noresize disables the img from being limited to the width of the viewport size (as on mobile) -->
    style="width: {{#if:{{{thumb|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+16}}|{{#if:{{{border2|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+2}}|{{#if:{{{width|}}}|{{{width}}}|400}}}}}}px; {{#switch:{{{float|}}}|center|centre=margin-left:auto; margin-right:auto;}}
            {{#if:{{{margin|}}}|margin: {{{margin}}};}}
            {{#if:{{{padding|}}}|padding: {{{padding}}};}}
            {{#if:{{{border|}}}|border: {{{border}}};}}
            {{#if:{{{font-size|}}}|font-size: {{{font-size}}};}}
            line-height: 1;
            text-align: {{{text-align|center}}};
            background-color: {{{svg-background-color|{{{background-color|#ffffff}}}}}};
            position: relative;
            {{#if:{{{overflow-x|}}}|max-width: 100%; <!-- deals with large images on mobile overflowing -->
            overflow-x: {{{overflow-x|auto}}};}}"><!--
-->{{#if:{{{fullimage|}}}
    |{{{fullimage}}}
    |[[File:{{{image|NBSIntegracoes_-_Tela_Inicial.png}}}{{#if:{{{border2|}}}|{{!}}border}}{{#if:{{{thumb|}}}|{{!}}thumb{{!}}none}}|{{#if:{{{width|}}}|{{{width}}}|800}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]]
    }}</div>

Edição das 19h59min de 2 de agosto de 2022

{{{text}}}