Difference between revisions of "Template:Specs-Card"
m |
|||
Line 47: | Line 47: | ||
|{{#ifexpr: {{#var: i }} != 1 |<br>}}<!-- | |{{#ifexpr: {{#var: i }} != 1 |<br>}}<!-- | ||
-->{{#switch: {{#unit: {{#var: me }} | класс | {{#var: i }} | код }} | -->{{#switch: {{#unit: {{#var: me }} | класс | {{#var: i }} | код }} | ||
− | | type_missile_tank = [[:Category: | + | | type_missile_tank = [[:Category:ATGM vehicles|ATGM vehicle]][[Category:ATGM vehicles]] |
− | | type_spaa = [[:Category: | + | | type_spaa = [[:Category:Anti-aircraft vehicles|SPAA]][[Category:Anti-aircraft vehicles]] |
− | | type_tank_destroyer = [[:Category: | + | | type_tank_destroyer = [[:Category:Tank destroyers|Tank destroyer]][[Category:Tank destroyers]] |
− | | type_medium_tank = [[:Category: | + | | type_medium_tank = [[:Category:Medium tanks|Medium tank]][[Category:Medium tanks]] |
− | | type_light_tank = [[:Category: | + | | type_light_tank = [[:Category:Light tanks|Light tank]][[Category:Light tanks]] |
− | | type_heavy_tank = [[:Category: | + | | type_heavy_tank = [[:Category:Heavy tanks|Heavy tank]][[Category:Heavy tanks]] |
| type_aa_fighter = [[:Category:Air Defence fighters|Air Defence fighter]][[Category:Air Defence fighters]] | | type_aa_fighter = [[:Category:Air Defence fighters|Air Defence fighter]][[Category:Air Defence fighters]] | ||
| type_bomber = [[:Category:Bombers|Bomber]][[Category:Bombers]] | | type_bomber = [[:Category:Bombers|Bomber]][[Category:Bombers]] | ||
Line 107: | Line 107: | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{#unit: {{#var: me }} | оборонительное | 1 }} | -->{{#if: {{#unit: {{#var: me }} | оборонительное | 1 }} | ||
− | |<div class="ttx-table-line ttx-table-head"> | + | |<div class="ttx-table-line ttx-table-head">Deffensive weaponry</div><!-- |
-->{{#vardefine: i | 1 }}<!-- | -->{{#vardefine: i | 1 }}<!-- | ||
-->{{#while: | -->{{#while: | ||
Line 136: | Line 136: | ||
--><!--<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 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 class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | заметность }}%</span><span class="ttx-name">Заметность</span></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"> | + | --><div class="ttx-table-line ttx-table-head">Mobility</div><!-- |
− | --><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес }} | + | --><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 }} | передачи | вперед }} | + | --><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"> | + | --><div class="ttx-table-line ttx-table-head">Weaponry</div><!-- |
-->{{#vardefine: i | 1 }}<!-- | -->{{#vardefine: i | 1 }}<!-- | ||
-->{{#while: | -->{{#while: | ||
|{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} }} | true }} | |{{#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"> | + | |<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 class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | орудие | {{#var: i }} | боезапас }} | + | --><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 }} | обойма }} | -->{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} | обойма }} | ||
− | |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#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 }} | скорострельность }} | + | --><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 ) | -->{{#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"> | + | |<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><!-- |
-->}}<!-- | -->}}<!-- | ||
-->{{#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 ) | -->{{#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"> | + | |<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><!-- |
-->}}<!-- | -->}}<!-- | ||
-->{{#switch: {{#unit: {{#var: me }} | орудие | {{#var: i }} | стабилизатор }} | -->{{#switch: {{#unit: {{#var: me }} | орудие | {{#var: i }} | стабилизатор }} | ||
− | |double = <div class="ttx-table-line ttx-table-collapse"><span class="ttx-value"> | + | |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 = <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 }} | скорость }} | -->{{#if: {{#unit: {{#var: me }} | орудие | {{#var: i }} | скорость }} | ||
− | |<div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#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 }} | дальность }} | + | --><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 }}}}<!-- | -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!-- |
Revision as of 12:49, 14 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).