Difference between revisions of "Help:Templates"

From War Thunder Wiki
Jump to: navigation, search
Line 54: Line 54:
 
| pseudonym || ||  
 
| pseudonym || ||  
 
|
 
|
|Краткое название
+
|Short name
 
|-
 
|-
 
| name ||||
 
| name ||||
 
|
 
|
|Полное название
+
|Full name
 
|-
 
|-
 
| rowspan="2" | article ||en (by default)
 
| rowspan="2" | article ||en (by default)
 
|
 
|
 
|
 
|
| rowspan="2" |Адрес статьи
+
| rowspan="2" |Address of the article
 
|-
 
|-
 
|ru
 
|ru
Line 73: Line 73:
 
|
 
|
 
|
 
|
|URL картинки техники (как в карточке в игре)
+
|URL picture of the vehicle (as in the card in the game)
 
|-
 
|-
 
|icon
 
|icon
Line 79: Line 79:
 
|
 
|
 
|
 
|
|URL иконки техники (как в дереве исследования)
+
|URL icon of the vehicle (as in the research tree)
 
|-
 
|-
 
|type
 
|type
Line 85: Line 85:
 
|
 
|
 
|
 
|
|Тип техники. Возвращаемые значения:
+
|Type of vehicle. Returned value:
  
* 1 - самолёт
+
* 1 - aircraft
* 2 - танк
+
* 2 - tank
* 3 - корабль
+
* 3 - ship
* 4 - вертолёт
+
* 4 - helicopter
 
|-
 
|-
 
|gift
 
|gift
Line 96: Line 96:
 
|
 
|
 
|
 
|
|Возвращает 1 если техника акционная или пакетная, 0 если нет
+
|Returns 1 if the vehicle is bundle or gift, 0 if not
 
|-
 
|-
 
|premium
 
|premium
Line 102: Line 102:
 
|
 
|
 
|
 
|
|Возвращает 1 если техника премиумная, 0 если нет
+
|Returns 1 if the vehicle is premium, 0 if not
 
|-
 
|-
 
|squadron
 
|squadron
Line 108: Line 108:
 
|
 
|
 
|
 
|
|Возвращает 1 если техника полковая, 0 если нет
+
|Returns 1 if the vehicle is squadron, 0 if not
 
|-
 
|-
 
|country
 
|country
Line 114: Line 114:
 
|
 
|
 
|
 
|
|Название страны, к которой принадлежит данная техника
+
|The name of the country to which this vehicle belongs
 
|-
 
|-
 
|manufacturer
 
|manufacturer
Line 120: Line 120:
 
|
 
|
 
|
 
|
|Возвращает код флага техники в карточке, если от отличается от флага нации, в ветке которой находится техника
+
|Returns the code of the vehicle flag in the card, if it differs from the flag of the nation, in the tree of which the vehicle is located
 
|-
 
|-
 
| rowspan="2" |class
 
| rowspan="2" |class
| rowspan="2" |Natural number <1..n>
+
| rowspan="2" |Natural number <1..N>
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
|Название n-того класса техники по порядку.
+
|The name of the N class of vehicle in order.
 
|-
 
|-
 
|code
 
|code
 
|
 
|
|Код n-того класса техники по порядку
+
|In-game code of the N class of vehicle in order.
 
|-
 
|-
 
| rowspan="2" |rank
 
| rowspan="2" |rank
Line 136: Line 136:
 
|
 
|
 
|
 
|
|Ранг техники в виде арабских цифр (4)
+
|Rank technology in the form of Arabic numerals (4)
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
 
|
 
|
|Ранг техники в виде римских цифр (IV)
+
|Rank technology in the form of Roman numerals (IV)
 
|-
 
|-
 
| rowspan="3" |br
 
| rowspan="3" |br
Line 147: Line 147:
 
|
 
|
 
|
 
|
|Боевой рейтинг в Аркадном режиме
+
|Battle rating in Arcade mode
 
