Template:Block/doc

From Vintage Story Wiki
< Template:Block
Revision as of 17:59, 18 May 2023 by Veerserif (talk | contribs) (Created page with "<languages /> <translate> This template creates an infobox that is designed for blocks in Vintage Story. It has the subcategories {{tl|Item/Fuel}} and {{tl|Item/Smeltable}} but it is currently unclear why it uses the Item prefix for smeltable blocks. == Usage == Unused parameters can be safely deleted. <pre> {{Block |Name= Name of the block |Image= File:Image name.png |Stackable= Maximum stack size |Material= The block's material type |Drops= What the block drops on b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:

This template creates an infobox that is designed for blocks in Vintage Story. It has the subcategories {{Item/Fuel}} and {{Item/Smeltable}} but it is currently unclear why it uses the Item prefix for smeltable blocks.

Usage

Unused parameters can be safely deleted.

{{Block
|Name= Name of the block
|Image= File:Image name.png
|Stackable= Maximum stack size
|Material= The block's material type
|Drops= What the block drops on breaking
|Fertility= Fertility of the block for farming
|LightLevel= Light level that the block generates
|Temp= Burning temperature
|Duration= Burning time in seconds
|SmeltTemp= Smelting temperature
|SmeltDuration= Smelting duration in seconds
|SmeltRatio= (unclear)
|RequiresContainer= (unclear)
|Output= Smelting output
|OutputAmount= Smelting output amount
}}

Parameters

Parameters Description Type Required
parameter1 Description of what parameter1 is string/boolean/file/number/any yes/no/suggested
Name Name of the block string yes
Image Image name, including "File:" prefix file yes
Stackable Maximum stack size, defaults to 64 number suggested
Material The block's material type string suggested
Drops What the block drops on breaking wikitext suggested
Fertility Fertility of the block for farming percentage no
LightLevel Light level that the block generates number no
SmeltTemp Smelting temperature number yes for Item/Smeltable
SmeltDuration Smelt duration in seconds number yes for Item/Smeltable
SmeltRatio (Unsure) float unsure
RequiresContainer Whether or not smelting requires a container string no
Output Smelting output string no
OutputAmount Smelting output amount number no

Examples

Code Result
{{Block
|Name=Low fertility soil
|Image=File:Soil-low-normal.png
|Stackable=64
|Material=Soil
|Fertility=25%
|Drops=Low fertility soil
}}
Low fertility soil
Soil-low-normal.png
Material Soil
Stackable 64
Drops Low fertility soil
Fertility 25%
Blocks

{{Block
|Name=<translate>Blue clay</translate>
|Image= File:Rawclay blue.png
|Stackable= 64
|Material= <translate>Soil</translate>
|Drops= <translate>4-5 Blue clay</translate>
}}
n.b. The translate tags will be properly parsed and "disappear" once a page is marked for translation.
Blue clay in soil
Rawclay blue.png
Material Soil
Stackable 64
Drops 4-5 Blue clay
Blocks