Template:Infobox block/doc: Difference between revisions
mNo edit summary |
Templatedata |
||
| Line 112: | Line 112: | ||
[[zh:Template:Block/doc]] | [[zh:Template:Block/doc]] | ||
</noinclude> | </noinclude> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"title": { | |||
"aliases": [ | |||
"name" | |||
], | |||
"label": "Name", | |||
"description": "Name of the block, if different from the page name.", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image of the block. Defaults to using the page name as a filename.", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"invimage": { | |||
"aliases": [ | |||
"inventoryImage", | |||
"iimage" | |||
], | |||
"label": "Inventory image", | |||
"description": "The image of what the block looks like as an item in the inventory.", | |||
"type": "wiki-file-name" | |||
}, | |||
"rarity": { | |||
"label": "Block rarity", | |||
"description": "The rarity of the block, which will show a special color in chat when in the inventory and in chat.", | |||
"example": "rare", | |||
"type": "string" | |||
}, | |||
"renewable": { | |||
"aliases": [ | |||
"renewability" | |||
], | |||
"label": "Renewability", | |||
"description": "If this block is renewable or not.", | |||
"example": "No", | |||
"type": "boolean", | |||
"autovalue": "", | |||
"suggested": true | |||
}, | |||
"stackable": { | |||
"aliases": [ | |||
"stackability" | |||
], | |||
"label": "Stackability", | |||
"description": "Whether or not this item can be stacked.", | |||
"example": "Yes", | |||
"type": "boolean", | |||
"autovalue": "No", | |||
"suggested": true | |||
}, | |||
"tool": { | |||
"label": "Tool", | |||
"description": "Tool required to use without destroying the block.", | |||
"example": "stone pickaxe", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"tool2": { | |||
"label": "Secondary tool", | |||
"description": "A secondary tool that can be used.", | |||
"example": "hoe", | |||
"type": "string" | |||
}, | |||
"tntres": { | |||
"aliases": [ | |||
"resistance", | |||
"tnt", | |||
"tntresistance" | |||
], | |||
"label": "TNT resistance", | |||
"description": "The amount of resistance to explosions this block has.", | |||
"example": "25", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"hardness": { | |||
"label": "Hardness", | |||
"description": "The block's resistance to being broken.", | |||
"example": "4", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"light": { | |||
"label": "Emissive", | |||
"description": "If this block emits light.", | |||
"type": "unknown", | |||
"autovalue": "Yes" | |||
}, | |||
"transparent": { | |||
"label": "Transparency", | |||
"description": "If yes, this block is transparent.", | |||
"example": "Yes", | |||
"autovalue": "Yes" | |||
}, | |||
"flammable": { | |||
"label": "Flammability", | |||
"description": "If yes, this block can be lit on fire.", | |||
"example": "Yes", | |||
"autovalue": "Yes" | |||
}, | |||
"lavasusceptible": { | |||
"aliases": [ | |||
"lava" | |||
], | |||
"label": "Lava susceptibility", | |||
"description": "If yes, this block can catch fire from nearby lava.", | |||
"example": "Yes", | |||
"autovalue": "Yes" | |||
}, | |||
"maxStack": { | |||
"label": "Maximum stack size", | |||
"description": "The maximum number of items that can be combined into a single stack.", | |||
"example": "64", | |||
"type": "number" | |||
}, | |||
"lightLevel": { | |||
"label": "Light level", | |||
"description": "The amount of light emitted by this block (1-15), if any.", | |||
"example": "15", | |||
"type": "number", | |||
"autovalue": "" | |||
} | |||
}, | |||
"description": "An infobox for a block.", | |||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"invimage", | |||
"rarity", | |||
"renewable", | |||
"stackable", | |||
"maxStack", | |||
"tool", | |||
"tool2", | |||
"tntres", | |||
"hardness", | |||
"light", | |||
"lightLevel", | |||
"transparent", | |||
"flammable", | |||
"lavasusceptible" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||