We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.

Template:Crafts

来自Terraria Wiki
跳转至: 导航搜索
Do NOT delete. Do not delete this page, even if it appears unused.
Template-info.svg 文档 以下文档内容来自模板:Crafts/doc。 (edit | history)

This is a documentation only page, it documents the following templates and sub-templates: Special:PrefixIndex/Template:Crafts/

Usage is:

{{crafts top|}}:Opens the table, the last empty parameter is required.
{{crafts row}}:A row, repeat as necessary.
...
{{crafts row}}:A row, repeat as necessary.
{{crafts bottom|}}:Closes the table, the last empty parameter is required.

{{crafts top|}} is just a convenience table top. You may replace it with your own wiki code if necessary, just like on the recipes pages. {{crafts bottom|}} closes the table. {{crafts row}} is a self contained row.

{{crafts top|}}[编辑源代码]

Example usage[编辑源代码]

{{crafts top|}}
{{crafts top
| title = title
| page = page name (for tables to be transcluded)
| nostation = y/yes (will not display the tool/station)
| cate = n/no or force/all (by default it will add this page to crafting station category if crafting result is the page title itself. cate=n/no will disable this. cate=force/all will force categorization, no matter what the result is.) 
}}

{{crafts row}}[编辑源代码]

This template is the bulk of the crafts set:

Example usage[编辑源代码]

{{crafts row
| tool = By Hand
| result = Sticky Grenade | 5
| Gel |
| Grenade | 5
| version = desktop-console
}}
{{crafts row 
| image = Hero's Hat (exclusive variant).png
| result = Hero's Hat | <!--default result amt=1-->
| link = no
| id = 247
| tool = Loom 
| Purple Thread | 3
| Silk | 20
| version = console-mobile
}}
  • "tool": is an optional attribute used to create a side cell. "tool" is the tool.
  • "result": The resulting item, followed by the resulting amount. In case the resulting amount is 1 it should be omitted (though the | character is still required!)
  • "version": used to show which platforms the recipe applies to; if omitted, any icons displayed will be determined by the {{eicons}} template (valid values: desktop-console-mobile-3ds).
  • For every ingredient a row with an ingredient name and amount should be present. In case the amount is 1 it should be omitted (though the | character is still required!)

This results in:

产物材料制作站
粘性手榴弹粘性手榴弹 (5) (电脑版主机版)
徒手
产物材料制作站
英雄帽英雄帽
内部物品 ID:247
 (主机版移动版)
织布机织布机

Protection and Evolution[编辑源代码]

The totality of "Crafts" is protected. This is because it is not a beginner friendly template, and even just touching it can have big impacts on the wiki. This does not mean the tables cannot evolve! If you have any suggestions, those in the know-how can easily change the layout of the table. Feel free to suggest in the talk page.