Difference between revisions of "Template:Specs-Card"

From War Thunder Wiki
Jump to: navigation, search
m
Line 89: Line 89:
 
         | 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_utility_helicopter = [[:Category:Utility helicopters|Utility helicopter]][[Category:Utility helicopters]]
 
         | #default = [[Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}]][[:Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}|{{#unit: {{#var: me }} | класс | {{#var: i }} }}]]
 
         | #default = [[Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}]][[:Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}|{{#unit: {{#var: me }} | класс | {{#var: i }} }}]]
 
  }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!--
 
  }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!--
 
   -->}}</span><span class="ttx-name">Class</span></div><!--
 
   -->}}</span><span class="ttx-name">Class</span></div><!--
  --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | экипаж }} person</span><span class="ttx-name">Crew</span></div><!--
+
  --><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><!--
 
  -->{{#switch: {{#var: type }}
 
  -->{{#switch: {{#var: type }}
 
     |Aviation=<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} t</span><span class="ttx-name">Empty weight</span></div><!--
 
     |Aviation=<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} t</span><span class="ttx-name">Empty weight</span></div><!--
Line 242: Line 244:
 
     -->}}<!--
 
     -->}}<!--
 
   -->}}
 
   -->}}
   |Helicopters=<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} тонн</span><span class="ttx-name">Empty weight</span></div><!--
+
   |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 }} | вес | полный }} тонн</span><span class="ttx-name">Take-off 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 ttx-table-head">Flight characteristics</div><!--
   --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | потолок }} м</span><span class="ttx-name">Ceiling</span></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"><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"></span><span class="ttx-name">Speed of destruction</span></div><!--

Revision as of 11:16, 22 November 2018

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).