Terraria Wiki
Advertisement
Terraria Wiki
1 577
páginas

This is a documentation only page, it documents the sub-pages:

Usage is:

{{crafts top}}:Opens the table
{{crafts row}}:A row, repeat as necessary.
...
{{crafts row}}:A row, repeat as necessary.
{{crafts bottom}}:Closes the table

{{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)
}}

{{crafts row}}

This template is the bulk of the crafts set:

Example usage

{{crafts row |top=y
 | tool = By Hand | toolspan = 2
 | result = Sticky Grenade | 5
 | Gel  |
 | Grenade | 5
 | version = desktop-console
}}
{{crafts row 
| image = Hero's Hat (console).png
| result = Hero's Hat
| <!--default result amt=1-->
| link = no
| id = 247
| tool = Loom | toolspan = 2<!--default 1-->
| Purple Thread | 3
| Silk | 20
| version = console-mobile
}}
  • "top": is a switch to indicate to a row it is just under a heading, and should not insert a top seperator (ie a black line)
  • "tool": and "toolspan" is an optional attribute used to create a side cell. "tool" is the tool, and "toolspan" is the span of the cell, counted in amount of cells, which should be equal to the number of ingredients. In case of multiple rows using the same tool the tool parameter can be omitted for subsequent rows and the toolspan parameter of the first should be increased.
  • "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:

ResultIngredientsCrafting station
Erro Lua em Módulo:Crafts/row na linha 42: attempt to call upvalue 'ingredient_format' (a nil value).

Old usage (deprecated, but supported)

{{crafts row |top=
 | tool =
 | toolspan =

 | result =          | resultamount = 
 | item1 =           | amount1 =  
 | item2 =           | amount2 =  
 | item3 =           | amount3 =  
 | item4 =           | amount4 = 
 | item5 =           | amount5 = 
}}

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.

Advertisement