Template:Block/doc

From Vintage Story Wiki
This page is a translated version of the page Template:Block/doc and the translation is 14% complete.

此模板用于创建 Vintage Story 中方块的信息框。它包含子类别 {{Item/Fuel}}{{Item/Smeltable}}

用途

信息框模板应放置在文章顶部,位于开头介绍文字的上方,但尽可能位于任何翻译标签的下方。并非每个信息框都需要所有参数——请根据需要删除不合适的参数。

{{Block
|Name=方块名称
|Image=完整的图像名称,包含File:前缀和文件扩展名,例如 File:Imageexample.png
|Material=方块的材料类型
|Stackable=<span lang="en" dir="ltr" class="mw-content-ltr">Maximum stack size, defaults to 64</span>
|Drops=<span lang="en" dir="ltr" class="mw-content-ltr">What the block drops on breaking</span>
|Fertility=<span lang="en" dir="ltr" class="mw-content-ltr">Fertility of the block for farming</span>
|LightLevel=<span lang="en" dir="ltr" class="mw-content-ltr">Light level that the block generates</span>
|Temp=<span lang="en" dir="ltr" class="mw-content-ltr">Burning temperature as a fuel</span>
|Duration=<span lang="en" dir="ltr" class="mw-content-ltr">Burning duration in seconds</span>
|SmeltTemp=<span lang="en" dir="ltr" class="mw-content-ltr">Smelting temperature as a metal</span>
|RequiresContainer=<span lang="en" dir="ltr" class="mw-content-ltr">Whether or not smelting requires a container</span>
|OutputLink=<span lang="en" dir="ltr" class="mw-content-ltr">Link to the container's (e.g. a mold) wiki page in your prefered language (you do not need to write Special:MyLanguage/)</span>
|OutputName=<span lang="en" dir="ltr" class="mw-content-ltr">Container name to be displayed (or its translation)</span>
|OutputAmount=<span lang="en" dir="ltr" class="mw-content-ltr">Number of items obtained after emptying the container</span>
|FloatRight=<span lang="en" dir="ltr" class="mw-content-ltr">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)</span>
|NoBreak=<span lang="en" dir="ltr" class="mw-content-ltr">Whether or not the item box should end in a line break</span>
}}

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

示例

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
}}
Forest soil
材料 Soil
堆叠 64
掉落物 1x Low fertility soil
肥力 25%
方块


</translate>

{{Block
|Name=<translate>Blue clay</translate>
|Image=File:Rawclay blue.png
|Material=<translate>Soil</translate>
|Stackable=64
|Drops=4-5 [[Special:MyLanguage/Clay|<translate>Blue clay</translate>]]
|FloatRight=yes
|NoBreak=yes
}}
<translate>


n.b. the translate tags "disappear" when put on a page that is properly marked for translation.

The translator will not see any code. He will only see 3 sentences to translate:

  • Blue clay
  • Soil
  • Blue clay
蓝色粘土
材料 土壤
堆叠 64
掉落物 4-5 蓝色粘土
方块