Mudanças entre as edições de "Predefinição:Teste"
Ir para navegação
Ir para pesquisar
m (Limpou toda a página) Etiquetas: Reversão manual anulando |
m Etiqueta: Revertido |
||
| Linha 1: | Linha 1: | ||
<!-- Predefinição:GifThumb | |||
Uso: | |||
{{GifThumb | |||
| file = Baixandoglawindows.gif | |||
| cap = Isso é no Microsoft Edge, em outros navegadores... | |||
| side = right <!-- right | left | center --> | |||
| width= 274 <!-- opcional, px --> | |||
| alt = Download no Edge <!-- opcional --> | |||
| link = page <!-- page | media | none (padrão: page) --> | |||
}} | |||
--> | |||
<!-- Normaliza alinhamento --> | |||
{{#vardefine:__side|{{lc:{{{side|right}}}}} }} | |||
<!-- Normaliza link --> | |||
{{#vardefine:__link|{{lc:{{{link|page}}}}} }} | |||
<div class="gtr-thumb thumb | |||
{{#switch:{{#var:__side}} | |||
|left=tleft | |||
|center=tcenter | |||
|right=tright | |||
|#default=tright | |||
}}"> | |||
<div class="thumbinner" {{#if:{{{width|}}}|style="width: {{#expr: {{{width}}} + 2 }}px;"|}}> | |||
<!-- IMG com link condicional --> | |||
{{#switch:{{#var:__link}} | |||
| none = | |||
<img src="{{filepath:{{{file}}}}" | |||
{{#if:{{{width|}}}|width="{{{width}}}"|}} | |||
class="thumbimage" | |||
alt="{{{alt|}}}" | |||
loading="lazy" | |||
decoding="async" /> | |||
| media = | |||
<a href="{{fullurl:Media:{{{file}}}}}"> | |||
<img src="{{filepath:{{{file}}}}" | |||
{{#if:{{{width|}}}|width="{{{width}}}"|}} | |||
class="thumbimage" | |||
alt="{{{alt|}}}" | |||
loading="lazy" | |||
decoding="async" /> | |||
</a> | |||
| #default = | |||
<a href="{{fullurl:Arquivo:{{{file}}}}}"> | |||
<img src="{{filepath:{{{file}}}}" | |||
{{#if:{{{width|}}}|width="{{{width}}}"|}} | |||
class="thumbimage" | |||
alt="{{{alt|}}}" | |||
loading="lazy" | |||
decoding="async" /> | |||
</a> | |||
}} | |||
<div class="thumbcaption">{{{cap|}}}</div> | |||
</div> | |||
</div> | |||
<!-- injeta CSS/JS do widget (não passa parâmetros) --> | |||
<span style="display:none;">{{#widget:Teste}}</span> | |||
Edição das 02h07min de 14 de agosto de 2025
| width= 274
| alt = Download no Edge
| link = page
}}
-->
{{#vardefine:__side|right }} {{#vardefine:__link|page }}
{{#switch:{{#var:__link}}
| none =
<img src="{{filepath:{{{file}}}}"
class="thumbimage"
alt=""
loading="lazy"
decoding="async" />
| media =
<a href="{{fullurl:Media:{{{file}}}}}">
<img src="{{filepath:{{{file}}}}"
class="thumbimage"
alt=""
loading="lazy"
decoding="async" />
</a>
| #default =
<a href="{{fullurl:Arquivo:{{{file}}}}}">
<img src="