Mudanças entre as edições de "Predefinição:Teste"

De Wiki Gla
Ir para navegação Ir para pesquisar
m
Etiqueta: Revertido
m
 
(14 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<!-- Predefinição:GifThumb
<includeonly>{{#invoke:C|generate
    Uso:
|name={{{name|}}}
      {{GifThumb
|module={{{module|}}}
        | file = Baixandoglawindows.gif
}}{{#widget:C.Base}}{{#widget:C.Skills}}{{#widget:C.Background}}{{#widget:C.Skins}}{{#widget:C.Subskills}}{{#widget:C.Translator}}{{#widget:C.WeaponToggle}}{{#widget:TiraTitulo}}</includeonly>
        | 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 atual tal como às 21h36min de 31 de dezembro de 2025