Difference between revisions of "Template:Specs-Card"
m |
|||
(27 intermediate revisions by 5 users not shown) | |||
Line 4: | Line 4: | ||
| 1 = {{#vardefine: type | Aviation }}{{#vardefine: typeM | aircraft }} | | 1 = {{#vardefine: type | Aviation }}{{#vardefine: typeM | aircraft }} | ||
| 2 = {{#vardefine: type | Ground vehicles }}{{#vardefine: typeM | ground vehicles }} | | 2 = {{#vardefine: type | Ground vehicles }}{{#vardefine: typeM | ground vehicles }} | ||
− | + | | 3 = {{#vardefine: type | Fleet }}{{#vardefine: typeM | ships }} | |
− | + | | 4 = {{#vardefine: type | Helicopters }}{{#vardefine: typeM | helicopters }} | |
}}<!-- | }}<!-- | ||
-->{{#vardefine: country | | -->{{#vardefine: country | | ||
Line 21: | Line 21: | ||
| 5 = Fifth | | 5 = Fifth | ||
| 6 = Sixth | | 6 = Sixth | ||
+ | | 7 = Seventh | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
Line 32: | Line 33: | ||
-->|{{#unit: {{#var:me}} | название}}<!-- | -->|{{#unit: {{#var:me}} | название}}<!-- | ||
-->}}</div><!-- | -->}}</div><!-- | ||
− | --><div class="ttx-image"> | + | --><div class="ttx-image">{{#unit: {{#var: me }} | картинка }}<!-- |
-->{{#if: {{{cockpit|}}} |<!-- | -->{{#if: {{{cockpit|}}} |<!-- | ||
--><div class="ttx-cockpit" data-id="{{{cockpit|}}}"><span>Cockpit</span></div><!-- | --><div class="ttx-cockpit" data-id="{{{cockpit|}}}"><span>Cockpit</span></div><!-- | ||
Line 39: | Line 40: | ||
--></div><!-- | --></div><!-- | ||
-->{{#if: {{{store|}}} |<!-- | -->{{#if: {{{store|}}} |<!-- | ||
− | --><div class="ttx-buy"><div data-title="https://store.gaijin.net/story.php?id={{{store|}}}&partner=Wiki&partner_val=lc9fhfph" class="ttx-buy-button"> | + | --><div class="ttx-buy"><div data-title="https://store.gaijin.net/story.php?id={{{store|}}}&partner=Wiki&partner_val=lc9fhfph" class="ttx-buy-button">DOWNLOAD THE GAME</div></div><!-- |
-->[[Category:With buy button]]<!-- | -->[[Category:With buy button]]<!-- | ||
+ | -->}}<!-- | ||
+ | -->{{#if: {{{market|}}} |<!-- | ||
+ | --><div class="ttx-marketplace"><div data-title="https://trade.gaijin.net/?n={{{market|}}}&viewitem=&a=1067" class="ttx-marketplace-button">FIND ON MARKETPLACE</div></div><!-- | ||
+ | -->[[Category:With marketplace button]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--><div class="ttx-info"><!-- | --><div class="ttx-info"><!-- | ||
Line 50: | Line 55: | ||
--><div class="ttx-table"><!-- | --><div class="ttx-table"><!-- | ||
--><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">Brief</span></div><div id="ttx-detail" class="ttx-switch-size-button"><span class="ttx-switch-size-text"> | + | --><div class="ttx-table-line ttx-switch-size"><div id="ttx-short" class="ttx-switch-size-button"><span class="ttx-switch-size-text">Brief</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">{{Annotation|BR|Battle ratings}}</span></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">{{Annotation|BR|Battle ratings}}</span></div><!-- | ||
--><div class="ttx-table-line"><span class="ttx-value"><!-- | --><div class="ttx-table-line"><span class="ttx-value"><!-- | ||
Line 89: | Line 94: | ||
| type_hydroplane = [[:Category:Hydroplanes|Hydroplane]][[Category:Hydroplanes]] | | type_hydroplane = [[:Category:Hydroplanes|Hydroplane]][[Category:Hydroplanes]] | ||
| type_flying_boat = [[:Category:Flying boats|Flying boat]][[Category:Flying boats]] | | type_flying_boat = [[:Category:Flying boats|Flying boat]][[Category:Flying boats]] | ||
+ | | type_attack_helicopter = [[:Category:Attack helicopters|Attack helicopter]][[Category:Attack helicopters]] | ||
+ | | type_boat = [[:Category:Boats|Boat]][[Category:Boats]] | ||
+ | | type_missile_boat = [[:Category:Fast attack crafts|Fast attack craft]][[Category:Fast attack crafts]] | ||
+ | | type_heavy_boat = [[:Category:Heavy boats|Heavy boat]][[Category:Heavy boats]] | ||
+ | | type_gun_boat = [[:Category:Motor gun boats|Motor gun boat]][[Category:Motor gun boats]] | ||
+ | | type_torpedo_boat = [[:Category:Motor torpedo boats|Motor torpedo boat]][[Category:Motor torpedo boats]] | ||
+ | | type_small_submarine_chaser = [[:Category:Small sub-chasers|Small sub-chaser]][[Category:Small sub-chasers]] | ||
+ | | type_submarine_chaser = [[:Category:Sub-chasers|Sub-chaser]][[Category:Sub-chasers]] | ||
+ | | type_armored_submarine_chaser = [[:Category:Armored sub-chasers|Armored sub-chaser]][[Category:Armored sub-chasers]] | ||
+ | | type_armored_boat = [[:Category:Armored gun boats|Armored gun boat]][[Category:Armored gun boats]] | ||
+ | | type_hydrofoil_torpedo_boat = [[:Category:Hydrofoil torpedo boats|Hydrofoil torpedo boat]][[Category:Hydrofoil torpedo boats]] | ||
+ | | type_destroyer = [[:Category:Destroyers|Destroyer]][[Category:Destroyers]] | ||
+ | | type_light_cruiser = [[:Category:Light cruisers|Light cruiser]][[Category:Light cruisers]] | ||
+ | | type_cruiser = [[:Category:Heavy cruisers|Heavy cruiser]][[Category:Heavy cruisers]] | ||
+ | | type_barge = [[:Category:Barges|Barge]][[Category:Barges]] | ||
+ | | type_naval_aa_ferry = [[:Category:Anti-air ferrys|Anti-air ferry]][[Category:Anti-air ferrys]] | ||
+ | | type_naval_ferry_barge = [[:Category:Naval ferry barges|Naval ferry barge]][[Category:Naval ferry barges]] | ||
+ | | type_minesweeper = [[:Category:Minesweepers|Minesweeper]][[Category:Minesweepers]] | ||
+ | | type_minelayer = [[:Category:Minelayers|Minelayer]][[Category:Minelayers]] | ||
+ | | type_torpedo_gun_boat = [[:Category:Motor torpedo gun boats|Motor torpedo gun boat]][[Category:Motor torpedo gun boats]] | ||
+ | | type_heavy_gun_boat = [[:Category:Gunboats|Gunboat]][[Category:Gunboats]] | ||
+ | | type_utility_helicopter = [[:Category:Utility helicopters|Utility helicopter]][[Category:Utility helicopters]] | ||
| #default = [[Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}]][[:Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}|{{#unit: {{#var: me }} | класс | {{#var: i }} }}]] | | #default = [[Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}]][[:Category:{{#unit: {{#var: me }} | класс | {{#var: i }} }}|{{#unit: {{#var: me }} | класс | {{#var: i }} }}]] | ||
}}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!-- | }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}<!-- | ||
-->}}</span><span class="ttx-name">Class</span></div><!-- | -->}}</span><span class="ttx-name">Class</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 }} | экипаж | количество }} {{#ifexpr: {{#unit: {{#var: me }} | экипаж | количество }} = 1 | person | people }}</span><span class="ttx-name">Crew</span></div><!-- |
− | + | -->{{#switch: {{#var: type }} | |
− | + | |Aviation={{Specs-Card-Aviation}} | |
− | + | |Ground vehicles={{Specs-Card-Tank}} | |
− | + | |Fleet={{Specs-Card-Fleet}} | |
− | + | |Helicopters={{Specs-Card-Helicopter}} | |
− | + | }}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |Ground vehicles= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--><div class="ttx-table-line ttx-table-head">Economy</div><!-- | --><div class="ttx-table-line ttx-table-head">Economy</div><!-- | ||
− | + | -->{{#ifeq: {{#unit: {{#var: me }} | премиумная }} | 1 | |
+ | |<div class="ttx-table-line"><span class="ttx-value">[[:Category:Premium {{#var: typeM }}|Premium]]</span><span class="ttx-name">Type</span></div><!-- | ||
+ | -->[[Category:Premium {{#var: typeM }}]] | ||
+ | }}<!-- | ||
+ | -->{{#ifeq: {{#unit: {{#var: me }} | полковая }} | 1 | ||
+ | |<div class="ttx-table-line"><span class="ttx-value">[[:Category:Squadron {{#var: typeM }}|Squadron]]</span><span class="ttx-name">Type</span></div><!-- | ||
+ | -->[[Category:Squadron {{#var: typeM }}]] | ||
+ | }}<!-- | ||
+ | -->{{#ifeq: {{#unit: {{#var: me }} | акционная }} | 0 | ||
|{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | S | |{{#ifeq: {{#unit: {{#var: me }} | цена | валюта }} | S | ||
|<div class="ttx-table-line"><span class="ttx-value"><!-- | |<div class="ttx-table-line"><span class="ttx-value"><!-- | ||
Line 211: | Line 144: | ||
--><div class="ttx-table-line"><span class="ttx-value"><!-- | --><div class="ttx-table-line"><span class="ttx-value"><!-- | ||
-->{{#ifeq: {{#unit: {{#var: me }} | цена | значение }} | 0 | -->{{#ifeq: {{#unit: {{#var: me }} | цена | значение }} | 0 | ||
− | + | |free | |
− | + | |{{#unit: {{#var: me }} | цена }} {{Sl}} | |
− | + | }}</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><!-- | ||
− | + | -->}} | |
− | |||
|<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 }}]] |
− | |||
}}<!-- | }}<!-- | ||
--><div class="ttx-table-line"><!-- | --><div class="ttx-table-line"><!-- | ||
Line 228: | Line 159: | ||
--><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">{{# | + | --><div class="ttx-table-line ttx-table-collapse"><span class="ttx-value">{{#if: {{#unit: {{#var: me }} | экипаж | базовая | значение }} | {{#unit: {{#var: me }} | экипаж | базовая }} {{Sl}} | free }}</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"> | + | --><div class="ttx-table-line"><span class="ttx-value">× ({{#unit: {{#var: me }} | коэф_опыт }}<!-- |
+ | -->{{#ifeq: {{#unit: {{#var: me }} | премиумная }} | 1 | + 100 [[File:Talisman.png|18px|class=ttx-img-talisman|link=]] }}<!-- | ||
+ | -->) % {{Rp}}</span><span class="ttx-name">Reward for battle</span></div><!-- | ||
--></div></div><!-- | --></div></div><!-- | ||
-->[[ru:{{#unit:{{#var:me}}|статья|ру}}]] | -->[[ru:{{#unit:{{#var:me}}|статья|ру}}]] |
Revision as of 16:04, 11 November 2019
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).