Difference between revisions of "Template:Specs-Card"
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{#unit: {{{code}}} | название }} |<!-- | <includeonly>{{#if: {{#unit: {{{code}}} | название }} |<!-- | ||
-->{{#vardefine: me | {{{code}}} }}<!-- | -->{{#vardefine: me | {{{code}}} }}<!-- | ||
| − | --><div class="specs_card_main" data-code="{{#unit: {{ | + | -->{{#switch: {{#unit: {{#var:me}} | тип }} |
| + | | 1 = {{#vardefine: type | Aviation }}{{#vardefine: typeM | aircraft }} | ||
| + | | 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 | | ||
| + | {{#switch: {{#unit: {{#var:me}} | страна }} | ||
| + | | Great Britain = Britain | ||
| + | | #default = {{#unit: {{#var:me}} | страна }} | ||
| + | }} | ||
| + | }}<!-- | ||
| + | -->{{#vardefine: rank | | ||
| + | {{#switch: {{#unit: {{#var: me }} | ранг | значение }} | ||
| + | | 1 = First | ||
| + | | 2 = Second | ||
| + | | 3 = Third | ||
| + | | 4 = Fourth | ||
| + | | 5 = Fifth | ||
| + | | 6 = Sixth | ||
| + | | 7 = Seventh | ||
| + | | 8 = Eighth | ||
| + | }} | ||
| + | }}<!-- | ||
| + | -->[[Category:{{#var: type }}]][[Category:{{#var: country }} {{#var: typeM }}]][[Category:{{#var: rank }} rank {{#var: typeM }}]] | ||
| + | <div class="specs_card_main" data-code="{{#unit: {{#var: me }} | код }}"> | ||
<div class="specs_card_mobile_info"> | <div class="specs_card_mobile_info"> | ||
<div class="general_info_name">{{#if: {{{card_name|}}} | <div class="general_info_name">{{#if: {{{card_name|}}} | ||
|{{{card_name}}}[[Category:Changed name in the card]] | |{{{card_name}}}[[Category:Changed name in the card]] | ||
| − | |{{#unit: {{ | + | |{{#unit: {{#var:me}} | псевдоним}} |
}}</div> | }}</div> | ||
</div> | </div> | ||
| Line 11: | Line 36: | ||
<div class="specs_card_main_slider_container"></div> | <div class="specs_card_main_slider_container"></div> | ||
<div class="specs_card_main_slider_system"><!-- | <div class="specs_card_main_slider_system"><!-- | ||
| − | --><div>https://static.encyclopedia.warthunder.com/images/{{lc: {{ | + | --><div>https://static.encyclopedia.warthunder.com/images/{{lc: {{#var:me}}}}.png</div><!-- |
-->{{#if: {{{images|}}} | | -->{{#if: {{{images|}}} | | ||
{{{images|}}} | {{{images|}}} | ||
| Line 27: | Line 52: | ||
<div class="general_info_name">{{#if: {{{card_name|}}} | <div class="general_info_name">{{#if: {{{card_name|}}} | ||
|{{{card_name}}} | |{{{card_name}}} | ||
| − | |{{#unit: {{ | + | |{{#unit: {{#var:me}} | псевдоним}} |
}}</div> | }}</div> | ||
</div> | </div> | ||
Revision as of 14:48, 10 July 2025
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).

