м (Бот: Автоматизована заміна тексту: (-\[\[[cC]ategory: +[[Категорія:)) |
м (→Example usage: Автоматичний переклад) |
||
Рядок 44: | Рядок 44: | ||
[[en:Template:Block state table]] |
[[en:Template:Block state table]] |
||
[[ru:Шаблон:Bst]] |
[[ru:Шаблон:Bst]] |
||
− | [[Категорія: |
+ | [[Категорія:Шаблони таблиць]] |
</includeonly> |
</includeonly> |
||
<noinclude> |
<noinclude> |
Версія за 13:22, 2 квітня 2020
This template is used to generate tables for block states.
Parameters
The unnamed parameter |1=
is used to set name of the state. Multiple states can be placed in the same column if separated by commas. Each column supports theoretically unlimited states.
The parameter |type=
can be set for the type of value the state uses, such as byte
, int
, or string
. Defaults to string
The parameter |foot=
can be set to 1
to end the table.
Value parameters
Starting with |2=
, unnamed parameters are used in pairs to display a row. In each row, the first parameter is the value, and the second is the description. This template supports up to sixteen rows total.
Multiple values can be placed in the same column if separated by commas. You can also use a range of numbers by placing a - between the numbers. Note that spaces are not required between the numbers and the dash.
Example usage
{{bst|snowy|type=byte |true, false|If true, this block has snow on top. }} {{bst|variant|foot=1 |dirt |{{Посилання/Блок|Земля}} |coarse_dirt|{{Посилання/Блок|id=забруднена-земля|Земля|Забруднена земля}} |podzol |{{Посилання/Блок|Підзол}} }}
- Produces
Назва | Значення за замовчуванням |
Допустимі значення |
Опис |
---|---|---|---|
snowy | true, false | If true this block has snow on top. | |
variant | dirt | Земля | coarse_dirt |
Забруднена земля | podzol | ||
Підзол |