Difference between revisions of "Template:Specs-Card"

From War Thunder Wiki
Jump to: navigation, search
m
 
(45 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
     | 1 = {{#vardefine: type | Aviation }}{{#vardefine: typeM | aircraft }}
 
     | 1 = {{#vardefine: type | Aviation }}{{#vardefine: typeM | aircraft }}
 
     | 2 = {{#vardefine: type | Ground vehicles }}{{#vardefine: typeM | ground vehicles }}
 
     | 2 = {{#vardefine: type | Ground vehicles }}{{#vardefine: typeM | ground vehicles }}
| 3 = {{#vardefine: type | Fleet }}{{#vardefine: typeM | ships }}
+
    | 3 = {{#vardefine: type | Fleet }}{{#vardefine: typeM | ships }}
| 4 = {{#vardefine: type | Helicopters }}{{#vardefine: typeM | helicopters }}
+
    | 4 = {{#vardefine: type | Helicopters }}{{#vardefine: typeM | helicopters }}
 
     }}<!--
 
     }}<!--
 
  -->{{#vardefine: country |
 
  -->{{#vardefine: country |
Line 21: Line 21:
 
       | 5 = Fifth
 
       | 5 = Fifth
 
       | 6 = Sixth
 
       | 6 = Sixth
 +
      | 7 = Seventh
 +
      | 8 = Eighth
 
       }}
 
       }}
 
     }}<!--
 
     }}<!--
--><div class="ttx"><!--
+
-->[[Category:{{#var: type }}]][[Category:{{#var: country }} {{#var: typeM }}]][[Category:{{#var: rank }} rank {{#var: typeM }}]]
--><div class="ttx-title"><!--
+
<div class="specs_card_main" data-code="{{#unit: {{#var: me }} | код }}">
-->{{#if: {{{display_name|}}}<!--
+
<div class="specs_card_mobile_info">
   -->|{{DISPLAYTITLE:{{{display_name}}}}}[[Category:Changed visible name]]<!--
+
<div class="general_info_name">{{#if: {{{card_name|}}}
-->}}<!--
+
   |{{{card_name}}}[[Category:Changed name in the card]]
-->{{#if: {{{name|}}}<!--
+
  |{{#unit: {{#var:me}} | псевдоним}}
  -->|{{{name}}}[[Category:Changed name in the card]]<!--
+
}}</div>
  -->|{{#unit: {{#var:me}} | название}}<!--
+
<div class="general_info_neighbors"><!--
-->}}</div><!--
+
-->{{#if: {{#unit: {{#var: me }} | prev }} |<div class="prev">[[{{#unit: {{#unit: {{#var: me }} | prev }} | статья }}|{{#unit: {{#unit: {{#var: me }} | prev }} | псевдоним }}]]</div>}}<!--
--><div class="ttx-image">https://encyclopedia.warthunder.com/images/{{#unit: {{#var:me}} | изображение }}.png<!--
+
-->{{#if: {{#unit: {{#var: me }} | next }} |<div class="next">[[{{#unit: {{#unit: {{#var: me }} | next }} | статья }}|{{#unit: {{#unit: {{#var: me }} | next }} | псевдоним }}]]</div>}}<!--
  -->{{#if: {{{cockpit|}}} |<!--
+
--></div>
      --><div class="ttx-cockpit" data-id="{{{cockpit|}}}"><span>Cockpit</span></div><!--
+
</div>
      -->[[Category:With cockpit]]<!--
+
<div class="specs_card_main_slider">
  -->}}<!--
+
<div class="specs_card_main_slider_container"></div>
--></div><!--
+
<div class="specs_card_main_slider_system"><!--
-->{{#if: {{{store|}}} |<!--
+
-->{{#if: {{#unit: {{#var: me }} | картинка }} |
    --><div class="ttx-buy"><div data-title="https://store.gaijin.net/story.php?id={{{store|}}}&partner=Wiki&partner_val=lc9fhfph" class="ttx-buy-button">DOWNLOAD THE GAME</div></div><!--
+
  <div>{{#unit: {{#var: me }} | картинка }}</div>
    -->[[Category:With buy button]]<!--
+
}}<!--
-->}}<!--
+
-->{{#if: {{{images|}}} |
--><div class="ttx-info"><!--
+
  {{{images|}}}
  --><div class="ttx-flag">[[File:{{#var: country }} flag.png|44px|link=:Category:{{#var: country }} {{#var: typeM }}]]</div><!--
+
}}<!--
  --><span class="ttx-country">[[:Category:{{#var: country }} {{#var: typeM }}|{{#var: country }}]]</span><!--
+
-->{{#if: {{FILEPATH:{{{cockpit|}}}}} |
  --><span class="ttx-rank">[[:Category:{{#var: rank }} rank {{#var: typeM }}|{{#unit: {{#var: me }} | ранг }} Rank]]</span><!--
+
  <div>360://{{#tag:nowiki|{{FILEPATH:{{{cockpit|}}}}}}}</div>
--></div><!--
+
  [[Category:With cockpit]]
--><div class="ttx-switch-mode"><div class="ttx-switch-mode-button" id="ttx-ab-button">AB</div><div class="ttx-switch-mode-button" id="ttx-rb-button">RB</div><div class="ttx-switch-mode-button" id="ttx-sb-button">SB</div></div><!--
+
}}<!--
--><div class="ttx-table"><!--
+
--></div>
--><div class="ttx-table-line ttx-table-head">General characteristics</div><!--
+
</div>
--><div class="ttx-table-line ttx-switch-size"><div id="ttx-short" class="ttx-switch-size-button"><span class="ttx-switch-size-text">Brief</span></div><div id="ttx-detail" class="ttx-switch-size-button"><span class="ttx-switch-size-text">Detailed</span></div></div><!--
+
{{#if: {{{title_name|}}}
--><div class="ttx-table-line"><span class="ttx-sb ttx-value">{{#unit: {{#var: me }} | бр | сб }}</span><span class="ttx-unvisible ttx-value">/</span><span class="ttx-rb ttx-value">{{#unit: {{#var: me }} | бр | рб }}</span><span class="ttx-unvisible ttx-value">/</span><span class="ttx-ab ttx-value">{{#unit: {{#var: me }} | бр | аб }}</span><span class="ttx-name">{{Annotation|BR|Battle ratings}}</span></div><!--
+
  |{{DISPLAYTITLE:{{{title_name}}}}}[[Category:Changed visible name]]
--><div class="ttx-table-line"><span class="ttx-value"><!--
+
}}
-->[[Category:{{#var: type }}]]<!--
+
<div class="specs_card_main_info">
-->[[Category:{{#var: country }} {{#var: typeM }}]]<!--
+
<div class="general_info_name">{{#if: {{{card_name|}}}
-->[[Category:{{#var: rank }} rank {{#var: typeM }}]]<!--
+
  |{{{card_name}}}
-->{{#vardefine: i | 1 }}<!--
+
  |{{#unit: {{#var:me}} | псевдоним}}
  -->{{#while:
+
}}</div>
      |{{#if: {{#unit: {{#var: me }} | класс | {{#var: i }} }} | true }}
+
<div class="general_info_neighbors"><!--
      |{{#ifexpr: {{#var: i }} != 1 |<br>}}<!--
+
-->{{#if: {{#unit: {{#var: me }} | prev }} |<div class="prev">[[{{#unit: {{#unit: {{#var: me }} | prev }} | статья }}|{{#unit: {{#unit: {{#var: me }} | prev }} | псевдоним }}]]</div>}}<!--
    -->{{#switch: {{#unit: {{#var: me }} | класс | {{#var: i }} | код }}
+
-->{{#if: {{#unit: {{#var: me }} | next }} |<div class="next">[[{{#unit: {{#unit: {{#var: me }} | next }} | статья }}|{{#unit: {{#unit: {{#var: me }} | next }} | псевдоним }}]]</div>}}<!--
 +
--></div>
 +
<div class="general_info">
 +
<div class="general_info_nation">[[File:{{#var: country }} flag.png|45px|link=:Category:{{#var: country }} {{#var: typeM }}]] [[:Category:{{#var: country }} {{#var: typeM }}|{{#var: country }}]]</div>
 +
<div class="general_info_rank">[[:Category:{{#var: rank }} rank {{#var: typeM }}|{{#unit: {{#var: me }} | ранг }} Rank]]</div>
 +
</div>
 +
<div class="general_info_2">
 +
<div class="general_info_br"><div class="desc">[[Battle ratings|Battle rating]]:</div>
 +
<table rules="all"><tr>
 +
<td>[[Arcade Battles|AB]]</td>
 +
<td>[[Realistic Battles|RB]]</td>
 +
<td>[[Simulator Battles|SB]]</td></tr>
 +
<tr>
 +
<td>{{#unit: {{#var: me }} | бр | аб }}</td>
 +
<td>{{#unit: {{#var: me }} | бр | рб }}</td>
 +
<td>{{#unit: {{#var: me }} | бр | сб }}</td>
 +
</tr></table>
 +
</div>
 +
 
 +
<div class="general_info_class"><span class="desc">Class:</span><!--
 +
-->{{#ifeq: {{#unit: {{#var: me }} | премиумная }} | 1
 +
  |<div class="premium">[[:Category:Premium {{#var: typeM }}|PREMIUM]]</div>
 +
  [[Category:Premium {{#var: typeM }}]]
 +
}}<!--
 +
-->{{#ifeq: {{#unit: {{#var: me }} | полковая }} | 1
 +
  |<div class="squadron">[[:Category:Squadron {{#var: typeM }}|SQUADRON]]</div>
 +
  [[Category:Squadron {{#var: typeM }}]]
 +
}}<!--
 +
-->{{#vardefine: i | 1 }}
 +
{{#while:
 +
  |{{#if: {{#unit: {{#var: me }} | класс | {{#var: i }} }} | true }}
 +
    |<div>{{#switch: {{#unit: {{#var: me }} | класс | {{#var: i }} | код }}
 
         | type_missile_tank = [[:Category:ATGM vehicles|ATGM vehicle]][[Category:ATGM vehicles]]
 
         | type_missile_tank = [[:Category:ATGM vehicles|ATGM vehicle]][[Category:ATGM vehicles]]
 
         | type_spaa = [[:Category:Anti-aircraft vehicles|SPAA]][[Category:Anti-aircraft vehicles]]
 
         | type_spaa = [[:Category:Anti-aircraft vehicles|SPAA]][[Category:Anti-aircraft vehicles]]
Line 78: Line 111:
 
         | type_strike_fighter = [[:Category:Strike fighters|Strike fighter]][[Category:Strike fighters]]
 
         | type_strike_fighter = [[:Category:Strike fighters|Strike fighter]][[Category:Strike fighters]]
 
         | type_torpedo = [[:Category:Torpedo bombers|Torpedo bomber]][[Category:Torpedo bombers]]
 
         | type_torpedo = [[:Category:Torpedo bombers|Torpedo bomber]][[Category:Torpedo bombers]]
         | type_assault = [[:Category:Attackers|Attacker]][[Category:Attackers]]
+
         | type_assault = [[:Category:Strike aircraft|Strike aircraft]][[Category:Strike aircraft]]
 +
        | type_naval_aircraft = [[:Category:Naval aircraft|Naval aircraft]][[Category:Naval aircraft]]
 
         | type_biplane = [[:Category:Biplanes|Biplane]][[Category:Biplanes]]
 
         | type_biplane = [[:Category:Biplanes|Biplane]][[Category:Biplanes]]
 
         | type_jet_fighter = [[:Category:Jet fighters|Jet fighter]][[Category:Jet fighters]]
 
         | type_jet_fighter = [[:Category:Jet fighters|Jet fighter]][[Category:Jet fighters]]
Line 89: Line 123:
 
         | type_hydroplane = [[:Category:Hydroplanes|Hydroplane]][[Category:Hydroplanes]]
 
         | type_hydroplane = [[:Category:Hydroplanes|Hydroplane]][[Category:Hydroplanes]]
 
         | type_flying_boat = [[:Category:Flying boats|Flying boat]][[Category:Flying boats]]
 
         | type_flying_boat = [[:Category:Flying boats|Flying boat]][[Category:Flying boats]]
| type_attack_helicopter = [[:Category:Attack helicopters|Attack helicopter]][[Category:Attack helicopters]]
+
        | type_attack_helicopter = [[:Category:Attack helicopters|Attack helicopter]][[Category:Attack helicopters]]
| type_boat = [[:Category:Boats|Boat]][[Category:Boats]]
+
        | type_boat = [[:Category:Boats|Boat]][[Category:Boats]]
| type_missile_boat = [[:Category:Fast attack crafts|Fast attack craft]][[Category:Fast attack crafts]]
+
        | type_missile_boat = [[:Category:Fast attack crafts|Fast attack craft]][[Category:Fast attack crafts]]
| type_heavy_boat = [[:Category:Heavy boats|Heavy boat]][[Category:Heavy boats]]
+
        | type_heavy_boat = [[:Category:Heavy boats|Heavy boat]][[Category:Heavy boats]]
| type_gun_boat = [[:Category:Motor gun boats|Motor gun boat]][[Category:Motor gun boats]]
+
        | type_gun_boat = [[:Category:Motor gun boats|Motor gun boat]][[Category:Motor gun boats]]
| type_torpedo_boat = [[:Category:Motor torpedo boats|Motor torpedo boat]][[Category:Motor torpedo boats]]
+
        | type_torpedo_boat = [[:Category:Motor torpedo boats|Motor torpedo boat]][[Category:Motor torpedo boats]]
| type_small_submarine_chaser = [[:Category:Small sub-chasers|Small sub-chaser]][[Category:Small sub-chasers]]
+
        | type_small_submarine_chaser = [[:Category:Small sub-chasers|Small sub-chaser]][[Category:Small sub-chasers]]
| type_submarine_chaser = [[:Category:Sub-chasers|Sub-chaser]][[Category:Sub-chasers]]
+
        | type_submarine_chaser = [[:Category:Sub-chasers|Sub-chaser]][[Category:Sub-chasers]]
| type_armored_submarine_chaser = [[:Category:Armored sub-chasers|Armored sub-chaser]][[Category:Armored sub-chasers]]
+
        | type_armored_submarine_chaser = [[:Category:Armored sub-chasers|Armored sub-chaser]][[Category:Armored sub-chasers]]
| type_armored_boat = [[:Category:Armored gun boats|Armored gun boat]][[Category:Armored gun boats]]
+
        | type_armored_boat = [[:Category:Armored gun boats|Armored gun boat]][[Category:Armored gun boats]]
| type_hydrofoil_torpedo_boat = [[:Category:Hydrofoil torpedo boats|Hydrofoil torpedo boat]][[Category:Hydrofoil torpedo boats]]
+
        | type_hydrofoil_torpedo_boat = [[:Category:Hydrofoil torpedo boats|Hydrofoil torpedo boat]][[Category:Hydrofoil torpedo boats]]
| type_destroyer = [[:Category:Destroyers|Destroyer]][[Category:Destroyers]]
+
        | type_destroyer = [[:Category:Destroyers|Destroyer]][[Category:Destroyers]]
| type_light_cruiser = [[:Category:Light cruisers|Light cruiser]][[Category:Light cruisers]]
+
        | type_light_cruiser = [[:Category:Light cruisers|Light cruiser]][[Category:Light cruisers]]
| type_barge = [[:Category:Barges|Barge]][[Category:Barges]]
+
        | type_heavy_cruiser = [[:Category:Heavy cruisers|Heavy cruiser]][[Category:Heavy cruisers]]
| type_naval_aa_ferry = [[:Category:Anti-air ferrys|Anti-air ferry]][[Category:Anti-air ferrys]]
+
        | type_barge = [[:Category:Barges|Barge]][[Category:Barges]]
| type_naval_ferry_barge = [[:Category:Naval ferry barges|Naval ferry barge]][[Category:Naval ferry barges]]
+
        | type_naval_aa_ferry = [[:Category:Anti-air ferrys|Anti-air ferry]][[Category:Anti-air ferrys]]
| type_minesweeper = [[:Category:Minesweepers|Minesweeper]][[Category:Minesweepers]]
+
        | type_naval_ferry_barge = [[:Category:Naval ferry barges|Naval ferry barge]][[Category:Naval ferry barges]]
| type_minelayer = [[:Category:Minelayers|Minelayer]][[Category:Minelayers]]
+
        | type_minesweeper = [[:Category:Minesweepers|Minesweeper]][[Category:Minesweepers]]
| type_torpedo_gun_boat = [[:Category:Motor torpedo gun boats|Motor torpedo gun boat]][[Category:Motor torpedo gun boats]]
+
        | type_minelayer = [[:Category:Minelayers|Minelayer]][[Category:Minelayers]]
| type_heavy_gun_boat = [[:Category:Gunboats|Gunboat]][[Category:Gunboats]]
+
        | type_frigate = [[:Category:Frigates|Frigate]][[Category:Frigates]]
| type_utility_helicopter = [[:Category:Utility helicopters|Utility helicopter]][[Category:Utility helicopters]]
+
        | type_torpedo_gun_boat = [[:Category:Motor torpedo gun boats|Motor torpedo gun boat]][[Category:Motor torpedo gun boats]]
         | #default = [[Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}]][[:Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}|{{#unit: {{#var: me }} | класс | {{#var: i }} }}]]
+
        | type_heavy_gun_boat = [[:Category:Gunboats|Gunboat]][[Category:Gunboats]]
  }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!--
+
        | type_battleship = [[:Category:Battleships|Battleship]][[Category:Battleships]]
  -->}}</span><span class="ttx-name">Class</span></div><!--
+
         | type_battlecruiser = [[:Category:Battlecruisers|Battlecruiser]][[Category:Battlecruisers]]
--><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | экипаж }} {{#ifexpr: {{#unit: {{#var: me }} | экипаж }} = 1 | person | people }}</span><span class="ttx-name">Crew</span></div><!--
+
        | type_utility_helicopter = [[:Category:Utility helicopters|Utility helicopter]][[Category:Utility helicopters]]
-->{{#switch: {{#var: type }}
+
    | type_strike_ucav = [[:Category:UCAV|Strike UCAV]][[Category:UCAV]]
    |Aviation=<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} t</span><span class="ttx-name">Empty weight</span></div><!--
+
  }}</div>{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | полный }} t</span><span class="ttx-name">Take-off weight</span></div><!--
+
}}
  --><div class="ttx-table-line ttx-table-head">Flight characteristics</div><!--
+
</div>
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | потолок }} m</span><span class="ttx-name">Ceiling</span></div><!--
+
</div>
   --><div class="ttx-table-line"><span class="ttx-value">sec</span><span class="ttx-sb ttx-value">{{#unit: {{#var: me }} | вираж | сб }}</span><span class="ttx-unvisible ttx-value">/</span><span class="ttx-rb ttx-value">{{#unit: {{#var: me }} | вираж | рб }}</span><span class="ttx-unvisible ttx-value">/</span><span class="ttx-ab ttx-value">{{#unit: {{#var: me }} | вираж | аб }}</span><span class="ttx-name">Turn Time</span></div><!--
+
<div class="general_info_price">
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value">{{#unit: {{#var: me }} | сваливание }} km/h</span><span class="ttx-name">Stalling speed</span></div><!--
+
{{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0<!--
  --><div class="ttx-table-line"><span class="ttx-value">{{#ifexpr: {{#unit: {{#var: me }} | двигатель | количество }} > 1|{{#unit: {{#var: me }} | двигатель | количество }} х&#32;}}{{#unit: {{#var: me }} | двигатель | название }}</span><span class="ttx-name">Engine</span></div><!--
+
-->|<!--
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | двигатель | тип }}</span><span class="ttx-name-indent">Type</span></div><!--
+
   -->{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | S<!--
  --><div class="ttx-table-line"><span class="ttx-value"><!--
+
    -->|<!--
  -->{{#switch: {{#unit:{{#var: me }}| двигатель | сод }}
+
      --><div class="general_info_price_research"><!--
      | w = water
+
      --><span class="desc">Research:</span><!--
  | a = air
+
      --><span class="value"><!--
  }}</span><span class="ttx-name-indent">Cooling system</span></div><!--
+
      -->{{#ifeq: {{#unit: {{#var: me }} | исследование }} | 0<!--
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value"></span><span class="ttx-name">Speed of destruction</span></div><!--
+
        -->|Free<!--
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value">{{#unit: {{#var: me }} | разрушение | конструкции }} km/h</span><span class="ttx-name-indent">Structural</span></div><!--
+
        -->|{{#unit:{{#var:me}} |исследование | format=1 }} <!--
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value">{{#unit: {{#var: me }} | разрушение | шасси }} km/h</span><span class="ttx-name-indent">Gear</span></div><!--
+
          -->{{#ifeq: {{#unit: {{#var: me }} | полковая }} | 0<!--
  -->{{#if: {{#unit: {{#var: me }} | курсовое | 1 }}
+
          -->|[[File:Specs-Card-Exp.png|14px|link=Research Points]]<!--
      |<div class="ttx-table-line ttx-table-head">Offensive armament</div><!--
+
          -->|[[File:Specs-Card-Activity.png|23px|link=Research Points]]<!--
    -->{{#vardefine:i|1}}<!--
+
          -->}}<!--
    -->{{#while:
 
    |{{#if: {{#unit: {{#var: me }} | курсовое | {{#var: i }} }} | true }}
 
|<div class="ttx-table-line"><span class="ttx-value"><!--
 
      -->{{#ifexpr: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} > 1
 
  | {{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} х&#32;<!--
 
 
       -->}}<!--
 
       -->}}<!--
       -->{{#if: {{#weapon: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | код }} | статья }}
+
       --></span></div><!--
      | [[{{#weapon: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | код }} | статья }}|{{#unit: {{#var: me }} | курсовое | {{#var: i }} | название }}]] <!--
+
      --><div class="general_info_price_buy"><!--
        -->| {{#unit: {{#var: me }} | курсовое | {{#var: i }} | название }}<!--
+
      --><span class="desc">Purchase:</span><!--
 +
      --><span class="value"><!--
 +
      -->{{#ifeq: {{#unit: {{#var: me }} | цена }} | 0<!--
 +
      -->|Free<!--
 +
      -->|{{#unit: {{#var: me }} | цена | format=1 }} [[File:Specs-Card-Lion.png|link=Silver Lions]]<!--
 
       -->}}<!--
 
       -->}}<!--
      --></span><span class="ttx-name">Weapon {{#var: i }}</span></div><!--
+
       --></span></div><!--
      --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | боезапас }} bullets</span><span class="ttx-name-indent">Ammunition</span></div><!--
+
     -->|<!--
  --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!--
+
      --><div class="general_info_price_buy"><!--
      -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
+
       --><span class="desc">Purchase:</span><!--
  }}
+
      --><span class="value">{{#unit: {{#var: me }} | цена | format=1 }} [[File:Specs-Card-Eagle.png|link=Golden Eagles]]</span><!--
}}<!--
+
       --></div>
  -->{{#if: {{#unit: {{#var: me }} | оборонительное | 1 }}
 
      |<div class="ttx-table-line ttx-table-head">Defensive armament</div><!--
 
  -->{{#vardefine: i | 1 }}<!--
 
  -->{{#while:
 
      |{{#if: {{#unit: {{#var: me }} | оборонительное | {{#var: i }} }} | true }}
 
  |<div class="ttx-table-line"><span class="ttx-value"><!--
 
      -->{{#ifexpr: {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | орудия }} > 1
 
  | {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | орудия }} х&#32;<!--
 
      -->}}<!--
 
      -->{{#if: {{#weapon: {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | код }} | статья }}
 
      | [[{{#weapon: {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | код }} | статья }}|{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | название }}]] <!--
 
        -->| {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | название }}<!--
 
       -->}}<!--
 
      --></span><span class="ttx-name">{{#ifexpr: {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | количество }} > 1 |{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | количество }} х&#32; }}Turret</span></div><!--
 
    --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | боезапас }} bullets</span><span class="ttx-name-indent">Ammunition</span></div><!--
 
    --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!--
 
    -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!--
 
  -->}}<!--
 
  -->}}<!--
 
  -->{{#if: {{#unit: {{#var: me }} | подвесное | 1 }}
 
      |<div class="ttx-table-line ttx-table-head">Suspended armament</div><!--
 
     -->{{#vardefine: j | 1 }}<!--
 
    -->{{#while:
 
    |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} }} | true }}
 
|<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | количество }} х {{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | название }}<!--
 
      -->{{#vardefine: i | 2 }}<!--
 
      -->{{#while:
 
          |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} }} | true }}
 
          |<br>{{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | количество }} х {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | название }}<!--
 
       -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
 
      -->}}</span><span class="ttx-name">Setup {{#var: j }}</span></div><!--
 
      -->{{#vardefine: j | {{#expr: {{#var: j }} + 1 }}}}<!--
 
    -->}}<!--
 
  -->}}
 
    |Ground vehicles=<div class="ttx-table-line ttx-table-head">Mobility</div><!--
 
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес }} t</span><span class="ttx-name">Weight</span></div><!--
 
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | передачи | вперед }} forward<br>{{#unit: {{#var: me }} | передачи | назад }} back</span><span class="ttx-name">Gear box</span></div><!--
 
  --><div class="ttx-table-line ttx-table-head">Armament</div><!--
 
  -->{{#vardefine: i | 1 }}<!--
 
  -->{{#while:
 
      |{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} }} | true }}
 
      |<div class="ttx-table-line"><span class="ttx-value"><!--
 
    -->{{#ifexpr: {{#unit: {{#var: me }} | орудие | {{#var: i }} | количество }} > 1
 
    |{{#unit: {{#var: me }} | орудие | {{#var: i }} | количество }} х&#32;<!--
 
    -->}}<!--
 
    -->{{#if: {{#weapon: {{#unit: {{#var: me }} | орудие | {{#var: i }} | код }} | статья }}
 
    | [[{{#weapon: {{#unit: {{#var: me }} | орудие | {{#var: i }} | код }} | статья }}|{{#unit: {{#var: me }} | орудие | {{#var: i }} | название }}]] <!--
 
      -->| {{#unit: {{#var: me }} | орудие | {{#var: i }} | название }}<!--
 
    -->}}<!--
 
    --></span><span class="ttx-name">Weapon {{#var: i }}</span></div><!--
 
    --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | боезапас }} shells</span><span class="ttx-name-indent">Ammunition</span></div><!--
 
    -->{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} | обойма }}
 
        |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | обойма }} shells</span><span class="ttx-name-indent">Belt capacity</span></div><!--
 
      --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!--
 
    -->}}<!--
 
    -->{{#ifexpr:( {{#unit: {{#var: me }} | орудие | {{#var: i }} | увн | мин }} != {{#unit: {{#var: me }} | орудие | {{#var: i }} | увн | макс }} ) and ( {{#unit: {{#var: me }} | орудие | {{#var: i }} | калибр }} > 12 )
 
        |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | увн | мин }}° / {{#unit: {{#var: me }} | орудие | {{#var: i }} | увн | макс }}°</span><span class="ttx-name-indent">Vertical guidance</span></div><!--
 
    -->}}<!--
 
    -->{{#ifexpr: ( {{#unit: {{#var: me }} | орудие | {{#var: i }} | угн | макс }} != 180 ) and ( {{#unit: {{#var: me }} | орудие | {{#var: i }} | угн | макс }} != 0 ) and ( {{#unit: {{#var: me }} | орудие | {{#var: i }} | калибр }} > 12 ) and ( {{#unit: {{#var: me }} | орудие | {{#var: i }} | количество }} = 1 )
 
        |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | угн | мин }}° / {{#unit: {{#var: me }} | орудие | {{#var: i }} | угн | макс }}°</span><span class="ttx-name-indent">Horizontal guidance</span></div><!--
 
    -->}}<!--
 
    -->{{#switch: {{#unit: {{#var: me }} | орудие | {{#var: i }} | стабилизатор }}
 
        |double = <div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">two-plane</span><span class="ttx-name-indent">Stabilizer</span></div>
 
        |vertical = <div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">vertical</span><span class="ttx-name-indent">Stabilizer</span></div>
 
      }}<!--
 
    -->{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} | скорость }}
 
        |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | скорость }} m/s</span><span class="ttx-name-indent">Flight speed</span></div><!--
 
      --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | дальность }} m</span><span class="ttx-name-indent">Range</span></div><!--
 
    -->}}<!--
 
    -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
 
  -->}}
 
    |Fleet=<div class="ttx-table-line ttx-table-head">Standard armament</div><!--
 
  -->{{#vardefine: i | 1 }}<!--
 
  -->{{#while:
 
      |{{#if: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} }} | true }}
 
      |<div class="ttx-table-line"><span class="ttx-value"><!--
 
    -->{{#ifexpr: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | орудия }} > 1
 
    |{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | орудия }} x&#32;<!--
 
    -->}}<!--
 
    -->{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | название }}</span><span class="ttx-name"><!--
 
    -->{{#ifexpr: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | количество }} > 1
 
    |{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | количество }} x&#32;<!--
 
    -->}}<!--
 
    -->{{#switch: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | тип }}
 
        | primary = Primary
 
| secondary = Secondary
 
| machinegun = Anti-aircraft
 
        | torpedoes = Torpedo
 
        | #default = Turret
 
        }}<!--
 
    --></span></div><!--
 
    --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | боезапас }} shells</span><span class="ttx-name-indent">Ammunition</span></div><!--
 
    -->{{#if: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | обойма }}
 
        |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | обойма }} shells</span><span class="ttx-name-indent">Belt capacity</span></div><!--
 
      --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!--
 
    -->}}<!--
 
    -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
 
  -->}}<!--
 
  -->{{#if: {{#unit: {{#var: me }} | допорудие | 1 }}
 
      |<div class="ttx-table-line ttx-table-head">Additional armament</div><!--
 
    -->{{#vardefine: j | 1 }}<!--
 
    -->{{#while:
 
    |{{#if: {{#unit: {{#var: me }} | допорудие | {{#var: j }} }} | true }}
 
|<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | допорудие | {{#var: j }} | 1 | боезапас }} x {{#unit: {{#var: me }} | допорудие | {{#var: j }} | 1 | название }}<!--
 
      -->{{#vardefine: i | 2 }}<!--
 
      -->{{#while:
 
          |{{#if: {{#unit: {{#var: me }} | допорудие | {{#var: j }} | {{#var: i }} }} | true }}
 
          |<br>{{#unit: {{#var: me }} | допорудие | {{#var: j }} | {{#var: i }} | боезапас }} x {{#unit: {{#var: me }} | допорудие | {{#var: j }} | {{#var: i }} | название }}<!--
 
      -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
 
      -->}}</span><span class="ttx-name">Setup {{#var: j }}</span></div><!--
 
      -->{{#vardefine: j | {{#expr: {{#var: j }} + 1 }}}}<!--
 
    -->}}<!--
 
  -->}}
 
  |Helicopters=<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} t</span><span class="ttx-name">Empty weight</span></div><!--
 
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | полный }} t</span><span class="ttx-name">Take-off weight</span></div><!--
 
  --><div class="ttx-table-line ttx-table-head">Flight characteristics</div><!--
 
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | потолок }} m</span><span class="ttx-name">Ceiling</span></div><!--
 
  --><div class="ttx-table-line"><span class="ttx-value">{{#ifexpr: {{#unit: {{#var: me }} | двигатель | количество }} > 1|{{#unit: {{#var: me }} | двигатель | количество }} х&#32;}}{{#unit: {{#var: me }} | двигатель | название }}</span><span class="ttx-name">Engine</span></div><!--
 
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value"></span><span class="ttx-name">Speed of destruction</span></div><!--
 
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value">{{#unit: {{#var: me }} | разрушение | конструкции }} km/h</span><span class="ttx-name-indent">Structural</span></div><!--
 
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value">{{#unit: {{#var: me }} | разрушение | шасси }} km/h</span><span class="ttx-name-indent">Gear</span></div><!--
 
  -->{{#if: {{#unit: {{#var: me }} | курсовое | 1 }}
 
      |<div class="ttx-table-line ttx-table-head">Offensive armament</div><!--
 
    -->{{#vardefine:i|1}}<!--
 
    -->{{#while:
 
    |{{#if: {{#unit: {{#var: me }} | курсовое | {{#var: i }} }} | true }}
 
|<div class="ttx-table-line"><span class="ttx-value"><!--
 
      -->{{#ifexpr: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} > 1
 
  | {{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} x&#32;<!--
 
      -->}}<!--
 
      -->{{#if: {{#weapon: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | код }} | статья }}
 
      | [[{{#weapon: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | код }} | статья }}|{{#unit: {{#var: me }} | курсовое | {{#var: i }} | название }}]] <!--
 
        -->| {{#unit: {{#var: me }} | курсовое | {{#var: i }} | название }}<!--
 
      -->}}<!--
 
      --></span><span class="ttx-name">Weapon {{#var: i }}</span></div><!--
 
      --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | боезапас }} bullets</span><span class="ttx-name-indent">Ammunition</span></div><!--
 
  --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!--
 
      -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
 
  }}
 
}}<!--
 
  -->{{#if: {{#unit: {{#var: me }} | подвесное | 1 }}
 
      |<div class="ttx-table-line ttx-table-head">Suspended armament</div><!--
 
    -->{{#vardefine: j | 1 }}<!--
 
    -->{{#while:
 
    |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} }} | true }}
 
|<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | количество }} x {{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | название }}<!--
 
      -->{{#vardefine: i | 2 }}<!--
 
      -->{{#while:
 
          |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} }} | true }}
 
          |<br>{{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | количество }} x {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | название }}<!--
 
       -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
 
      -->}}</span><span class="ttx-name">Setup {{#var: j }}</span></div><!--
 
      -->{{#vardefine: j | {{#expr: {{#var: j }} + 1 }}}}<!--
 
    -->}}<!--
 
  -->}}
 
 
     }}<!--
 
     }}<!--
--><div class="ttx-table-line ttx-table-head">Economy</div><!--
+
-->|<!--
--> {{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0
+
    --><div class="general_info_price_buy" style="width:100%;"><!--
      |{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | S
+
    --><span class="desc">Purchase:</span><!--
        |<div class="ttx-table-line"><span class="ttx-value"><!--
+
    --><span class="value small">[[:Category:Gift {{#var: typeM }}|Bundle or Gift]]</span><!--
      -->{{#ifeq: {{#unit: {{#var: me }} | исследование | значение }} | 0
+
    --></div><!--
          |free
+
    -->[[Category:Gift {{#var: typeM }}]]
          |{{#unit:{{#var:me}}|исследование}} {{Rp}}<!--
+
}}
      -->}}</span><span class="ttx-name">Research</span></div><!--
+
</div>
      --><div class="ttx-table-line"><span class="ttx-value"><!--
+
<div class="general_info_buttons">
      -->{{#ifeq: {{#unit: {{#var: me }} | цена | значение }} | 0
+
<div class="general_info_buttons_container">
      |free
+
<!--<div class="general_info_compare_button" title="Сравнить"><span>Добавить в сравнение</span></div>-->
|{{#unit: {{#var: me }} | цена }} {{Sl}}
+
<div class="general_info_game_button" title="Show in game"><span>Show in game</span></div><!--
}}</span><span class="ttx-name">Purchase</span></div>
+
-->{{#if: {{{store|}}} |
        |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | цена }} {{Ge}}</span><span class="ttx-name">Purchase</span></div><!--
+
    __NOBANNER__
      -->[[Category:Premium {{#var: typeM }}]]<!--
+
    <div title="Buy" data-link="{{{store|}}}" class="general_info_buy_button"><span>STORE</span></div>
    -->}}
+
    [[Category:With buy button]]
    |<div class="ttx-table-line"><span class="ttx-value">[[:Category:Gift {{#var: typeM }}|Bundle or Gift]]</span><span class="ttx-name">Purchase</span></div><!--
+
}}<!--
  -->[[Category:Gift {{#var: typeM }}]]<!--
+
-->{{#if: {{{market|}}} |
  -->{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | Z | [[Category:Premium {{#var: typeM }}]]}}
+
    __NOBANNER__
    }}<!--
+
    <div title="Buy" data-link="{{{market|}}}" class="general_info_market_button"><span>MARKET</span></div>
--><div class="ttx-table-line"><!--
+
    [[Category:With marketplace button]]
  -->{{#ifeq:{{#unit: {{#var: me }} | ремонт | рб | макс | значение }} | 0
+
}}<!--
      |<span class="ttx-value">free</span>
+
--></div>
  |<span class="ttx-value">{{Sl}}</span><span class="ttx-sb ttx-value">{{#ifexpr: ( {{#unit: {{#var: me }} | ремонт | сб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | сб | макс | значение }} ) |{{Annotation|{{#unit: {{#var: me }} | ремонт | сб | мин }} / {{#unit: {{#var: me }} | ремонт | сб | макс }}|minimum / maximum}}|{{#unit: {{#var: me }} | ремонт | сб | макс }}}}</span><span class="ttx-unvisible ttx-value">/</span><!--
+
</div>
    --><span class="ttx-rb ttx-value">{{#ifexpr:( {{#unit: {{#var: me }} | ремонт | рб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | рб | макс | значение }} )|{{Annotation|{{#unit: {{#var: me }} | ремонт | рб | мин }} / {{#unit: {{#var: me }} | ремонт | рб | макс }}|minimum / maximum}}|{{#unit: {{#var: me }} | ремонт | рб | макс }}}}</span><span class="ttx-unvisible ttx-value">/</span><!--
+
<div class="general_info_message"></div>
    --><span class="ttx-ab ttx-value">{{#ifexpr:( {{#unit: {{#var: me }} | ремонт | аб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | аб | макс | значение }} )|{{Annotation|{{#unit: {{#var: me }} | ремонт | аб | мин }} / {{#unit: {{#var: me }} | ремонт | аб | макс }}|minimum / maximum}}|{{#unit: {{#var: me }} | ремонт | аб | макс }}}}</span><!--
+
</div>
  -->}}<span class="ttx-name">Repair</span></div><!--
+
</div>
--><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#ifeq: {{#unit: {{#var: me }} | базовая | значение }} | 0 | free | {{#unit: {{#var: me }} | базовая }} {{Sl}}}}</span><span class="ttx-name">Crew training</span></div><!--
 
--><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | эксперты }} {{Sl}}</span><span class="ttx-name">Experts</span></div><!--
 
--><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | асы }} {{Ge}}</span><span class="ttx-name">Aces</span></div><!--
 
--><div class="ttx-table-line"><span class="ttx-value">x {{#unit: {{#var: me }} | опыткоэф }} {{Rp}}</span><span class="ttx-name">Reward for battle</span></div><!--
 
--></div></div><!--
 
-->[[ru:{{#unit:{{#var:me}}|статья|ру}}]]
 
 
|[[Category:Non-working Specs-Card]]
 
|[[Category:Non-working Specs-Card]]
}}</includeonly><noinclude>
+
}}__TOC____NOTITLE__</includeonly><noinclude>
 
{{doc}}
 
{{doc}}
 
[[Category:Specs]]
 
[[Category:Specs]]
 
</noinclude>
 
</noinclude>

Latest revision as of 06:51, 2 July 2024

Description

This template is used to create specification cards for vehicles. This template is required for Template:Specs to function properly.

Usage

{{Specs-Card
|code=
|images=
|store=
|market=
|cockpit=
|title_name=
|card_name=
}}

Parameters

  • code - the code of the desired vehicle (required).
  • images - the images to display on the spec card. Template:Specs-Card-Image should be used here.
  • store - the store code of the vehicle (optional).
  • market - the name of the vehicle on Gaijin Marketplace (optional).
  • cockpit - the name of the 3D cockpit image uploaded to the wiki (optional).
  • title_name - Changes the display title of the page and adds page to Category:Changed visible name (optional).
  • card_name - Changes the name displayed on the stat card and adds page to Category:Changed name in the card (optional).