Difference between revisions of "Template:Specs-Card"
m |
m |
||
Line 97: | Line 97: | ||
--><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><!-- | --><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><!-- | ||
-->{{#if: {{#unit: {{#var: me }} | курсовое | 1 }} | -->{{#if: {{#unit: {{#var: me }} | курсовое | 1 }} | ||
− | |<div class="ttx-table-line ttx-table-head">Offensive | + | |<div class="ttx-table-line ttx-table-head">Offensive armament</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">Weapon {{#var: i }}</span></div><!-- |
--><div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | боезапас }} bullets</span><span class="ttx-name-indent">ammunition</span></div><!-- | --><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 }} }} | -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} | ||
Line 107: | Line 107: | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{#unit: {{#var: me }} | оборонительное | 1 }} | -->{{#if: {{#unit: {{#var: me }} | оборонительное | 1 }} | ||
− | |<div class="ttx-table-line ttx-table-head">Deffensive | + | |<div class="ttx-table-line ttx-table-head">Deffensive armament</div><!-- |
-->{{#vardefine: i | 1 }}<!-- | -->{{#vardefine: i | 1 }}<!-- | ||
-->{{#while: | -->{{#while: | ||
Line 118: | Line 118: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{#unit: {{#var: me }} | подвесное | 1 }} | -->{{#if: {{#unit: {{#var: me }} | подвесное | 1 }} | ||
− | |<div class="ttx-table-line ttx-table-head">Suspended | + | |<div class="ttx-table-line ttx-table-head">Suspended armament</div><!-- |
-->{{#vardefine: j | 1 }}<!-- | -->{{#vardefine: j | 1 }}<!-- | ||
-->{{#while: | -->{{#while: | ||
Line 139: | Line 139: | ||
--><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 }} | вес }} t</span><span class="ttx-name">Weight</span></div><!-- | ||
--><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"><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">Armament</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">Weapon {{#var: i }}</span></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="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 }} | обойма }} | ||
Line 150: | Line 150: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#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">vertical 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">horizontal guidance</span></div><!-- |
-->}}<!-- | -->}}<!-- | ||
-->{{#switch: {{#unit: {{#var: me }} | орудие | {{#var: i }} | стабилизатор }} | -->{{#switch: {{#unit: {{#var: me }} | орудие | {{#var: i }} | стабилизатор }} |
Revision as of 17:44, 29 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).