Difference between revisions of "Template:Specs-Card"
m |
m |
||
Line 197: | Line 197: | ||
|<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 }} | скорость }} 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 }} | дальность }} m</span><span class="ttx-name-indent">Range</span></div><!-- | --><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 }}}}<!-- | ||
+ | -->}} | ||
+ | |Fleet=<div class="ttx-table-line ttx-table-head">Standard armament</div><!-- | ||
+ | -->{{#vardefine: i | 1 }}<!-- | ||
+ | -->{{#while: | ||
+ | |{{#if: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} }} | true }} | ||
+ | |<div class="ttx-table-line"><span class="ttx-value"><!-- | ||
+ | -->{{#ifexpr: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | орудия }} > 1 | ||
+ | |{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | орудия }} x <!-- | ||
+ | -->}}<!-- | ||
+ | -->{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | название }}</span><span class="ttx-name"><!-- | ||
+ | -->{{#ifexpr: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | количество }} > 1 | ||
+ | |{{#unit: {{#var: me }} | штаторудие | {{#var: i }} | количество }} x <!-- | ||
+ | -->}}<!-- | ||
+ | -->{{#switch: {{#unit: {{#var: me }} | штаторудие | {{#var: i }} | тип }} | ||
+ | | primary = Primary | ||
+ | | secondary = Secondary | ||
+ | | machinegun = Anti-aircraft | ||
+ | | torpedoes = Torpedo | ||
+ | | #default = Turret | ||
+ | }}<!-- | ||
+ | --></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 }} | обойма }} | ||
+ | |<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 }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!-- | -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | + | -->{{#if: {{#unit: {{#var: me }} | допорудие | 1 }} | |
+ | |<div class="ttx-table-line ttx-table-head">Additional armament</div><!-- | ||
+ | -->{{#vardefine: j | 1 }}<!-- | ||
+ | -->{{#while: | ||
+ | |{{#if: {{#unit: {{#var: me }} | допорудие | {{#var: j }} }} | true }} | ||
+ | |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | допорудие | {{#var: j }} | 1 | боезапас }} x {{#unit: {{#var: me }} | допорудие | {{#var: j }} | 1 | название }}<!-- | ||
+ | -->{{#vardefine: i | 2 }}<!-- | ||
+ | -->{{#while: | ||
+ | |{{#if: {{#unit: {{#var: me }} | допорудие | {{#var: j }} | {{#var: i }} }} | true }} | ||
+ | |<br>{{#unit: {{#var: me }} | допорудие | {{#var: j }} | {{#var: i }} | боезапас }} x {{#unit: {{#var: me }} | допорудие | {{#var: j }} | {{#var: i }} | название }}<!-- | ||
+ | -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!-- | ||
+ | -->}}</span><span class="ttx-name">Setup {{#var: j }}</span></div><!-- | ||
+ | -->{{#vardefine: j | {{#expr: {{#var: j }} + 1 }}}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}} | ||
+ | |Helicopters=<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | вес | пустой }} тонн</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 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">{{#ifexpr: {{#unit: {{#var: me }} | двигатель | количество }} > 1|{{#unit: {{#var: me }} | двигатель | количество }} х }}{{#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">{{#unit: {{#var: me }} | разрушение | конструкции }} km/h</span><span class="ttx-name-indent">Structural</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 }} | ||
+ | |<div class="ttx-table-line ttx-table-head">Offensive armament</div><!-- | ||
+ | -->{{#vardefine:i|1}}<!-- | ||
+ | -->{{#while: | ||
+ | |{{#if: {{#unit: {{#var: me }} | курсовое | {{#var: i }} }} | true }} | ||
+ | |<div class="ttx-table-line"><span class="ttx-value"><!-- | ||
+ | -->{{#ifexpr: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} > 1 | ||
+ | | {{#unit: {{#var: me }} | курсовое | {{#var: i }} | количество }} x <!-- | ||
+ | -->}}<!-- | ||
+ | -->{{#if: {{#weapon: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | код }} | статья }} | ||
+ | | [[{{#weapon: {{#unit: {{#var: me }} | курсовое | {{#var: i }} | код }} | статья }}|{{#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 ttx-table-collapse"><span class="ttx-value">{{#unit: {{#var: me }} | курсовое | {{#var: i }} | скорострельность }} shots/min</span><span class="ttx-name-indent">Fire rate</span></div><!-- | ||
+ | -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | -->{{#if: {{#unit: {{#var: me }} | подвесное | 1 }} | ||
+ | |<div class="ttx-table-line ttx-table-head">Suspended armament</div><!-- | ||
+ | -->{{#vardefine: j | 1 }}<!-- | ||
+ | -->{{#while: | ||
+ | |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} }} | true }} | ||
+ | |<div class="ttx-table-line"><span class="ttx-value">{{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | количество }} x {{#unit: {{#var: me }} | подвесное | {{#var: j }} | 1 | название }}<!-- | ||
+ | -->{{#vardefine: i | 2 }}<!-- | ||
+ | -->{{#while: | ||
+ | |{{#if: {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} }} | true }} | ||
+ | |<br>{{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | количество }} x {{#unit: {{#var: me }} | подвесное | {{#var: j }} | {{#var: i }} | название }}<!-- | ||
+ | -->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }}}}<!-- | ||
+ | -->}}</span><span class="ttx-name">Setup {{#var: j }}</span></div><!-- | ||
+ | -->{{#vardefine: j | {{#expr: {{#var: j }} + 1 }}}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}} | ||
+ | }}<!-- | ||
--><div class="ttx-table-line ttx-table-head">Economy</div><!-- | --><div class="ttx-table-line ttx-table-head">Economy</div><!-- | ||
--> {{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0 | --> {{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0 |
Revision as of 11:10, 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).