Szablon:Sklep/Layout: Różnice pomiędzy wersjami
| [wersja przejrzana] | [wersja przejrzana] |
| (Nie pokazano 5 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
| Linia 1: | Linia 1: | ||
<includeonly>{{Okno/Layout | <includeonly>{{Okno/Layout | ||
| − | |width= | + | |width=182px |
| − | |title={{#if: {{{ | + | |title={{#if: {{{Title|}}} | {{{Title}}} | Sklep }} |
| + | |||
| + | |body=<div style="padding: 0px 5px 5px; display: flex; flex-wrap: wrap;> | ||
| + | {{#if: {{{Slot1|}}} | {{Sklep/Przedmiot/Layout|{{{Slot1}}}|count={{#if: {{{SlotCount1|}}} | {{{SlotCount1}}} }}|price={{#if: {{{SlotPrice1|}}} | {{{SlotPrice1}}} }}|currency={{#if: {{{SlotCurrency1|}}} | {{{SlotCurrency1}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot2|}}} | {{Sklep/Przedmiot/Layout|{{{Slot2}}}|count={{#if: {{{SlotCount2|}}} | {{{SlotCount2}}} }}|price={{#if: {{{SlotPrice2|}}} | {{{SlotPrice2}}} }}|currency={{#if: {{{SlotCurrency2|}}} | {{{SlotCurrency2}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot3|}}} | {{Sklep/Przedmiot/Layout|{{{Slot3}}}|count={{#if: {{{SlotCount3|}}} | {{{SlotCount3}}} }}|price={{#if: {{{SlotPrice3|}}} | {{{SlotPrice3}}} }}|currency={{#if: {{{SlotCurrency3|}}} | {{{SlotCurrency3}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot4|}}} | {{Sklep/Przedmiot/Layout|{{{Slot4}}}|count={{#if: {{{SlotCount4|}}} | {{{SlotCount4}}} }}|price={{#if: {{{SlotPrice4|}}} | {{{SlotPrice4}}} }}|currency={{#if: {{{SlotCurrency4|}}} | {{{SlotCurrency4}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot5|}}} | {{Sklep/Przedmiot/Layout|{{{Slot5}}}|count={{#if: {{{SlotCount5|}}} | {{{SlotCount5}}} }}|price={{#if: {{{SlotPrice5|}}} | {{{SlotPrice5}}} }}|currency={{#if: {{{SlotCurrency5|}}} | {{{SlotCurrency5}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot6|}}} | {{Sklep/Przedmiot/Layout|{{{Slot6}}}|count={{#if: {{{SlotCount6|}}} | {{{SlotCount6}}} }}|price={{#if: {{{SlotPrice6|}}} | {{{SlotPrice6}}} }}|currency={{#if: {{{SlotCurrency6|}}} | {{{SlotCurrency6}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot7|}}} | {{Sklep/Przedmiot/Layout|{{{Slot7}}}|count={{#if: {{{SlotCount7|}}} | {{{SlotCount7}}} }}|price={{#if: {{{SlotPrice7|}}} | {{{SlotPrice7}}} }}|currency={{#if: {{{SlotCurrency7|}}} | {{{SlotCurrency7}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot8|}}} | {{Sklep/Przedmiot/Layout|{{{Slot8}}}|count={{#if: {{{SlotCount8|}}} | {{{SlotCount8}}} }}|price={{#if: {{{SlotPrice8|}}} | {{{SlotPrice8}}} }}|currency={{#if: {{{SlotCurrency8|}}} | {{{SlotCurrency8}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot9|}}} | {{Sklep/Przedmiot/Layout|{{{Slot9}}}|count={{#if: {{{SlotCount9|}}} | {{{SlotCount9}}} }}|price={{#if: {{{SlotPrice9|}}} | {{{SlotPrice9}}} }}|currency={{#if: {{{SlotCurrency9|}}} | {{{SlotCurrency9}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot10|}}} | {{Sklep/Przedmiot/Layout|{{{Slot10}}}|count={{#if: {{{SlotCount10|}}} | {{{SlotCount10}}} }}|price={{#if: {{{SlotPrice10|}}} | {{{SlotPrice10}}} }}|currency={{#if: {{{SlotCurrency10|}}} | {{{SlotCurrency10}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot11|}}} | {{Sklep/Przedmiot/Layout|{{{Slot11}}}|count={{#if: {{{SlotCount11|}}} | {{{SlotCount11}}} }}|price={{#if: {{{SlotPrice11|}}} | {{{SlotPrice11}}} }}|currency={{#if: {{{SlotCurrency11|}}} | {{{SlotCurrency11}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot12|}}} | {{Sklep/Przedmiot/Layout|{{{Slot12}}}|count={{#if: {{{SlotCount12|}}} | {{{SlotCount12}}} }}|price={{#if: {{{SlotPrice12|}}} | {{{SlotPrice12}}} }}|currency={{#if: {{{SlotCurrency12|}}} | {{{SlotCurrency12}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot13|}}} | {{Sklep/Przedmiot/Layout|{{{Slot13}}}|count={{#if: {{{SlotCount13|}}} | {{{SlotCount13}}} }}|price={{#if: {{{SlotPrice13|}}} | {{{SlotPrice13}}} }}|currency={{#if: {{{SlotCurrency13|}}} | {{{SlotCurrency13}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot14|}}} | {{Sklep/Przedmiot/Layout|{{{Slot14}}}|count={{#if: {{{SlotCount14|}}} | {{{SlotCount14}}} }}|price={{#if: {{{SlotPrice14|}}} | {{{SlotPrice14}}} }}|currency={{#if: {{{SlotCurrency14|}}} | {{{SlotCurrency14}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot15|}}} | {{Sklep/Przedmiot/Layout|{{{Slot15}}}|count={{#if: {{{SlotCount15|}}} | {{{SlotCount15}}} }}|price={{#if: {{{SlotPrice15|}}} | {{{SlotPrice15}}} }}|currency={{#if: {{{SlotCurrency15|}}} | {{{SlotCurrency15}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot16|}}} | {{Sklep/Przedmiot/Layout|{{{Slot16}}}|count={{#if: {{{SlotCount16|}}} | {{{SlotCount16}}} }}|price={{#if: {{{SlotPrice16|}}} | {{{SlotPrice16}}} }}|currency={{#if: {{{SlotCurrency16|}}} | {{{SlotCurrency16}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot17|}}} | {{Sklep/Przedmiot/Layout|{{{Slot17}}}|count={{#if: {{{SlotCount17|}}} | {{{SlotCount17}}} }}|price={{#if: {{{SlotPrice17|}}} | {{{SlotPrice17}}} }}|currency={{#if: {{{SlotCurrency17|}}} | {{{SlotCurrency17}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot18|}}} | {{Sklep/Przedmiot/Layout|{{{Slot18}}}|count={{#if: {{{SlotCount18|}}} | {{{SlotCount18}}} }}|price={{#if: {{{SlotPrice18|}}} | {{{SlotPrice18}}} }}|currency={{#if: {{{SlotCurrency18|}}} | {{{SlotCurrency18}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot19|}}} | {{Sklep/Przedmiot/Layout|{{{Slot19}}}|count={{#if: {{{SlotCount19|}}} | {{{SlotCount19}}} }}|price={{#if: {{{SlotPrice19|}}} | {{{SlotPrice19}}} }}|currency={{#if: {{{SlotCurrency19|}}} | {{{SlotCurrency19}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot20|}}} | {{Sklep/Przedmiot/Layout|{{{Slot20}}}|count={{#if: {{{SlotCount20|}}} | {{{SlotCount20}}} }}|price={{#if: {{{SlotPrice20|}}} | {{{SlotPrice20}}} }}|currency={{#if: {{{SlotCurrency20|}}} | {{{SlotCurrency20}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot21|}}} | {{Sklep/Przedmiot/Layout|{{{Slot21}}}|count={{#if: {{{SlotCount21|}}} | {{{SlotCount21}}} }}|price={{#if: {{{SlotPrice21|}}} | {{{SlotPrice21}}} }}|currency={{#if: {{{SlotCurrency21|}}} | {{{SlotCurrency21}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot22|}}} | {{Sklep/Przedmiot/Layout|{{{Slot22}}}|count={{#if: {{{SlotCount22|}}} | {{{SlotCount22}}} }}|price={{#if: {{{SlotPrice22|}}} | {{{SlotPrice22}}} }}|currency={{#if: {{{SlotCurrency22|}}} | {{{SlotCurrency22}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot23|}}} | {{Sklep/Przedmiot/Layout|{{{Slot23}}}|count={{#if: {{{SlotCount23|}}} | {{{SlotCount23}}} }}|price={{#if: {{{SlotPrice23|}}} | {{{SlotPrice23}}} }}|currency={{#if: {{{SlotCurrency23|}}} | {{{SlotCurrency23}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot24|}}} | {{Sklep/Przedmiot/Layout|{{{Slot24}}}|count={{#if: {{{SlotCount24|}}} | {{{SlotCount24}}} }}|price={{#if: {{{SlotPrice24|}}} | {{{SlotPrice24}}} }}|currency={{#if: {{{SlotCurrency24|}}} | {{{SlotCurrency24}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot25|}}} | {{Sklep/Przedmiot/Layout|{{{Slot25}}}|count={{#if: {{{SlotCount25|}}} | {{{SlotCount25}}} }}|price={{#if: {{{SlotPrice25|}}} | {{{SlotPrice25}}} }}|currency={{#if: {{{SlotCurrency25|}}} | {{{SlotCurrency25}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot26|}}} | {{Sklep/Przedmiot/Layout|{{{Slot26}}}|count={{#if: {{{SlotCount26|}}} | {{{SlotCount26}}} }}|price={{#if: {{{SlotPrice26|}}} | {{{SlotPrice26}}} }}|currency={{#if: {{{SlotCurrency26|}}} | {{{SlotCurrency26}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot27|}}} | {{Sklep/Przedmiot/Layout|{{{Slot27}}}|count={{#if: {{{SlotCount27|}}} | {{{SlotCount27}}} }}|price={{#if: {{{SlotPrice27|}}} | {{{SlotPrice27}}} }}|currency={{#if: {{{SlotCurrency27|}}} | {{{SlotCurrency27}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot28|}}} | {{Sklep/Przedmiot/Layout|{{{Slot28}}}|count={{#if: {{{SlotCount28|}}} | {{{SlotCount28}}} }}|price={{#if: {{{SlotPrice28|}}} | {{{SlotPrice28}}} }}|currency={{#if: {{{SlotCurrency28|}}} | {{{SlotCurrency28}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot29|}}} | {{Sklep/Przedmiot/Layout|{{{Slot29}}}|count={{#if: {{{SlotCount29|}}} | {{{SlotCount29}}} }}|price={{#if: {{{SlotPrice29|}}} | {{{SlotPrice29}}} }}|currency={{#if: {{{SlotCurrency29|}}} | {{{SlotCurrency29}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot30|}}} | {{Sklep/Przedmiot/Layout|{{{Slot30}}}|count={{#if: {{{SlotCount30|}}} | {{{SlotCount30}}} }}|price={{#if: {{{SlotPrice30|}}} | {{{SlotPrice30}}} }}|currency={{#if: {{{SlotCurrency30|}}} | {{{SlotCurrency30}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot31|}}} | {{Sklep/Przedmiot/Layout|{{{Slot31}}}|count={{#if: {{{SlotCount31|}}} | {{{SlotCount31}}} }}|price={{#if: {{{SlotPrice31|}}} | {{{SlotPrice31}}} }}|currency={{#if: {{{SlotCurrency31|}}} | {{{SlotCurrency31}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot32|}}} | {{Sklep/Przedmiot/Layout|{{{Slot32}}}|count={{#if: {{{SlotCount32|}}} | {{{SlotCount32}}} }}|price={{#if: {{{SlotPrice32|}}} | {{{SlotPrice32}}} }}|currency={{#if: {{{SlotCurrency32|}}} | {{{SlotCurrency32}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot33|}}} | {{Sklep/Przedmiot/Layout|{{{Slot33}}}|count={{#if: {{{SlotCount33|}}} | {{{SlotCount33}}} }}|price={{#if: {{{SlotPrice33|}}} | {{{SlotPrice33}}} }}|currency={{#if: {{{SlotCurrency33|}}} | {{{SlotCurrency33}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot34|}}} | {{Sklep/Przedmiot/Layout|{{{Slot34}}}|count={{#if: {{{SlotCount34|}}} | {{{SlotCount34}}} }}|price={{#if: {{{SlotPrice34|}}} | {{{SlotPrice34}}} }}|currency={{#if: {{{SlotCurrency34|}}} | {{{SlotCurrency34}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot35|}}} | {{Sklep/Przedmiot/Layout|{{{Slot35}}}|count={{#if: {{{SlotCount35|}}} | {{{SlotCount35}}} }}|price={{#if: {{{SlotPrice35|}}} | {{{SlotPrice35}}} }}|currency={{#if: {{{SlotCurrency35|}}} | {{{SlotCurrency35}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot36|}}} | {{Sklep/Przedmiot/Layout|{{{Slot36}}}|count={{#if: {{{SlotCount36|}}} | {{{SlotCount36}}} }}|price={{#if: {{{SlotPrice36|}}} | {{{SlotPrice36}}} }}|currency={{#if: {{{SlotCurrency36|}}} | {{{SlotCurrency36}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot37|}}} | {{Sklep/Przedmiot/Layout|{{{Slot37}}}|count={{#if: {{{SlotCount37|}}} | {{{SlotCount37}}} }}|price={{#if: {{{SlotPrice37|}}} | {{{SlotPrice37}}} }}|currency={{#if: {{{SlotCurrency37|}}} | {{{SlotCurrency37}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot38|}}} | {{Sklep/Przedmiot/Layout|{{{Slot38}}}|count={{#if: {{{SlotCount38|}}} | {{{SlotCount38}}} }}|price={{#if: {{{SlotPrice38|}}} | {{{SlotPrice38}}} }}|currency={{#if: {{{SlotCurrency38|}}} | {{{SlotCurrency38}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot39|}}} | {{Sklep/Przedmiot/Layout|{{{Slot39}}}|count={{#if: {{{SlotCount39|}}} | {{{SlotCount39}}} }}|price={{#if: {{{SlotPrice39|}}} | {{{SlotPrice39}}} }}|currency={{#if: {{{SlotCurrency39|}}} | {{{SlotCurrency39}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| + | {{#if: {{{Slot40|}}} | {{Sklep/Przedmiot/Layout|{{{Slot40}}}|count={{#if: {{{SlotCount40|}}} | {{{SlotCount40}}} }}|price={{#if: {{{SlotPrice40|}}} | {{{SlotPrice40}}} }}|currency={{#if: {{{SlotCurrency40|}}} | {{{SlotCurrency40}}} }}}} | {{Sklep/Przedmiot/Layout}} }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| − | = Przykład użycia = | + | = Zastosowanie = |
| − | {| | + | |
| + | Szablon służy do prezentacji listy przedmiotów znajdujących się w sklepie danego NPC. Sloty należy liczyć od lewej do prawej, z góry na dół (tj. w lewym górnym rogu jest <code>Slot1</code>, w prawym dolnym rogu jest <code>Slot39</code>). | ||
| + | |||
| + | Nazwę sklepu można zmienić za pomocą atrybutu <code>Title</code>. Jeśli atrybut ten zostanie pominięty to domyślnie nazwą sklepu będzie <code>Sklep</code>. | ||
| + | |||
| + | Jeśli przedmiot w danym slocie zajmuje więcej niż 1 pole na wysokość (np. Wędka w <code>Slot1</code>), to nie powinno umieszczać się innych przedmiotów w <code>Slot6</code> i <code>Slot11</code>, ponieważ będą na siebie nachodzić (patrz: [[#Nakładanie się przedmiotów|Przykład]]). | ||
| + | |||
| + | Jeśli przedmiot jest dostępny w ilości większej niż 1 należy zdefiniować ją za pomocą atrybutu <code>SlotCountX</code>, gdzie X oznacza identyfikator slotu (dla <code>Slot1</code> jest to <code>SlotCount1</code> itd.). | ||
| + | |||
| + | Jeśli w danym slocie nie znajduje się przedmiot to można ominąć jego definiowanie. | ||
| + | |||
| + | = Przykłady użycia = | ||
| + | {| style="width: 100%;" | ||
| + | |- | ||
| + | | <center>{{Sklep/Layout | ||
| + | |Title=Test | ||
| + | }}</center> | ||
| + | | <center>{{Sklep/Layout | ||
| + | |Slot1 = Zwój Ognia | ||
| + | |Slot2 = Zwój Lodu | ||
| + | |Slot3 = Zwój Ziemi | ||
| + | |Slot4 = Zwój Wiatru | ||
| + | |Slot5 = Zwój Mroku | ||
| + | |Slot6 = Zwój Błyskawicy | ||
| + | |Slot7 = Zwój Klątwy | ||
| + | |Slot8 = Zwój Zmiany | ||
| + | |Slot9 = Kamyki | ||
| + | |SlotCount9 = 200 | ||
| + | }}</center> | ||
| + | | <center>{{Sklep/Layout | ||
| + | |Slot1 = Wędka | ||
| + | |SlotCount1 = 50 | ||
| + | |Slot2 = Miecz | ||
| + | |Slot3 = Futro Wilka | ||
| + | |Slot4 = Kawałek Kamienia | ||
| + | |Slot5 = Wachlarz | ||
| + | |Slot8 = Miedziany Dzwon | ||
| + | |Slot9 = Kamień Duszy Obrony | ||
| + | |Slot10 = Czerwona Mikstura(D) | ||
| + | |Slot12 = Niebieska Mikstura(D) | ||
| + | |Slot13 = Zwój Błogosławieństwa | ||
| + | }}</center> | ||
|- | |- | ||
| − | | {{Sklep/Layout | + | | <pre>{{Sklep/Layout |
| − | + | |title=Test | |
| − | |Slot1 = | + | }}</pre> |
| + | | <pre>{{Sklep/Layout | ||
| + | |Slot1 = Zwój Ognia | ||
| + | |Slot2 = Zwój Lodu | ||
| + | |Slot3 = Zwój Ziemi | ||
| + | |Slot4 = Zwój Wiatru | ||
| + | |Slot5 = Zwój Mroku | ||
| + | |Slot6 = Zwój Błyskawicy | ||
| + | |Slot7 = Zwój Klątwy | ||
| + | |Slot8 = Zwój Zmiany | ||
| + | |Slot9 = Kamyki | ||
| + | |SlotCount9 = 200 | ||
| + | }}</pre> | ||
| + | | <pre>{{Sklep/Layout | ||
| + | |Slot1 = Wędka | ||
| + | |SlotCount1 = 50 | ||
|Slot2 = Miecz | |Slot2 = Miecz | ||
| − | |Slot3 = | + | |Slot3 = Futro Wilka |
| + | |Slot4 = Kawałek Kamienia | ||
| + | |Slot5 = Wachlarz | ||
| + | |Slot8 = Miedziany Dzwon | ||
| + | |Slot9 = Kamień Duszy Obrony | ||
| + | |Slot10 = Czerwona Mikstura(D) | ||
| + | |Slot12 = Niebieska Mikstura(D) | ||
| + | |Slot13 = Zwój Błogosławieństwa | ||
| + | }}</pre> | ||
| + | |} | ||
| − | | | + | = Przykłady błędnego użycia = |
| − | | | + | == Nakładanie się przedmiotów == |
| − | | | + | {| style="width: 100%;" |
| + | |- | ||
| + | ! Żle | ||
| + | ! Dobrze | ||
| + | |- | ||
| + | | <center>{{Sklep/Layout | ||
| + | |Slot1 = Wędka | ||
| + | |Slot6 = Miecz | ||
| + | |Slot11 = Kawałek Kamienia | ||
| + | }}</center> | ||
| + | | <center>{{Sklep/Layout | ||
| + | |Slot1 = Wędka | ||
| + | |Slot16 = Miecz | ||
| + | |Slot26 = Kawałek Kamienia | ||
| + | }}</center> | ||
| + | |- | ||
| + | | <pre>{{Sklep/Layout | ||
| + | |Slot1 = Wędka | ||
| + | |Slot6 = Miecz | ||
| + | |Slot11 = Kawałek Kamienia | ||
| + | }}</pre> | ||
| + | | <pre>{{Sklep/Layout | ||
| + | |Slot1 = Wędka | ||
| + | |Slot16 = Miecz | ||
| + | |Slot26 = Kawałek Kamienia | ||
| + | }}</pre> | ||
| + | |} | ||
| − | + | [[Kategoria:Szablony]] | |
| − | + | [[Kategoria:Szablony/Layout]] | |
| − | |||
</noinclude> | </noinclude> | ||
Aktualna wersja na dzień 20:55, 17 lip 2020
Spis treści
Zastosowanie
Szablon służy do prezentacji listy przedmiotów znajdujących się w sklepie danego NPC. Sloty należy liczyć od lewej do prawej, z góry na dół (tj. w lewym górnym rogu jest Slot1, w prawym dolnym rogu jest Slot39).
Nazwę sklepu można zmienić za pomocą atrybutu Title. Jeśli atrybut ten zostanie pominięty to domyślnie nazwą sklepu będzie Sklep.
Jeśli przedmiot w danym slocie zajmuje więcej niż 1 pole na wysokość (np. Wędka w Slot1), to nie powinno umieszczać się innych przedmiotów w Slot6 i Slot11, ponieważ będą na siebie nachodzić (patrz: Przykład).
Jeśli przedmiot jest dostępny w ilości większej niż 1 należy zdefiniować ją za pomocą atrybutu SlotCountX, gdzie X oznacza identyfikator slotu (dla Slot1 jest to SlotCount1 itd.).
Jeśli w danym slocie nie znajduje się przedmiot to można ominąć jego definiowanie.
Przykłady użycia
Test |
Sklep |
Sklep |
{{Sklep/Layout
|title=Test
}}
|
{{Sklep/Layout
|Slot1 = Zwój Ognia
|Slot2 = Zwój Lodu
|Slot3 = Zwój Ziemi
|Slot4 = Zwój Wiatru
|Slot5 = Zwój Mroku
|Slot6 = Zwój Błyskawicy
|Slot7 = Zwój Klątwy
|Slot8 = Zwój Zmiany
|Slot9 = Kamyki
|SlotCount9 = 200
}}
|
{{Sklep/Layout
|Slot1 = Wędka
|SlotCount1 = 50
|Slot2 = Miecz
|Slot3 = Futro Wilka
|Slot4 = Kawałek Kamienia
|Slot5 = Wachlarz
|Slot8 = Miedziany Dzwon
|Slot9 = Kamień Duszy Obrony
|Slot10 = Czerwona Mikstura(D)
|Slot12 = Niebieska Mikstura(D)
|Slot13 = Zwój Błogosławieństwa
}}
|
Przykłady błędnego użycia
Nakładanie się przedmiotów
| Żle | Dobrze |
|---|---|
{{Sklep/Layout
|Slot1 = Wędka
|Slot6 = Miecz
|Slot11 = Kawałek Kamienia
}}
|
{{Sklep/Layout
|Slot1 = Wędka
|Slot16 = Miecz
|Slot26 = Kawałek Kamienia
}}
|