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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
Etiqueta: Revertido
m
 
(35 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<!-- Predefinição:GifThumb
<includeonly>{{#widget:Teste}}{{#invoke:Teste|main
    Uso:
| nome1  = {{{nome1|}}}  | link1  = {{{link1|}}}  | img1  = {{{img1|}}}  | qtd1  = {{{qtd1|}}}  | bau1  = {{{bau1|}}}
      {{GifThumb
| nome2  = {{{nome2|}}}  | link2  = {{{link2|}}}  | img2  = {{{img2|}}}  | qtd2  = {{{qtd2|}}}  | bau2  = {{{bau2|}}}
        | file = Baixandoglawindows.gif
| nome3  = {{{nome3|}}}  | link3  = {{{link3|}}}  | img3  = {{{img3|}}}  | qtd3  = {{{qtd3|}}}  | bau3  = {{{bau3|}}}
        | cap = Isso é no Microsoft Edge, em outros navegadores...
| nome4  = {{{nome4|}}}  | link4  = {{{link4|}}}  | img4  = {{{img4|}}}  | qtd4  = {{{qtd4|}}}  | bau4  = {{{bau4|}}}
        | side = right            <!-- right | left | center -->
| nome5  = {{{nome5|}}}  | link5  = {{{link5|}}}  | img5  = {{{img5|}}}  | qtd5  = {{{qtd5|}}}  | bau5  = {{{bau5|}}}
        | width= 274              <!-- opcional, px -->
| nome6  = {{{nome6|}}}  | link6  = {{{link6|}}}  | img6  = {{{img6|}}}  | qtd6  = {{{qtd6|}}}  | bau6 = {{{bau6|}}}
        | alt = Download no Edge <!-- opcional -->
| nome7  = {{{nome7|}}}  | link7  = {{{link7|}}}  | img7  = {{{img7|}}}  | qtd7  = {{{qtd7|}}}  | bau7  = {{{bau7|}}}
        | link = page            <!-- page | media | none (padrão: page) -->
| nome8  = {{{nome8|}}}  | link8  = {{{link8|}}}  | img8  = {{{img8|}}}  | qtd8  = {{{qtd8|}}}  | bau8  = {{{bau8|}}}
      }}
| nome9  = {{{nome9|}}}  | link9  = {{{link9|}}}  | img9  = {{{img9|}}}  | qtd9  = {{{qtd9|}}}  | bau9 = {{{bau9|}}}
-->
| nome10 = {{{nome10|}}} | link10 = {{{link10|}}} | img10 = {{{img10|}}} | qtd10 = {{{qtd10|}}} | bau10 = {{{bau10|}}}
| nome11 = {{{nome11|}}} | link11 = {{{link11|}}} | img11 = {{{img11|}}} | qtd11 = {{{qtd11|}}} | bau11 = {{{bau11|}}}
| nome12 = {{{nome12|}}} | link12 = {{{link12|}}} | img12 = {{{img12|}}} | qtd12 = {{{qtd12|}}} | bau12 = {{{bau12|}}}
}}</includeonly>


<!-- Normaliza alinhamento -->
<noinclude>
{{#vardefine:__side|{{lc:{{{side|right}}}}} }}
== Exemplo ==
<!-- Normaliza link -->
<pre>
{{#vardefine:__link|{{lc:{{{link|page}}}}} }}
{{Teste
 
| nome1 = Foosha Village
<div class="gtr-thumb thumb
| link1 = Foosha Village
{{#switch:{{#var:__side}}
| img1  = Foosha.png
  |left=tleft
| qtd1  = 6
  |center=tcenter
| bau1  = comum
  |right=tright
}}
  |#default=tright
</pre>
}}">
</noinclude>
  <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 23h55min de 12 de março de 2026


Exemplo

{{Teste
 | nome1 = Foosha Village
 | link1 = Foosha Village
 | img1  = Foosha.png
 | qtd1  = 6
 | bau1  = comum
}}