- 快捷方式
- dv table
这个模板是用来显示带有数据值的列表的。
参数
- 未命名参数
{{{1}}}
:方块名称,默认值为“unused”。可以添加使用括号后的名字后缀。{{{2}}}
:可选。输入你想添加的备注字母(备注字母对应一个备注)。{{{3}}}
:可选前缀。
- 命名参数
{{{obtain}}}
:获得物品的方式。默认为 any,这个参数的值包括:give
:只能通过 /give 命令获得。none
: 不能通过任何途径获得。或者要使用 /setblock。creative
:可以在创造模式的物品栏中获得。pick block
:可以在创造模式中拾获。trading
:可以与村民交易或在创造模式中获得。enchantments
:只能使用附魔工具或在创造模式中获得。enchantments only
:只能使用附魔工具或使用 /give 获得,但不能在创造模式菜单中找到。
{{{icon}}}
:图标的名称,包含 .png。如果{{{sprite}}}
被设置,会显示它们 sprite 的名称。默认为{{{1}}}
。{{{iconsize}}}
:图标尺寸,默认 25px。{{{nameid}}}
:将 nameid 的值改为除了{{{1}}}
以外的指定值。{{{link}}}
:改变{{{1}}}
的文章链接。{{{display}}}
:改变{{{1}}}
的显示链接。{{{section}}}
:将数据值改变为非{{{1}}}
的值
- 表格参数
{{{dv}}}
:设置数据值。默认在前面加1。{{{sprite}}}
:如果设置,图标将会使用 sprite 模板而不是一个文件。设置它将会导致所有模板使用当前选项值。如果像使用文件,在该字段留空。- 例如,将其设置为
block
将使用{{blockSprite}}
。
- 例如,将其设置为
{{{table}}}
:设置模板标题和接下来要使用的值。默认是Blocks
。{{{namecolumn}}}
:如果设置为0
,那么它所在的模板的表格列将不会拥有名称。如果想在后面的地方使用带名称的列,请将其设置为1
。{{{foot}}}
:如果设置,会将表脚添加到列表中。
示例
{{data table|Air|icon=none|obtain=none}} {{data table|Stone|SB}} {{data table|Grass Block|nameid=grass|icon=Grass.png}} {{data table|Dirt|SB}} {{data table|Cobblestone}} {{data table|Wood Planks|SB|icon=Oak Wood Planks.png}} {{data table|Sapling|SB}} {{data table|Bedrock|obtain=creative}} {{data table|Water|S|section=Water and Lava|nameid=flowing_water|obtain=give}} {{data table|Water|S|Stationary|section=Water and Lava|obtain=give}} {{data table|Lava|S|section=Water and Lava|nameid=flowing_water|obtain=give}} {{data table|Lava (stationary)|S|section=Water and Lava|obtain=give}} {{data table|Sand|SB}} {{data table|Gravel}} {{data table|Gold Ore}} {{data table|Iron Ore|foot=1}}
图标 | Dec | Hex | 命名空间ID | 方块 |
---|---|---|---|---|
0 | 0 | minecraft:air | 空气 | |
![]() |
1 | 1 | minecraft:stone | 石头 S B |
![]() |
2 | 2 | minecraft:grass | 草方块 |
![]() |
3 | 3 | minecraft:dirt | 泥土 S B |
![]() |
4 | 4 | minecraft:cobblestone | 圆石 |
![]() |
5 | 5 | minecraft:wood_planks | Wood Planks S B |
![]() |
6 | 6 | minecraft:sapling | 树苗 S B |
![]() |
7 | 7 | minecraft:bedrock | 基岩 |
![]() |
8 | 8 | minecraft:flowing_water | 水 S |
![]() |
9 | 9 | minecraft:water | Stationary水 S |
![]() |
10 | A | minecraft:flowing_water | 熔岩 S |
![]() |
11 | B | minecraft:lava | 熔岩 (stationary) S |
![]() |
12 | C | minecraft:sand | 沙子 S B |
![]() |
13 | D | minecraft:gravel | 沙砾 |
![]() |
14 | E | minecraft:gold_ore | 金矿石 |
![]() |
15 | F | minecraft:iron_ore | 铁矿石 |