欢迎大家来到沙石镇时光中文维基!本站编辑权限开放,欢迎加入中文维基 QQ 群「沙海时光」:372816689
目前正在进行全站数据更新,期间可能会存在显示异常的问题。
模板:WorktableTableRow/doc
WorktableTableRow is a template used to populate crafting tables with the information from worktable item infoboxes. It displays item, worktable tab, and materials needed for crafting.
This template uses and displays information received from title, worktablelevel, tab, materials, and amtcrafted fields in Infobox item and requires transclusion tags applied to the infobox to work properly.
To learn more about transclusion, visit the MediaWiki page.
Infobox
The syntax and the relevant fields in the infobox are:
<onlyinclude>{{{{{1|infobox item}}} |title= |tab= |worktablelevel= |mat1 = |mat1amt = |mat2 = |mat2amt = |mat3 = |mat3amt = |amtcrafted= }}</onlyinclude>
Best practices
- Please avoid using {{PAGENAME}} magic word in the title field, it prevents the template from being displayed correctly.
- tab should contain one word to use in WorktableTab template.
- worktablelevel should be a number 1, 2, or 3. Please omit this parameter for crafting book recipes.
- materials should list all crafting materials: a material name in mat parameter and an amount (number) of that material required in matamt.
- amtcrafted should only be used for items that are crafted in multiplies, like Fireworks or Gunpowder. Please omit this parameter for other recipes.
Template syntax
After the transclusion tags and parameter are placed in the infobox, the template can be called:
{{:Page name|WorktableTableRow}}
Examples
The examples of the template's usage can be found on WorktableTable page.