Szablon:Ulepszanie/Zbroja/Layout: Różnice pomiędzy wersjami
[wersja przejrzana] | [wersja przejrzana] |
(Nie pokazano 21 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
Linia 1: | Linia 1: | ||
− | <includeonly><table style="cellpadding="3" cellspacing="0" style="width: 100% | + | <includeonly><!-- |
+ | -->{{#vardefine: th | background: #5C3317; color: #dadada; font-weight: bold; border-left: 1px dotted #808080; border-bottom: 1px dotted #808080; box-sizing: border-box; }}<!-- | ||
+ | -->{{#vardefine: th-width | {{#switch: {{{MaxUlepszenie|}}} | 0 = 640 | 15 = 80 | #default = {{#expr: 640 / {{{MaxUlepszenie}}} }} }} }}<!-- | ||
+ | --><table style="cellpadding="3" cellspacing="0" style="width: 100%; text-align: center"> | ||
+ | |||
+ | <!-- Poziom ulepszenia --> | ||
<tr> | <tr> | ||
<th style="width: 100px; box-sizing: border-box;">[[Plik:Metin2Ikona.png|link=]]</th> | <th style="width: 100px; box-sizing: border-box;">[[Plik:Metin2Ikona.png|link=]]</th> | ||
− | {{# | + | <th style="{{#var: th }} width: {{#var: th-width}}px;">+0</th> |
− | + | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | |
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+1</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+2</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+3</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+4</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+5</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+6</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+7</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+8</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+9</th> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+10</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+11</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+12</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+13</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+14</th> | ||
+ | <th style="{{#var: th }} width: {{#var: th-width}}px;">+15</th> | ||
+ | }} | ||
+ | }} | ||
+ | </tr> | ||
+ | |||
+ | <!-- Wymagany poziom --> | ||
+ | {{#if: {{{Poziom-0|}}}{{{Poziom-9|}}} | | ||
+ | <tr> | ||
+ | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;">[[Poziom|<span style="color: #dadada;">Wymagany Poziom</span>]]</th> | ||
+ | <td>{{#if: {{{Poziom-0|}}} | {{{Poziom-0}}} | - }}</td> | ||
+ | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | ||
+ | <td>{{#if: {{{Poziom-1|}}} | {{{Poziom-1}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-2|}}} | {{{Poziom-2}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-3|}}} | {{{Poziom-3}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-4|}}} | {{{Poziom-4}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-5|}}} | {{{Poziom-5}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-6|}}} | {{{Poziom-6}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-7|}}} | {{{Poziom-7}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-8|}}} | {{{Poziom-8}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-9|}}} | {{{Poziom-9}}} | - }}</td> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <td>{{#if: {{{Poziom-10|}}} | {{{Poziom-10}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-11|}}} | {{{Poziom-11}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-12|}}} | {{{Poziom-12}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-13|}}} | {{{Poziom-13}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-14|}}} | {{{Poziom-14}}} | - }}</td> | ||
+ | <td>{{#if: {{{Poziom-15|}}} | {{{Poziom-15}}} | - }}</td> | ||
+ | }} | ||
+ | }} | ||
</tr> | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Obrona --> | ||
<tr> | <tr> | ||
− | <th scope="row" style=" | + | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;">[[Obrona|<span style="color: #dadada;">Obrona</span>]]</th> |
+ | <td>{{#if: {{{Obrona-0|}}} | {{{Obrona-0}}} | - }}</td> | ||
+ | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | ||
+ | <td>{{#if: {{{Obrona-1|}}} | {{{Obrona-1}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-2|}}} | {{{Obrona-2}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-3|}}} | {{{Obrona-3}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-4|}}} | {{{Obrona-4}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-5|}}} | {{{Obrona-5}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-6|}}} | {{{Obrona-6}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-7|}}} | {{{Obrona-7}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-8|}}} | {{{Obrona-8}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-9|}}} | {{{Obrona-9}}} | - }}</td> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <td>{{#if: {{{Obrona-10|}}} | {{{Obrona-10}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-11|}}} | {{{Obrona-11}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-12|}}} | {{{Obrona-12}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-13|}}} | {{{Obrona-13}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-14|}}} | {{{Obrona-14}}} | - }}</td> | ||
+ | <td>{{#if: {{{Obrona-15|}}} | {{{Obrona-15}}} | - }}</td> | ||
+ | }} | ||
+ | }} | ||
+ | </tr> | ||
+ | |||
+ | <!-- Bonus 1 --> | ||
+ | <tr> | ||
+ | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;"><!-- | ||
+ | -->{{#if: {{{NazwaBonusu-1|}}} | [[{{{NazwaBonusu-1}}}|<span style="color: #dadada;">{{{NazwaBonusu-1}}}</span>]] | - }} | ||
+ | </th> | ||
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
| {{#expr: {{{MaxUlepszenie}}} + 1 }} | | {{#expr: {{{MaxUlepszenie}}} + 1 }} | ||
− | | <td>{{#if: {{{ | + | <!-- Jeśli wartość bonusu zaczyna się od znaku "-" to pokoloruj tekst na czerwono --> |
+ | | <td style="{{#ifeq: {{#sub: {{{ Bonus-1-{{#var: i}} }}} | 0 | 1 }} | - | color: red }}"><!-- | ||
+ | -->{{#if: {{{ Bonus-1-{{#var: i}} | }}} | {{{ Bonus-1-{{#var: i}} }}} | - }} | ||
+ | </td> | ||
}} | }} | ||
</tr> | </tr> | ||
− | {{# | + | |
− | | | + | <!-- Bonus 2 --> |
− | + | {{#ifexpr: {{{MaxIlośćBonusów|}}} >= 2 | | |
− | + | <tr> | |
− | + | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;"><!-- | |
− | + | -->{{#if: {{{NazwaBonusu-2|}}} | [[{{{NazwaBonusu-2}}}|<span style="color: #dadada;">{{{NazwaBonusu-2}}}</span>]] | - }} | |
− | + | </th> | |
− | + | {{#loop: i | |
− | + | | 0 | |
− | + | | {{#expr: {{{MaxUlepszenie}}} + 1 }} | |
− | + | <!-- Jeśli wartość bonusu zaczyna się od znaku "-" to pokoloruj tekst na czerwono --> | |
− | + | | <td style="{{#ifeq: {{#sub: {{{ Bonus-2-{{#var: i}} }}} | 0 | 1 }} | - | color: red }}"><!-- | |
− | + | -->{{#if: {{{ Bonus-2-{{#var: i}} | }}} | {{{ Bonus-2-{{#var: i}} }}} | - }} | |
− | + | </td> | |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Bonus 3 --> | ||
+ | {{#ifexpr: {{{MaxIlośćBonusów|}}} >= 3 | | ||
<tr> | <tr> | ||
− | <th scope="row" style=" | + | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;"><!-- |
+ | -->{{#if: {{{NazwaBonusu-3|}}} | [[{{{NazwaBonusu-3}}}|<span style="color: #dadada;">{{{NazwaBonusu-3}}}</span>]] | - }} | ||
+ | </th> | ||
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
| {{#expr: {{{MaxUlepszenie}}} + 1 }} | | {{#expr: {{{MaxUlepszenie}}} + 1 }} | ||
− | | <td>{{#if: {{{ KosztUlepszenia-{{#var: | + | <!-- Jeśli wartość bonusu zaczyna się od znaku "-" to pokoloruj tekst na czerwono --> |
+ | | <td style="{{#ifeq: {{#sub: {{{ Bonus-3-{{#var: i}} }}} | 0 | 1 }} | - | color: red }}"><!-- | ||
+ | -->{{#if: {{{ Bonus-3-{{#var: i}} | }}} | {{{ Bonus-3-{{#var: i}} }}} | - }} | ||
+ | </td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Koszt Ulepszenia --> | ||
+ | {{#if: {{{KosztUlepszenia-0|}}} | | ||
+ | <tr> | ||
+ | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;">Koszt Ulepszenia</th> | ||
+ | <td>{{#if: {{{KosztUlepszenia-0|}}} | {{{KosztUlepszenia-0}}} | - }}</td> | ||
+ | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | ||
+ | <td>{{#if: {{{KosztUlepszenia-1|}}} | {{{KosztUlepszenia-1}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-2|}}} | {{{KosztUlepszenia-2}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-3|}}} | {{{KosztUlepszenia-3}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-4|}}} | {{{KosztUlepszenia-4}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-5|}}} | {{{KosztUlepszenia-5}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-6|}}} | {{{KosztUlepszenia-6}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-7|}}} | {{{KosztUlepszenia-7}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-8|}}} | {{{KosztUlepszenia-8}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-9|}}} | {{{KosztUlepszenia-9}}} | - }}</td> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <td>{{#if: {{{KosztUlepszenia-10|}}} | {{{KosztUlepszenia-10}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-11|}}} | {{{KosztUlepszenia-11}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-12|}}} | {{{KosztUlepszenia-12}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-13|}}} | {{{KosztUlepszenia-13}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-14|}}} | {{{KosztUlepszenia-14}}} | - }}</td> | ||
+ | <td>{{#if: {{{KosztUlepszenia-15|}}} | {{{KosztUlepszenia-15}}} | - }}</td> | ||
+ | }} | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Ulepszacz 1 --> | ||
+ | {{#ifexpr: {{{MaxIlośćUlepszaczy|}}} >= 1 | | ||
+ | <tr> | ||
+ | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;">Potrzebny materiał 1</th> | ||
+ | <td>{{#if: {{{Ulepszacz-1-0|}}} | {{{Ulepszacz-1-0}}} | - }}</td> | ||
+ | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | ||
+ | <td>{{#if: {{{Ulepszacz-1-1|}}} | {{{Ulepszacz-1-1}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-2|}}} | {{{Ulepszacz-1-2}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-3|}}} | {{{Ulepszacz-1-3}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-4|}}} | {{{Ulepszacz-1-4}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-5|}}} | {{{Ulepszacz-1-5}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-6|}}} | {{{Ulepszacz-1-6}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-7|}}} | {{{Ulepszacz-1-7}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-8|}}} | {{{Ulepszacz-1-8}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-9|}}} | {{{Ulepszacz-1-9}}} | - }}</td> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <td>{{#if: {{{Ulepszacz-1-10|}}} | {{{Ulepszacz-1-10}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-11|}}} | {{{Ulepszacz-1-11}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-12|}}} | {{{Ulepszacz-1-12}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-13|}}} | {{{Ulepszacz-1-13}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-14|}}} | {{{Ulepszacz-1-14}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-1-15|}}} | {{{Ulepszacz-1-15}}} | - }}</td> | ||
+ | }} | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Ulepszacz 2 --> | ||
+ | {{#ifexpr: {{{MaxIlośćUlepszaczy|}}} >= 2 | | ||
+ | <tr> | ||
+ | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;">Potrzebny materiał 2</th> | ||
+ | <td>{{#if: {{{Ulepszacz-2-0|}}} | {{{Ulepszacz-2-0}}} | - }}</td> | ||
+ | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | ||
+ | <td>{{#if: {{{Ulepszacz-2-1|}}} | {{{Ulepszacz-2-1}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-2|}}} | {{{Ulepszacz-2-2}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-3|}}} | {{{Ulepszacz-2-3}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-4|}}} | {{{Ulepszacz-2-4}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-5|}}} | {{{Ulepszacz-2-5}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-6|}}} | {{{Ulepszacz-2-6}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-7|}}} | {{{Ulepszacz-2-7}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-8|}}} | {{{Ulepszacz-2-8}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-9|}}} | {{{Ulepszacz-2-9}}} | - }}</td> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <td>{{#if: {{{Ulepszacz-2-10|}}} | {{{Ulepszacz-2-10}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-11|}}} | {{{Ulepszacz-2-11}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-12|}}} | {{{Ulepszacz-2-12}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-13|}}} | {{{Ulepszacz-2-13}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-14|}}} | {{{Ulepszacz-2-14}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-2-15|}}} | {{{Ulepszacz-2-15}}} | - }}</td> | ||
+ | }} | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Ulepszacz 3 --> | ||
+ | {{#ifexpr: {{{MaxIlośćUlepszaczy|}}} >= 3 | | ||
+ | <tr> | ||
+ | <th scope="row" style="{{#var: th }} position: sticky; left: 0px; z-index: 1;">Potrzebny materiał 3</th> | ||
+ | <td>{{#if: {{{Ulepszacz-3-0|}}} | {{{Ulepszacz-3-0}}} | - }}</td> | ||
+ | {{#ifexpr: {{{MaxUlepszenie|}}} >= 9 | | ||
+ | <td>{{#if: {{{Ulepszacz-3-1|}}} | {{{Ulepszacz-3-1}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-2|}}} | {{{Ulepszacz-3-2}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-3|}}} | {{{Ulepszacz-3-3}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-4|}}} | {{{Ulepszacz-3-4}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-5|}}} | {{{Ulepszacz-3-5}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-6|}}} | {{{Ulepszacz-3-6}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-7|}}} | {{{Ulepszacz-3-7}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-8|}}} | {{{Ulepszacz-3-8}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-9|}}} | {{{Ulepszacz-3-9}}} | - }}</td> | ||
+ | {{#ifeq: {{{MaxUlepszenie|}}} | 15 | | ||
+ | <td>{{#if: {{{Ulepszacz-3-10|}}} | {{{Ulepszacz-3-10}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-11|}}} | {{{Ulepszacz-3-11}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-12|}}} | {{{Ulepszacz-3-12}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-13|}}} | {{{Ulepszacz-3-13}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-14|}}} | {{{Ulepszacz-3-14}}} | - }}</td> | ||
+ | <td>{{#if: {{{Ulepszacz-3-15|}}} | {{{Ulepszacz-3-15}}} | - }}</td> | ||
+ | }} | ||
}} | }} | ||
</tr> | </tr> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
+ | |||
</table></includeonly><noinclude> | </table></includeonly><noinclude> | ||
[[Kategoria:Szablon]] | [[Kategoria:Szablon]] | ||
[[Kategoria:Szablon/Layout]] | [[Kategoria:Szablon/Layout]] | ||
</noinclude> | </noinclude> |
Aktualna wersja na dzień 08:26, 20 kwi 2020