Diferenças entre edições de "Predefinição:Recortar"
Linha 12: | Linha 12: | ||
{{#if:{{{Description|}}}|<div class="thumbinner" style="width: {{#expr:{{{largura}}}+2}}px;">}} | {{#if:{{{Description|}}}|<div class="thumbinner" style="width: {{#expr:{{{largura}}}+2}}px;">}} | ||
<div {{#if:{{{Description|}}}|class="thumbimage"}} style="width: {{{largura}}}px; height: {{{altura}}}px; overflow: hidden;"> | <div {{#if:{{{Description|}}}|class="thumbimage"}} style="width: {{{largura}}}px; height: {{{altura}}}px; overflow: hidden;"> | ||
− | <div style="position: relative; top: -{{{ | + | <div style="position: relative; top: -{{{y|0}}}px; left: -{{{x|0}}}px; width: {{{bSize}}}px"><!-- |
--><div class="noresize">[[Imagem:{{{imagem}}}{{#if:{{{bSize|}}}|{{!}}{{{bSize}}}px}}|alt={{{Alt|{{{Description|{{{imagem}}}}}}}}}{{#if:{{{Link|}}}|{{!}}link={{{Link}}}}}{{#if:{{{Page|}}}|{{!}}page={{{Page}}}}}]]</div><!-- | --><div class="noresize">[[Imagem:{{{imagem}}}{{#if:{{{bSize|}}}|{{!}}{{{bSize}}}px}}|alt={{{Alt|{{{Description|{{{imagem}}}}}}}}}{{#if:{{{Link|}}}|{{!}}link={{{Link}}}}}{{#if:{{{Page|}}}|{{!}}page={{{Page}}}}}]]</div><!-- | ||
--></div> | --></div> | ||
Linha 21: | Linha 21: | ||
</div> | </div> | ||
</div>{{#switch:{{{Location|{{{Align|}}}}}} | </div>{{#switch:{{{Location|{{{Align|}}}}}} | ||
− | | center | centre = </div>}}{{#ifeq:1|{{ifnumber|{{{largura|}}}{{{altura|}}}{{{ | + | | center | centre = </div>}}{{#ifeq:1|{{ifnumber|{{{largura|}}}{{{altura|}}}{{{y|}}}{{{x|}}}{{{bSize|}}}}}||[[Category:CSS image crop using invalid parameters]]}}}} |