Версия 11:50, 23 декабря 2014 | | Версия 12:56, 23 декабря 2014 |
Строка 11: | | Строка 11: |
| <th class="price">Цена<br><span class="measure">(кред.)</span></th> | | | <th class="price">Цена<br><span class="measure">(кред.)</span></th> |
| </tr> | | | </tr> |
? | {{#vardefine: shell | {{#combatchars:gun:{{{1}}}|shell{{{i}}} }} }} | | + | {{#combatchars:gun:{{{1}}} }} |
| | + | {{ #vardefine: nn | {{#expr: 2 + {{#if: {{#combatattr:shell2}} | 1 | 0 }} + {{#if: {{#combatattr:shell3}} | 1 | 0 }} }} }} |
| | + | {{ #vardefine: ii | 1 }}{{ |
| | + | #while: | {{ #ifexpr: {{ #var: ii }} < {{ #var: nn }} | true }} |
| | + | |<nowiki/> |
| | + | {{#vardefine: shell | {{#combatchars:gun:{{{1}}}|shell{{ #var: ii }} }} }} |
| {{#combatchars:shell:{{#var:shell}} }} | | | {{#combatchars:shell:{{#var:shell}} }} |
| <tr> | | | <tr> |
Строка 17: | | Строка 22: |
| <td>{{#wotstr:{{#combatattr:mark}} | {{#combatattr:mark}} }}</td> | | | <td>{{#wotstr:{{#combatattr:mark}} | {{#combatattr:mark}} }}</td> |
| <td>{{#combatattr:caliber}}</td> | | | <td>{{#combatattr:caliber}}</td> |
? | <td>{{#combatchars:gun:{{{1}}}|penetration{{{i}}} }}</td> | | + | <td>{{#combatchars:gun:{{{1}}}|penetration{{ #var: ii }} }}</td> |
| <td>{{#combatchars:shell:{{#var:shell}}|damage }}</td> | | | <td>{{#combatchars:shell:{{#var:shell}}|damage }}</td> |
| <td>{{#combatattr:explosionRadius|—}}</td> | | | <td>{{#combatattr:explosionRadius|—}}</td> |
| <td> </td> | | | <td> </td> |
| <td>{{#combatattr:price|0}} {{#ifexpr: {{#combatattr:gold|0}} = 1| {{Золото}} | {{Кредиты}} }}</td> | | | <td>{{#combatattr:price|0}} {{#ifexpr: {{#combatattr:gold|0}} = 1| {{Золото}} | {{Кредиты}} }}</td> |
? | </tr> | | + | </tr> |
| | + | {{ #vardefine: ii | {{ #expr: {{ #var: ii }} + 1 }} }} |
| | + | }} |
| </table> | | | </table> |
| </includeonly> | | | </includeonly> |