Difference between revisions of "Template:Specs-Card"
Line 41: | Line 41: | ||
--><div class="ttx-table-line ttx-table-head">General characteristics</div><!-- | --><div class="ttx-table-line ttx-table-head">General characteristics</div><!-- | ||
--><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><!-- | --><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><!-- | ||
− | --><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">{{ | + | --><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 }}<!-- | --><div class="ttx-table-line"><span class="ttx-value">{{#vardefine: i | 1 }}<!-- | ||
-->{{#while: | -->{{#while: | ||
Line 189: | Line 189: | ||
-->{{#ifeq:{{#unit: {{#var: me }} | ремонт | рб | макс | значение }} | 0 | -->{{#ifeq:{{#unit: {{#var: me }} | ремонт | рб | макс | значение }} | 0 | ||
|<span class="ttx-value">free</span> | |<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 }} | ремонт | сб | макс | значение }} ) |{{ | + | |<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 }} | ремонт | сб | макс }}|минимум / максимум}}|{{#unit: {{#var: me }} | ремонт | сб | макс }}}}</span><span class="ttx-unvisible ttx-value">/</span><!-- |
− | --><span class="ttx-rb ttx-value">{{#ifexpr:( {{#unit: {{#var: me }} | ремонт | рб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | рб | макс | значение }} )|{{ | + | --><span class="ttx-rb ttx-value">{{#ifexpr:( {{#unit: {{#var: me }} | ремонт | рб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | рб | макс | значение }} )|{{Annotation|{{#unit: {{#var: me }} | ремонт | рб | мин }} / {{#unit: {{#var: me }} | ремонт | рб | макс }}|минимум / максимум}}|{{#unit: {{#var: me }} | ремонт | рб | макс }}}}</span><span class="ttx-unvisible ttx-value">/</span><!-- |
− | --><span class="ttx-ab ttx-value">{{#ifexpr:( {{#unit: {{#var: me }} | ремонт | аб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | аб | макс | значение }} )|{{ | + | --><span class="ttx-ab ttx-value">{{#ifexpr:( {{#unit: {{#var: me }} | ремонт | аб | мин | значение }} != {{#unit: {{#var: me }} | ремонт | аб | макс | значение }} )|{{Annotation|{{#unit: {{#var: me }} | ремонт | аб | мин }} / {{#unit: {{#var: me }} | ремонт | аб | макс }}|минимум / максимум}}|{{#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><!-- |
Revision as of 16:24, 16 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).