Template:Block/doc: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<!--T:3--> | <!--T:3--> | ||
The | The block infobox template should be placed at the top of the article, '''above''' the starting introductory text but below any translation tags where possible. Not every block infobox requires all the parameters - delete them as appropriate. | ||
</translate> | </translate> | ||
<pre style="width = 75%"> | <pre style="width = 75%"> | ||
{{Block | {{Block | ||
|Name= Name of the block | |Name=<translate><!--T:65--> Name of the block</translate> | ||
|Image= Full image name with File: prefix and file extension i.e. File:Imageexample.png | |Image=<translate><!--T:66--> Full image name with File: prefix and file extension i.e. File:Imageexample.png</translate> | ||
|Material= The block's material type | |Material=<translate><!--T:67--> The block's material type</translate> | ||
|Stackable= Maximum stack size, defaults to 64 | |Stackable=<translate><!--T:68--> Maximum stack size, defaults to 64</translate> | ||
|Drops= What the block drops on breaking | |Drops=<translate><!--T:69--> What the block drops on breaking</translate> | ||
|Fertility= Fertility of the block for farming | |Fertility=<translate><!--T:70--> Fertility of the block for farming</translate> | ||
|LightLevel= Light level that the block generates | |LightLevel=<translate><!--T:71--> Light level that the block generates</translate> | ||
|Temp= Burning temperature as a fuel | |Temp=<translate><!--T:72--> Burning temperature as a fuel</translate> | ||
|Duration= Burning duration in seconds | |Duration=<translate><!--T:73--> Burning duration in seconds</translate> | ||
|SmeltTemp= Smelting temperature as a metal | |SmeltTemp=<translate><!--T:74--> Smelting temperature as a metal</translate> | ||
|RequiresContainer= Whether or not smelting requires a container | |RequiresContainer=<translate><!--T:75--> Whether or not smelting requires a container</translate> | ||
|OutputLink=Link to the container's (e.g. a mold) wiki page in your prefered language (you do not need to write Special:MyLanguage/) | |OutputLink=<translate><!--T:76--> Link to the container's (e.g. a mold) wiki page in your prefered language (you do not need to write Special:MyLanguage/)</translate> | ||
|OutputName=Container name to be displayed (or its translation) | |OutputName=<translate><!--T:77--> Container name to be displayed (or its translation)</translate> | ||
|OutputAmount=Number of items obtained after emptying the container | |OutputAmount=<translate><!--T:78--> Number of items obtained after emptying the container</translate> | ||
|FloatRight= Whether or not the box should float on the right side of the page (so you don't have to use a <div></div> tag) | |FloatRight=<translate><!--T:79--> Whether or not the box should float on the right side of the page (so you don't have to use a <div></div> tag)</translate> | ||
|NoBreak= Whether or not the item box should end in a line break | |NoBreak=<translate><!--T:80--> Whether or not the item box should end in a line break</translate> | ||
}}</pre> | }}</pre> | ||
<translate> | <translate> | ||
Line 106: | Line 106: | ||
<nowiki>|Material=</nowiki>'''<nowiki><translate></nowiki>'''Soil'''<nowiki></translate></nowiki>'''<br> | <nowiki>|Material=</nowiki>'''<nowiki><translate></nowiki>'''Soil'''<nowiki></translate></nowiki>'''<br> | ||
<nowiki>|Stackable=64</nowiki><br> | <nowiki>|Stackable=64</nowiki><br> | ||
<nowiki>|Drops= | <nowiki>|Drops=4-5 [[Special:MyLanguage/Clay|</nowiki>'''<nowiki><translate></nowiki>'''Blue clay'''<nowiki></translate></nowiki>''']]<br> | ||
<nowiki>|FloatRight=yes</nowiki><br> | <nowiki>|FloatRight=yes</nowiki><br> | ||
<nowiki>|NoBreak=yes</nowiki><br> | <nowiki>|NoBreak=yes</nowiki><br> | ||
Line 113: | Line 113: | ||
<translate> | <translate> | ||
<!--T:63--> | <!--T:63--> | ||
n.b. | n.b. the translate tags "disappear" when put on a page that is properly [[Special:MyLanguage/Vintage_Story_Wiki:How_to_translate_the_wiki|marked for translation]]. | ||
<!--T:64--> | <!--T:64--> | ||
The translator will not see any code. He will only see 3 sentences to translate: | The translator will not see any code. He will only see 3 sentences to translate:</translate> | ||
*Blue clay | *Blue clay | ||
*Soil | *Soil | ||
*Blue clay | *Blue clay | ||
|| | || | ||
{{Block | {{Block | ||
Line 127: | Line 127: | ||
|Material=<translate><!--T:9--> Soil</translate> | |Material=<translate><!--T:9--> Soil</translate> | ||
|Stackable=64 | |Stackable=64 | ||
|Drops= | |Drops= 4-5 [[Special:MyLanguage/Clay|<translate><!--T:10--> Blue clay</translate>]] | ||
|FloatRight=yes | |FloatRight=yes | ||
|NoBreak=yes | |NoBreak=yes |
Latest revision as of 10:03, 29 July 2023
This template creates an infobox that is designed for blocks in Vintage Story. It has the subcategories {{Item/Fuel}}
and {{Item/Smeltable}}
.
Usage
The block infobox template should be placed at the top of the article, above the starting introductory text but below any translation tags where possible. Not every block infobox requires all the parameters - delete them as appropriate.
{{Block |Name=Name of the block |Image=Full image name with File: prefix and file extension i.e. File:Imageexample.png |Material=The block's material type |Stackable=Maximum stack size, defaults to 64 |Drops=What the block drops on breaking |Fertility=Fertility of the block for farming |LightLevel=Light level that the block generates |Temp=Burning temperature as a fuel |Duration=Burning duration in seconds |SmeltTemp=Smelting temperature as a metal |RequiresContainer=Whether or not smelting requires a container |OutputLink=Link to the container's (e.g. a mold) wiki page in your prefered language (you do not need to write Special:MyLanguage/) |OutputName=Container name to be displayed (or its translation) |OutputAmount=Number of items obtained after emptying the container |FloatRight=Whether or not the box should float on the right side of the page (so you don't have to use a <div></div> tag) |NoBreak=Whether or not the item box should end in a line break }}
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 | Filename of an image, including "File:" prefix and ".png" suffix | file | yes |
Material | The block's material type | string | suggested |
Stackable | Maximum stack size, defaults to 64 | number | 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 |
RequiresContainer | Whether or not smelting requires a container | string | no |
OutputLink | Smelting output container page link | string | yes if RequiresContainer is present |
OutputName | Smelting output container name | string | yes if RequiresContainer is present |
OutputAmount | Amount of items obtained after emptying the container | number | yes if OutputName is present |
FloatRight | Whether or not the box should float on the right side of the page (so you don't have to use a <div></div> tag) |
any | no |
NoBreak | Whether or not the item box should end in a line break | any | no |
Examples
Code | Result | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Block |Name=Forest soil |Image=File:Forestfloor-0.png |Material=Soil |Stackable=64 |Drops=1x [[Special:MyLanguage/Soil|Low fertility soil]] |Fertility=25% |FloatRight=yes |NoBreak=yes }} |
| ||||||||||||||
</translate> {{Block The translator will not see any code. He will only see 3 sentences to translate:
|
|