Szablon:Sklep/Przedmiot/Layout: Różnice pomiędzy wersjami
[wersja przejrzana] | [wersja przejrzana] |
Linia 1: | Linia 1: | ||
− | <includeonly><div class="shop-item" style="width: 32px; height: 32px; position: relative; top: 0px; left: 0px;">[[Plik:Czarne Tło.png|32px|link=]]{{#if: {{{1|}}} | <div class="shop-item-image" style="position: absolute; top: 0; left: 0; z-index: 1;>[[Plik:{{{1}}}.png|32px|link={{{1}}}|{{{1}}} x{{#if: {{{count|}}} | {{{count}}} | 1 }} {{#if: {{{price|}}} | za {{{price}}} {{#if: {{{currency|}}} | {{{currency}}} | Yang }} }}]]{{#if: {{{count|}}} | [[{{{1}}}|<span style="position: absolute; right: 3px; bottom: 3px; z-index: 1; font-size: 8px; line-height: 8px; color: #fff; text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;">{{{count}}}</span> | + | <includeonly><div class="shop-item" style="width: 32px; height: 32px; position: relative; top: 0px; left: 0px;">[[Plik:Czarne Tło.png|32px|link=]]{{#if: {{{1|}}} | <div class="shop-item-image" style="position: absolute; top: 0; left: 0; z-index: 1;>[[Plik:{{{1}}}.png|32px|link={{{1}}}|{{{1}}} x{{#if: {{{count|}}} | {{{count}}} | 1 }} {{#if: {{{price|}}} | za {{{price}}} {{#if: {{{currency|}}} | {{{currency}}} | Yang }} }}]]{{#if: {{{count|}}} | [[{{{1}}}|<span style="position: absolute; right: 3px; bottom: 3px; z-index: 1; font-size: 8px; line-height: 8px; color: #fff; text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;">{{{count}}}</span>]] }}</div> }}</div></includeonly><noinclude> |
= Zastosowanie = | = Zastosowanie = | ||
Aktualna wersja na dzień 18:32, 23 lip 2020
Zastosowanie
Szablon ten jest zmodyfikowanym szablonem Szablon:Ti2. Służy do wyświetlania produktów w nowym szablonie Szablon:Sklep/Layout. Brak tła slotów pod obiektami wyższymi niż 1 slot jest celowy.
Przykłady użycia
{{Sklep/Przedmiot/Layout}} | |
{{Sklep/Przedmiot/Layout|Futro Wilka}} | |
{{Sklep/Przedmiot/Layout|Futro Wilka|count=200}} | |
{{Sklep/Przedmiot/Layout|Miecz}} | |
{{Sklep/Przedmiot/Layout|Wędka}} | |
{{Sklep/Przedmiot/Layout|Wędka|count=2}} |