|-
 
|-
 
|rb (by default)
 
|rb (by default)
 
|
 
|
 
|
 
|
|Боевой рейтинг в Реалистичном режиме
+
|Battle rating in Realistic mode
 
|-
 
|-
 
|sb
 
|sb
 
|
 
|
 
|
 
|
|Боевой рейтинг в Симуляторном режиме
+
|Battle rating in Simulator mode
 
|-
 
|-
 
| rowspan="3" |price
 
| rowspan="3" |price
Line 163: Line 163:
 
|
 
|
 
|
 
|
|Валюту, в которой можно приобрести технику:
+
|Currency in which the vehicle is sold:
  
* S - Серебрянные львы
+
* S - Silver Lions
* Z - Золотые орлы
+
* Z - Golden Eagles
* NA - Цена не указана
+
* NA - The price is not available
 
|-
 
|-
 
|value
 
|value
 
|
 
|
 
|
 
|
|Цена техники в виде числа без разделителя (100000)
+
|The price of vehicle in the form of a number without a separator (100000)
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
 
|
 
|
|Цена техники в виде числа с разделителем (100 000)
+
|The price of vehicle in the form of a number with a separator (100 000)
 
|-
 
|-
 
| rowspan="12" |repair
 
| rowspan="12" |repair
Line 183: Line 183:
 
| rowspan="2" |min
 
| rowspan="2" |min
 
|value
 
|value
|Минимальная стоимость ремонта техники в Аркадном режиме в виде числа без разделителя
+
|The minimum cost of repairing vehicle in Arcade mode in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
|Минимальная стоимость ремонта техники в Аркадном режиме в виде числа с разделителем
+
|The minimum cost of repairing vehicle in Arcade mode in the form of a number with a separator
 
|-
 
|-
 
| rowspan="2" |max (by default)
 
| rowspan="2" |max (by default)
 
|value
 
|value
|Максимальная стоимость ремонта техники в Аркадном режиме в виде числа без разделителя
+
|The maximum cost of repairing vehicle in Arcade mode in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
|Максимальная стоимость ремонта техники в Аркадном режиме в виде числа с разделителем
+
|The maximum cost of repairing vehicle in Arcade mode in the form of a number with a separator
 
|-
 
|-
 
| rowspan="4" |rb (by default)
 
| rowspan="4" |rb (by default)
 
| rowspan="2" |min
 
| rowspan="2" |min
 
|value
 
|value
|Минимальная стоимость ремонта техники в Реалистичном режиме в виде числа без разделителя
+
|The minimum cost of repairing vehicle in Realistic mode in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
|Минимальная стоимость ремонта техники в Реалистичном режиме в виде числа с разделителем
+
|The minimum cost of repairing vehicle in Realistic mode in the form of a number with a separator
 
|-
 
|-
 
| rowspan="2" |max (by default)
 
| rowspan="2" |max (by default)
 
|value
 
|value
|Максимальная стоимость ремонта техники в Реалистичном режиме в виде числа без разделителя
+
|The maximum cost of repairing vehicle in Realistic mode in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
|Максимальная стоимость ремонта техники в Реалистичном  режиме в виде числа с разделителем
+
|The maximum cost of repairing vehicle in Realistic mode in the form of a number with a separator
 
|-
 
|-
 
| rowspan="4" |sb
 
| rowspan="4" |sb
 
| rowspan="2" |min
 
| rowspan="2" |min
 
|value
 
|value
|Минимальная стоимость ремонта техники в Симуляторном режиме в виде числа без разделителя
+
|The minimum cost of repairing vehicle in Simulator mode in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
|Минимальная стоимость ремонта техники в Симуляторном режиме в виде числа с разделителем
+
|The minimum cost of repairing vehicle in Simulator mode in the form of a number with a separator
 
|-
 
|-
 
| rowspan="2" |max (by default)
 
| rowspan="2" |max (by default)
 
|value
 
