本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知)
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明)
全站通知:
模板:Data table/doc
刷
历
编
跳到导航
跳到搜索
- 快捷方式
- dv table
这个模板是用来显示带有数据值的列表的。
若需要在生成的列表后附加其他内容,一般需要在最后一次引用后使用{{-}}。
参数
- 匿名参数
|1=:方块名称,默认值为unused。可以添加使用括号后的名字后缀。|2=:可选。输入你想添加的备注字母(备注字母对应一个备注)。|3=:可选前缀。
- 命名参数
|obtain=:获得物品的方式。默认为any,这个参数的值包括:|icon=:图标的名称,包含“.png”。如果|sprite=被设置,会显示它们Sprite的名称。默认为|1=。|iconsize=:图标尺寸,默认25x25px。|nameid=:将命名空间ID的值改为除了|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 | 铁矿石 |

沪公网安备 31011002002714 号