Difference between revisions of "Template:Specs-Card"

From War Thunder Wiki
Jump to: navigation, search
m
m
Line 35: Line 35:
 
   --><div class="ttx-flag">[[File:{{#var: country }} flag.png|44px|link=:Category:{{#var: country }} {{#var: typeM }}]]</div><!--
 
   --><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><!--
 
   --><span class="ttx-country">[[:Category:{{#var: country }} {{#var: typeM }}|{{#var: country }}]]</span><!--
   --><span class="ttx-rank">[[:Category:{{#var: rank }} rank {{#var: typeM }}|{{#unit: {{#var: me }} | ранг }} rank]]</span><!--
+
   --><span class="ttx-rank">[[:Category:{{#var: rank }} rank {{#var: typeM }}|{{#unit: {{#var: me }} | ранг }} Rank]]</span><!--
 
  --></div><!--
 
  --></div><!--
 
  --><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-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><!--
Line 178: Line 178:
 
      |free
 
      |free
 
|{{#unit: {{#var: me }} | цена }} {{Sl}}
 
|{{#unit: {{#var: me }} | цена }} {{Sl}}
}}</span><span class="ttx-name">purchase</span></div>
+
}}</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><!--
+
         |<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 }}]]<!--
 
       -->[[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><!--
+
     |<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 }}]]<!--
 
   -->[[Category:Gift {{#var: typeM }}]]<!--
 
   -->{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | Z | [[Category:Premium {{#var: typeM }}]]}}
 
   -->{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | Z | [[Category:Premium {{#var: typeM }}]]}}
Line 192: Line 192:
 
     --><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-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-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><!--
+
   -->}}<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">{{#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 }} | эксперты }} {{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 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 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><!--
 
  --></div></div><!--
 
  -->[[Category:{{#var: type }}]]<!--
 
  -->[[Category:{{#var: type }}]]<!--

Revision as of 15:41, 28 August 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).