|value
|Максимальная стоимость ремонта техники в Симуляторном режиме в виде числа без разделителя
+
|The maximum cost of repairing vehicle in Simulator mode in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
|Максимальная стоимость ремонта техники в Симуляторном режиме в виде числа с разделителем
+
|The maximum cost of repairing vehicle in Simulator mode in the form of a number with a separator
 
|-
 
|-
 
| rowspan="2" |research
 
| rowspan="2" |research
Line 229: Line 229:
 
|
 
|
 
|
 
|
|Стоимость исследования техники в виде числа без разделителя
+
|The cost of vehicle research in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
 
|
 
|
|Стоимость исследования техники в виде числа с разделителем
+
|The cost of vehicle research in the form of a number with a separator
 
|-
 
|-
 
| rowspan="9" |crew
 
| rowspan="9" |crew
Line 240: Line 240:
 
|value
 
|value
 
|
 
|
|Стоимость покупки базовой квалификации экипажа в виде числа без разделителя
+
|The cost of purchasing the basic crew qualification as a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
|Стоимость покупки базовой квалификации экипажа в виде числа с разделителем
+
|The cost of purchasing the basic crew qualification as a number with a separator
 
|-
 
|-
 
| rowspan="2" |experts
 
| rowspan="2" |experts
 
|value
 
|value
 
|
 
|
|Стоимость покупки экспертной квалификации экипажа в виде числа без разделителя
+
|The cost of purchasing the expert crew qualification as a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
|Стоимость покупки экспертной квалификации экипажа в виде числа с разделителем
+
|The cost of purchasing the expert crew qualification as a number with a separator
 
|-
 
|-
 
| rowspan="2" |aces
 
| rowspan="2" |aces
 
|value
 
|value
 
|
 
|
|Стоимость покупки квалификации экипажа "Ас" в виде числа без разделителя
+
|The cost of purchasing the aces crew qualification as a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
|Стоимость покупки квалификации экипажа "Ас" в виде числа с разделителем
+
|The cost of purchasing the aces crew qualification as a number with a separator
 
|-
 
|-
 
| rowspan="2" |aces_research
 
| rowspan="2" |aces_research
 
|value
 
|value
 
|
 
|
|Стоимость прокачки в ОИ квалификации экипажа "Ас" в виде числа без разделителя
+
|The cost of research in the RP aces crew qualification in the form of a number without a separator
 
|-
 
|-
 
|<empty> (by default)
 
|<empty> (by default)
 
|
 
|
|Стоимость прокачки в ОИ квалификации экипажа "Ас" в виде числа с разделителем
+
|The cost of research in the RP aces crew qualification in the form of a number with a separator
 
|-
 
|-
 
|count
 
|count
 
|
 
|
 
|
 
|
|Количество членов экипажа
+
|Number of crew members
 
|-
 
|-
 
|expmul
 
|expmul
Line 282: Line 282:
 
|
 
|
 
|
 
|
|Коэффициент начисления Очков исследования (не считая бонусов от премиум статуса)
+
|The coefficient of accrual of Research Points (not counting bonuses from premium status)
 
|}
 
|}
  
 
[[Category:Help]]
 
[[Category:Help]]

Revision as of 11:54, 15 November 2019

Templates are a class of special pages on the MediaWiki engine (on which War Thunder Wiki also works) whose contents can be displayed on any other page using only a short code to insert a template. In this case, the contents of the template will be displayed on another page only in the form in which it is recorded in the template itself.

You can read more about how templates work and are created on the MediaWiki engine in these articles:

This article provides brief information and describes the features of the use of templates in the War Thunder Wiki.

Template navigation

All templates are categorized according to their purpose. The main category for templates is called Category:Templates , it contains general-purpose templates and subcategories with highly specialized templates.

Some main subcategories are:

Applying templates

When using the code editor, templates are invoked as follows: {{Template name|(Parameters)}}

For example, typing {{Main|Help:Templates}} will produce:

Main article: Help:Templates

