Template:Block/doc: Difference between revisions

From Vintage Story Wiki
(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...")
 
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
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.
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 ==
== Usage == <!--T:2-->


<!--T:3-->
Unused parameters can be safely deleted.
Unused parameters can be safely deleted.
<pre>
<pre>
Line 26: Line 28:
}}</pre>
}}</pre>


=== Parameters ===
=== Parameters === <!--T:4-->


<!--T:5-->
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 61: Line 64:
|}
|}


=== Examples ===
=== Examples === <!--T:6-->
</translate>
</translate>
{| class="wikitable" style="width: 75%"
{| class="wikitable" style="width: 75%"
Line 93: Line 96:
|Material= &lt;translate>Soil&lt;/translate>
|Material= &lt;translate>Soil&lt;/translate>
|Drops= &lt;translate>4-5 Blue clay&lt;/translate>
|Drops= &lt;translate>4-5 Blue clay&lt;/translate>
}}</pre> <translate>n.b. The translate tags will be properly parsed and "disappear" once a page is marked for translation.</translate>
}}</pre> <translate><!--T:7--> n.b. The translate tags will be properly parsed and "disappear" once a page is marked for translation.</translate>
||
||
{{Block
{{Block
|Name=<translate>Blue clay in soil</translate>
|Name=<translate><!--T:8--> Blue clay in soil</translate>
|Image=File:Rawclay blue.png
|Image=File:Rawclay blue.png
|Stackable=64
|Stackable=64
|Material= <translate>Soil</translate>
|Material= <translate><!--T:9--> Soil</translate>
|Drops= <translate>4-5 Blue clay</translate>
|Drops= <translate><!--T:10--> 4-5 Blue clay</translate>
}}
}}
|}
|}

Revision as of 17:59, 18 May 2023

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