Template:Infobox material

来自Noita Wiki
跳到导航 跳到搜索
Template-info.png 模板文档

使用于所有材料子页面

目前无需手动填写表格,由wiki的数据库自动填写的,详情见#Usage

测试

Usage

现在请使用{{Infobox material/nameload}}或者是{{Infobox material/load}}模板来输出材料数据,{{Infobox material/load}}是按组输出,页面相同则为同一组,{{Infobox material/nameload}}是按自选id输出,需要自选id

{{Infobox material
| name              =
| image             =
| type              =
| id                =
| tags              =

<!-- stats -->
| density           =
| hardness          = <!-- For solids and powders -->
| durability        = <!-- For solids -->
| lifetime          = <!-- mostly used for Mist materials -->

<!-- sources/locations -->
| biomes            =

<!-- inheritance info -->
| parent            =
| inheritsReactions =

<!-- effects -->
| submergeEffect    = <!-- For liquids and gases -->
| stainEffect       = <!-- For liquids -->
| ingestEffect      = <!-- For solids, powders, and liquids -->

<!-- behaviour -->
| conductive        =
| burnable          =
| freezes           = <!-- For liquids -->
| melts             = <!-- For solids and powders -->
| breakInto         = <!-- For solids -->

| notes =
}}

Note: This template supports up to 5 tabs; simply append 2, 3, 4, or 5 to parameter names to add values to the corresponding secondary tabs. For example, name2 and type2 would populate a second tab with those two values.

Details

This template is used by all Materials.

模板参数

此模板首选参数换行格式。

参数描述类型状态
namename

The name of the material

默认值
{{PAGENAME}}
示例
Water
字符串推荐
idid

The internal material name

示例
rock_static
字符串推荐
imageimage

The material texture and/or example images of the material in-game.

示例
Water.png
文件推荐
typetype

Specify the type of [[Material]] this is listed under in the main Materials page (Solid, Liquid, Gas, or Powder)

示例
Solid
字符串必填
biomesbiomes

Specify the [[Biomes]] this material can typically be found in, if any.

页面名称推荐
densitydensity

The in-game density value of the material. This typically ranges from 1-15. Density values can be found at [[Density]]

示例
2
数字必填
durabilitydurability

For solid materials only. The durability value of the material in-game, typically ranging from 0-14. Durability values can be found here: https://docs.google.com/spreadsheets/d/1MVcKCzQ9-LL6JNh1sle36MNrKLXsgDdAyKw39NxVl-Q/edit

数字推荐
hardnesshardness

For solids and powders only. The hardness value of the material in game, represented by a "HP" value in the materials.xml file.

数字推荐
lifetimelifetime

Mostly used for mist materials; the lifetime in frames that the material will exist for.

数字推荐
conductiveconductive

Whether or not a material conducts electricity.

布尔值推荐
burnableburnable

Whether or not a material can be set aflame.

布尔值推荐
parentparent

Specify the material ID that is the parent of this material, if any.

字符串推荐
inheritsReactionsinheritsReactions

Specify whether this material inherits reactions from its parent.

布尔值推荐
freezesfreezes

The name of the material this can freeze into on contact with cold materials, spells, or biomes.

字符串推荐
meltsmelts

The name of the material this can melt into on contact with hot materials, spells, or biomes.

字符串推荐
stainEffectstainEffect

Describe the effect this material's stain has on the player or enemies.

示例
Makes the player Wet.
字符串推荐
ingestEffectingestEffect

Describe the [[Status Effect]] applied when the material is ingested.

字符串推荐
submergeEffectsubmergeEffect

For gaseous materials, describe the effect of being submerged in the gas.

字符串推荐
breakIntobreakInto

Solids only. The material that is created when this solid is damaged / broken.

字符串推荐
tagstags

A list of tags that apply to this material, separated by commas.

字符串推荐
notesnotes

Any additional noteworthy features of the material.

字符串推荐