Шаблон:Specs-Economy — различия между версиями
VolgaIgor (обсуждение | вклад) |
VolgaIgor (обсуждение | вклад) |
||
Строка 71: | Строка 71: | ||
<table> | <table> | ||
{{#vardefine: mod_class | {{#switch:{{#unit:{{#var: me }}|тип}}|1=lth|2=mobility|3=seakeeping|4=lth}} }} | {{#vardefine: mod_class | {{#switch:{{#unit:{{#var: me }}|тип}}|1=lth|2=mobility|3=seakeeping|4=lth}} }} | ||
− | {{#vardefine: row | 1 }}{{#while: | + | {{#if: {{#unit:{{#var: me }}|модификации|{{#var: mod_class }}|столбцы}} |
+ | |{{#vardefine: row | 1 }}{{#while: | ||
| {{#ifexpr: 4 >= {{#var: row }} | true }} | | {{#ifexpr: 4 >= {{#var: row }} | true }} | ||
| <tr> | | <tr> | ||
Строка 95: | Строка 96: | ||
}} | }} | ||
</tr>{{#vardefine: row | {{#expr: {{#var: row }} + 1 }} }} | </tr>{{#vardefine: row | {{#expr: {{#var: row }} + 1 }} }} | ||
+ | }} | ||
}} | }} | ||
</table> | </table> | ||
Строка 101: | Строка 103: | ||
<table> | <table> | ||
{{#vardefine: mod_class | {{#switch:{{#unit:{{#var: me }}|тип}}|1=armor|2=protection|3=unsinkability|4=armor}} }} | {{#vardefine: mod_class | {{#switch:{{#unit:{{#var: me }}|тип}}|1=armor|2=protection|3=unsinkability|4=armor}} }} | ||
− | {{#vardefine: row | 1 }}{{#while: | + | {{#if: {{#unit:{{#var: me }}|модификации|{{#var: mod_class }}|столбцы}} |
+ | |{{#vardefine: row | 1 }}{{#while: | ||
| {{#ifexpr: 4 >= {{#var: row }} | true }} | | {{#ifexpr: 4 >= {{#var: row }} | true }} | ||
| <tr> | | <tr> | ||
Строка 125: | Строка 128: | ||
}} | }} | ||
</tr>{{#vardefine: row | {{#expr: {{#var: row }} + 1 }} }} | </tr>{{#vardefine: row | {{#expr: {{#var: row }} + 1 }} }} | ||
+ | }} | ||
}} | }} | ||
</table> | </table> | ||
Строка 131: | Строка 135: | ||
<table> | <table> | ||
{{#vardefine: mod_class | {{#switch:{{#unit:{{#var: me }}|тип}}|1=weapon|2=firepower|3=firepower|4=weapon}} }} | {{#vardefine: mod_class | {{#switch:{{#unit:{{#var: me }}|тип}}|1=weapon|2=firepower|3=firepower|4=weapon}} }} | ||
− | {{#vardefine: row | 1 }}{{#while: | + | {{#if: {{#unit:{{#var: me }}|модификации|{{#var: mod_class }}|столбцы}} |
+ | |{{#vardefine: row | 1 }}{{#while: | ||
| {{#ifexpr: 4 >= {{#var: row }} | true }} | | {{#ifexpr: 4 >= {{#var: row }} | true }} | ||
| <tr> | | <tr> | ||
Строка 155: | Строка 160: | ||
}} | }} | ||
</tr>{{#vardefine: row | {{#expr: {{#var: row }} + 1 }} }} | </tr>{{#vardefine: row | {{#expr: {{#var: row }} + 1 }} }} | ||
+ | }} | ||
}} | }} | ||
</table> | </table> |