Difference between revisions of "Template:Specs-Card"

From War Thunder Wiki
Jump to: navigation, search
m
 
(75 intermediate revisions by 5 users not shown)
Line 2: Line 2:
 
  -->{{#vardefine: me | {{{code}}} }}<!--
 
  -->{{#vardefine: me | {{{code}}} }}<!--
 
  -->{{#switch: {{#unit: {{#var:me}} | тип }}  
 
  -->{{#switch: {{#unit: {{#var:me}} | тип }}  
     | 1 = {{#vardefine: type | Aviation }}{{#vardefine: typeM | aircrafts }}
+
     | 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 }}
 +
    | 4 = {{#vardefine: type | Helicopters }}{{#vardefine: typeM | helicopters }}
 
     }}<!--
 
     }}<!--
 
  -->{{#vardefine: country |
 
  -->{{#vardefine: country |
Line 19: 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: {{{name|}}}<!--
+
<div class="specs_card_mobile_info">
   -->|{{{name}}}[[Category:Changed name in the card]]<!--
+
<div class="general_info_name">{{#if: {{{card_name|}}}
   -->|{{#unit: {{#var:me}} | название}}<!--
+
   |{{{card_name}}}[[Category:Changed name in the card]]
-->}}</div><!--
+
   |{{#unit: {{#var:me}} | псевдоним}}
--><div class="ttx-image">https://encyclopedia.warthunder.com/images/{{#unit: {{#var:me}} | изображение }}.png</div><!--
+
}}</div>
-->{{#if: {{{store|}}} |<!--
+
<div class="general_info_neighbors"><!--
    --><div class="ttx-buy"><div data-title="https://store.gaijin.net/story.php?id={{{store|}}}&partner=Wiki&partner_val=lc9fhfph" class="ttx-buy-button">СКАЧАТЬ ИГРУ</div></div><!--
+
-->{{#if: {{#unit: {{#var: me }} | prev }} |<div class="prev">[[{{#unit: {{#unit: {{#var: me }} | prev }} | статья }}|{{#unit: {{#unit: {{#var: me }} | prev }} | псевдоним }}]]</div>}}<!--
    -->[[Category:With buy button]]<!--
+
-->{{#if: {{#unit: {{#var: me }} | next }} |<div class="next">[[{{#unit: {{#unit: {{#var: me }} | next }} | статья }}|{{#unit: {{#unit: {{#var: me }} | next }} | псевдоним }}]]</div>}}<!--
-->}}<!--
+
--></div>
--><div class="ttx-info"><!--
+
</div>
  --><div class="ttx-flag">[[File:{{#var: country }} flag.png|44px|link=:Category:{{#var: country }} {{#var: typeM }}]]</div><!--
+
<div class="specs_card_main_slider">
  --><span class="ttx-country">[[:Category:{{#var: country }} {{#var: typeM }}|{{#var: country }}]]</span><!--
+
<div class="specs_card_main_slider_container"></div>
  --><span class="ttx-rank">[[:Category:{{#var: rank }} rank {{#var: typeM }}|{{#unit: {{#var: me }} | ранг }} Rank]]</span><!--
+
<div class="specs_card_main_slider_system"><!--
--></div><!--
+
-->{{#if: {{#unit: {{#var: me }} | картинка }} |
--><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>{{#unit: {{#var: me }} | картинка }}</div>
--><div class="ttx-table"><!--
+
}}<!--
--><div class="ttx-table-line ttx-table-head">General characteristics</div><!--
+
-->{{#if: {{{images|}}} |
--><div class="ttx-table-line ttx-switch-size"><div id="ttx-short" class="ttx-switch-size-button"><span class="ttx-switch-size-text">BRIEFLY</span></div><div id="ttx-detail" class="ttx-switch-size-button"><span class="ttx-switch-size-text">DETAILED</span></div></div><!--
+
  {{{images|}}}
--><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><!--
+
}}<!--
--><div class="ttx-table-line"><span class="ttx-value">{{#vardefine: i | 1 }}<!--
+
-->{{#if: {{FILEPATH:{{{cockpit|}}}}} |
  -->{{#while:
+
  <div>360://{{#tag:nowiki|{{FILEPATH:{{{cockpit|}}}}}}}</div>
      |{{#if: {{#unit: {{#var: me }} | класс | {{#var: i }} }} | true }}
+
  [[Category:With cockpit]]
      |{{#ifexpr: {{#var: i }} != 1 |<br>}}<!--
+
}}<!--
    -->{{#switch: {{#unit: {{#var: me }} | класс | {{#var: i }} | код }}
+
--></div>
 +
</div>
 +
{{#if: {{{title_name|}}}
 +
  |{{DISPLAYTITLE:{{{title_name}}}}}[[Category:Changed visible name]]
 +
}}
 +
<div class="specs_card_main_info">
 +
<div class="general_info_name">{{#if: {{{card_name|}}}
 +
  |{{{card_name}}}
 +
  |{{#unit: {{#var:me}} | псевдоним}}
 +
}}</div>
 +
<div class="general_info_neighbors"><!--
 +
-->{{#if: {{#unit: {{#var: me }} | prev }} |<div class="prev">[[{{#unit: {{#unit: {{#var: me }} | prev }} | статья }}|{{#unit: {{#unit: {{#var: me }} | prev }} | псевдоним }}]]</div>}}<!--
 +
-->{{#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 64: 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 75: 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]]
         | #default = [[Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}]][[:Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}|{{#unit: {{#var: me }} | класс | {{#var: i }} }}]]
+
         | type_attack_helicopter = [[:Category:Attack helicopters|Attack helicopter]][[Category:Attack helicopters]]
  }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!--
+
        | type_boat = [[:Category:Boats|Boat]][[Category:Boats]]
  -->}}</span><span class="ttx-name">Class</span></div><!--
+
        | type_missile_boat = [[:Category:Fast attack crafts|Fast attack craft]][[Category:Fast attack crafts]]
--><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | экипаж }} people</span><span class="ttx-name">Crew</span></div><!--
+
        | type_heavy_boat = [[:Category:Heavy boats|Heavy boat]][[Category:Heavy boats]]
-->{{#ifeq: {{#var: type }} | Aviation
+
        | type_gun_boat = [[:Category:Motor gun boats|Motor gun boat]][[Category:Motor gun boats]]
    |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} t</span><span class="ttx-name">Empty weight</span></div><!--
+
        | type_torpedo_boat = [[:Category:Motor torpedo boats|Motor torpedo boat]][[Category:Motor torpedo boats]]
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | полный }} t</span><span class="ttx-name">Take-off weight</span></div><!--
+
        | type_small_submarine_chaser = [[:Category:Small sub-chasers|Small sub-chaser]][[Category:Small sub-chasers]]
  --><div class="ttx-table-line ttx-table-head">Flight characteristics</div><!--
+
        | type_submarine_chaser = [[:Category:Sub-chasers|Sub-chaser]][[Category:Sub-chasers]]
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | потолок }} m</span><span class="ttx-name">Ceiling</span></div><!--
+
        | type_armored_submarine_chaser = [[:Category:Armored sub-chasers|Armored sub-chaser]][[Category:Armored sub-chasers]]
  --><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><!--
+
        | type_armored_boat = [[:Category:Armored gun boats|Armored gun boat]][[Category:Armored gun boats]]
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | сваливание }} km/h</span><span class="ttx-name">Stalling speed</span></div><!--
+
        | type_hydrofoil_torpedo_boat = [[:Category:Hydrofoil torpedo boats|Hydrofoil torpedo boat]][[Category:Hydrofoil torpedo boats]]
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | двигатель | количество }} х {{#unit: {{#var: me }} | двигатель | название }}</span><span class="ttx-name">Engine</span></div><!--
+
        | type_destroyer = [[:Category:Destroyers|Destroyer]][[Category:Destroyers]]
   --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | двигатель | тип }}</span><span class="ttx-name-indent">type</span></div><!--
+
        | type_light_cruiser = [[:Category:Light cruisers|Light cruiser]][[Category:Light cruisers]]
  --><div class="ttx-table-line"><span class="ttx-value"><!--
+
        | type_heavy_cruiser = [[:Category:Heavy cruisers|Heavy cruiser]][[Category:Heavy cruisers]]
  -->{{#switch: {{#unit:{{#var: me }}| двигатель | сод }}
+
        | type_barge = [[:Category:Barges|Barge]][[Category:Barges]]
      | w = air
+
        | type_naval_aa_ferry = [[:Category:Anti-air ferrys|Anti-air ferry]][[Category:Anti-air ferrys]]
  | a = liquid
+
        | type_naval_ferry_barge = [[:Category:Naval ferry barges|Naval ferry barge]][[Category:Naval ferry barges]]
  }}</span><span class="ttx-name-indent">cooling system</span></div><!--
+
        | type_minesweeper = [[:Category:Minesweepers|Minesweeper]][[Category:Minesweepers]]
  --><div class="ttx-table-line ttx-not-ab"><span class="ttx-value"></span><span class="ttx-name">Speed of destruction</span></div><!--
+
        | type_minelayer = [[:Category:Minelayers|Minelayer]][[Category:Minelayers]]
  --><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><!--
+
        | type_frigate = [[:Category:Frigates|Frigate]][[Category:Frigates]]
  --><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><!--
+
        | type_torpedo_gun_boat = [[:Category:Motor torpedo gun boats|Motor torpedo gun boat]][[Category:Motor torpedo gun boats]]
  -->{{#if: {{#unit: {{#var: me }} | курсовое | 1 }}
+
        | type_heavy_gun_boat = [[:Category:Gunboats|Gunboat]][[Category:Gunboats]]
      |<div class="ttx-table-line ttx-table-head">Offensive waponry</div><!--
+
        | type_battleship = [[:Category:Battleships|Battleship]][[Category:Battleships]]
    -->{{#vardefine:i|1}}<!--
+
        | type_battlecruiser = [[:Category:Battlecruisers|Battlecruiser]][[Category:Battlecruisers]]
    -->{{#while:
+
        | type_utility_helicopter = [[:Category:Utility helicopters|Utility helicopter]][[Category:Utility helicopters]]
    |{{#if: {{#unit: {{#var: me }} | курсовое | {{#var: i }} }} | true }}
+
    | type_strike_ucav = [[:Category:UCAV|Strike UCAV]][[Category:UCAV]]
|<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} х {{#unit: {{#var: me }} | курсовое | {{#var: i }} | название }}</span><span class="ttx-name">Cannon {{#var: i }}</span></div><!--
+
  }}</div>{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
      --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | боезапас }} bullets</span><span class="ttx-name-indent">ammunition</span></div><!--
+
}}
      -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
+
</div>
  }}
+
</div>
}}<!--
+
<div class="general_info_price">
  -->{{#if: {{#unit: {{#var: me }} | оборонительное | 1 }}
+
{{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0<!--
      |<div class="ttx-table-line ttx-table-head">Deffensive weaponry</div><!--
+
-->|<!--
  -->{{#vardefine: i | 1 }}<!--
+
   -->{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | S<!--
  -->{{#while:
+
    -->|<!--
      |{{#if: {{#unit: {{#var: me }} | оборонительное | {{#var: i }} }} | true }}
+
      --><div class="general_info_price_research"><!--
  |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | орудия }} х {{#unit: {{#var: me }} | оборонительное | {{#var: i }} | название }}</span><span class="ttx-name">{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | количество }} х turret</span></div><!--
+
      --><span class="desc">Research:</span><!--
    --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | оборонительное | {{#var: i }} | боезапас }} bullets</span><span class="ttx-name-indent">ammunition</span></div><!--
+
      --><span class="value"><!--
    --><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><!--
+
      -->{{#ifeq: {{#unit: {{#var: me }} | исследование }} | 0<!--
    -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!--
+
        -->|Free<!--
  -->}}<!--
+
        -->|{{#unit:{{#var:me}} |исследование | format=1 }} <!--
  -->}}<!--
+
          -->{{#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">Suspended weaponry</div><!--
+
          -->|[[File:Specs-Card-Activity.png|23px|link=Research Points]]<!--
    -->{{#vardefine: j | 1 }}<!--
+
          -->}}<!--
    -->{{#while:
+
      -->}}<!--
    |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} }} | true }}
+
      --></span></div><!--
|<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | количество }} х {{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | название }}<!--
+
      --><div class="general_info_price_buy"><!--
      -->{{#vardefine: i | 2 }}<!--
+
      --><span class="desc">Purchase:</span><!--
      -->{{#while:
+
      --><span class="value"><!--
          |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} }} | true }}
+
      -->{{#ifeq: {{#unit: {{#var: me }} | цена }} | 0<!--
          |<br>{{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | количество }} х {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | название }}<!--
+
      -->|Free<!--
      -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
+
      -->|{{#unit: {{#var: me }} | цена | format=1 }} [[File:Specs-Card-Lion.png|link=Silver Lions]]<!--
      -->}}</span><span class="ttx-name">Setup {{#var: j }}</span></div><!--
+
      -->}}<!--
      -->{{#vardefine: j | {{#expr: {{#var: j }} + 1 }}}}<!--
+
      --></span></div><!--
    -->}}<!--
+
    -->|<!--
  -->}}
+
      --><div class="general_info_price_buy"><!--
    |<!--<div class="ttx-table-line"><span class="ttx-value">лоб / борт / корма</span><span class="ttx-name">Бронирование</span></div>--><!--
+
      --><span class="desc">Purchase:</span><!--
  --><!--<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | броня | корпус | лоб }} / {{#unit: {{#var: me }} | броня | корпус | борт }} / {{#unit: {{#var: me }} | броня | корпус | корма }}</span><span class="ttx-name-indent">корпуса</span></div>--><!--
+
      --><span class="value">{{#unit: {{#var: me }} | цена | format=1 }} [[File:Specs-Card-Eagle.png|link=Golden Eagles]]</span><!--
  --><!--<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | броня | башня | лоб }} / {{#unit: {{#var: me }} | броня | башня | борт }} / {{#unit: {{#var: me }} | броня | башня | корма }}</span><span class="ttx-name-indent">башни</span></div>--><!--
+
      --></div>
  --><!--<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | заметность }}%</span><span class="ttx-name">Заметность</span></div>--><!--
+
    }}<!--
  --><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="general_info_price_buy" style="width:100%;"><!--
  --><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><!--
+
    --><span class="desc">Purchase:</span><!--
  --><div class="ttx-table-line ttx-table-head">Weaponry</div><!--
+
    --><span class="value small">[[:Category:Gift {{#var: typeM }}|Bundle or Gift]]</span><!--
  -->{{#vardefine: i | 1 }}<!--
+
    --></div><!--
  -->{{#while:
+
    -->[[Category:Gift {{#var: typeM }}]]
      |{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} }} | true }}
+
}}
      |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | количество }} х {{#unit: {{#var: me }} | орудие | {{#var: i }} | название }}</span><span class="ttx-name">Cannon {{#var: i }}</span></div><!--
+
</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><!--
+
<div class="general_info_buttons">
    -->{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} | обойма }}
+
<div class="general_info_buttons_container">
        |<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="general_info_compare_button" title="Сравнить"><span>Добавить в сравнение</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_game_button" title="Show in game"><span>Show in game</span></div><!--
    -->}}<!--
+
-->{{#if: {{{store|}}} |
    -->{{#ifexpr:( {{#unit: {{#var: me }} | орудие | {{#var: i }} | увн | мин }} != {{#unit: {{#var: me }} | орудие | {{#var: i }} | увн | макс }} ) and ( {{#unit: {{#var: me }} | орудие | {{#var: i }} | калибр }} > 12 )
+
    __NOBANNER__
        |<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><!--
+
    <div title="Buy" data-link="{{{store|}}}" class="general_info_buy_button"><span>STORE</span></div>
    -->}}<!--
+
    [[Category:With buy button]]
    -->{{#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">vertical guidance</span></div><!--
+
-->{{#if: {{{market|}}} |
    -->}}<!--
+
    __NOBANNER__
    -->{{#switch: {{#unit: {{#var: me }} | орудие | {{#var: i }} | стабилизатор }}
+
    <div title="Buy" data-link="{{{market|}}}" class="general_info_market_button"><span>MARKET</span></div>
        |double = <div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">two-plane</span><span class="ttx-name-indent">stabilizer</span></div>
+
    [[Category:With marketplace button]]
        |vertical = <div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">vertical</span><span class="ttx-name-indent">stabilizer</span></div>
+
}}<!--
      }}<!--
+
--></div>
    -->{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} | скорость }}
+
</div>
        |<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="general_info_message"></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><!--
+
</div>
    -->}}<!--
+
</div>
    -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!--
 
  -->}}<!--
 
-->}}<!--
 
--><div class="ttx-table-line ttx-table-head">Economy</div><!--
 
--> {{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0
 
      |{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | S
 
        |<div class="ttx-table-line"><span class="ttx-value"><!--
 
      -->{{#ifeq: {{#unit: {{#var: me }} | исследование | значение }} | 0
 
          |free
 
          |{{#unit:{{#var:me}}|исследование}} {{Rp}}<!--
 
      -->}}</span><span class="ttx-name">research</span></div><!--
 
      --><div class="ttx-table-line"><span class="ttx-value"><!--
 
      -->{{#ifeq: {{#unit: {{#var: me }} | цена | значение }} | 0
 
      |free
 
|{{#unit: {{#var: me }} | цена }} {{Sl}}
 
}}</span><span class="ttx-name">Purchase</span></div>
 
        |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | цена }} {{Ge}}</span><span class="ttx-name">Purchase</span></div><!--
 
      -->[[Category:Premium {{#var: typeM }}]]<!--
 
    -->}}
 
    |<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 }}]]<!--
 
  -->{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | Z | [[Category:Premium {{#var: typeM }}]]}}
 
    }}<!--
 
--><div class="ttx-table-line"><!--
 
  -->{{#ifeq:{{#unit: {{#var: me }} | ремонт | рб | макс | значение }} | 0
 
      |<span class="ttx-value">free</span>
 
  |<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><!--
 
    --><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><!--
 
    --><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><!--
 
  -->}}<span class="ttx-name">Repair</span></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><!--
 
-->[[Category:{{#var: type }}]]<!--
 
-->[[Category:{{#var: country }} {{#var: typeM }}]]<!--
 
-->[[Category:{{#var: rank }} rank {{#var: typeM }}]]<!--
 
-->[[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).