When using the visual editor, go to the "Templates" section of the "Insert" menu, and select the desired template by name.

When using the visual editor, the parameters used in this template will be automatically suggested for some templates. In all other cases, help on using a particular template can be found on its documentation page.

Useful templates

Popular and useful templates implemented in the War Thunder Wiki:

Automatic characteristics

To use automatically substituted data in articles used the template {{Specs|<parameter 1>|<parameter 2>|...}} on the page with the vehicle.

List of data available for use (case does not matter):

Parameter 1 Parameter 2 Parameter 3 Parameter 4 Description
pseudonym Short name
name Full name
article en (by default) Address of the article
ru
image URL picture of the vehicle (as in the card in the game)
icon URL icon of the vehicle (as in the research tree)
type Type of vehicle. Returned value:
  • 1 - aircraft
  • 2 - tank
  • 3 - ship
  • 4 - helicopter
gift Returns 1 if the vehicle is bundle or gift, 0 if not
premium Returns 1 if the vehicle is premium, 0 if not
squadron Returns 1 if the vehicle is squadron, 0 if not
country The name of the country to which this vehicle belongs
manufacturer Returns the code of the vehicle flag in the card, if it differs from the flag of the nation, in the tree of which the vehicle is located
class Natural number <1..N> <empty> (by default) The name of the N class of vehicle in order.
code In-game code of the N class of vehicle in order.
rank value Rank technology in the form of Arabic numerals (4)
<empty> (by default) Rank technology in the form of Roman numerals (IV)
br ab Battle rating in Arcade mode
rb (by default) Battle rating in Realistic mode
sb Battle rating in Simulator mode
price currency Currency in which the vehicle is sold:
  • S - Silver Lions
  • Z - Golden Eagles
  • NA - The price is not available
value The price of vehicle in the form of a number without a separator (100000)
<empty> (by default) The price of vehicle in the form of a number with a separator (100 000)
repair ab min value The minimum cost of repairing vehicle in Arcade mode in the form of a number without a separator
<empty> (by default) The minimum cost of repairing vehicle in Arcade mode in the form of a number with a separator
max (by default) value The maximum cost of repairing vehicle in Arcade mode in the form of a number without a separator
<empty> (by default) The maximum cost of repairing vehicle in Arcade mode in the form of a number with a separator
rb (by default) min value The minimum cost of repairing vehicle in Realistic mode in the form of a number without a separator
<empty> (by default) The minimum cost of repairing vehicle in Realistic mode in the form of a number with a separator
max (by default) value The maximum cost of repairing vehicle in Realistic mode in the form of a number without a separator
<empty> (by default) The maximum cost of repairing vehicle in Realistic mode in the form of a number with a separator
sb min value The minimum cost of repairing vehicle in Simulator mode in the form of a number without a separator
<empty> (by default) The minimum cost of repairing vehicle in Simulator mode in the form of a number with a separator
max (by default) value The maximum cost of repairing vehicle in Simulator mode in the form of a number without a separator
<empty> (by default) The maximum cost of repairing vehicle in Simulator mode in the form of a number with a separator
research value The cost of vehicle research in the form of a number without a separator
<empty> (by default) The cost of vehicle research in the form of a number with a separator
crew basic value The cost of purchasing the basic crew qualification as a number without a separator
<empty> (by default) The cost of purchasing the basic crew qualification as a number with a separator
experts value The cost of purchasing the expert crew qualification as a number without a separator
<empty> (by default) The cost of purchasing the expert crew qualification as a number with a separator
aces value The cost of purchasing the aces crew qualification as a number without a separator
<empty> (by default) The cost of purchasing the aces crew qualification as a number with a separator
aces_research value The cost of research in the RP aces crew qualification in the form of a number without a separator
<empty> (by default) The cost of research in the RP aces crew qualification in the form of a number with a separator
count Number of crew members
expmul The coefficient of accrual of Research Points (not counting bonuses from premium status)