Owl.png Wiki reading hard on the eyes? Try out our Dark Theme! Visit the preferences page while logged in and select Hydra Dark. Owl.png

Template:Crafts

From Terraria Wiki
Jump to: navigation, search
Do NOT delete. Do not delete this template page, even if it appears unused.
Template-info.svg Documentation The documentation below is transcluded from Template:Crafts/doc. (edit | history)

Deprecated template. Please use Template:Recipes instead.




This is a documentation only page, it documents the following templates:

and sub-templates and/or Modules:

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.)
| cargo= n/no or force (by default only recipes on root pages in main namespaces will store to cargo, but this behavior can be overrided by this parameter. no means Don't store these rows to cargo table(For test or example usage), and force means force these rows store to cargo table. )
| version= platform-platform (for recipes grouped by platform versions.)
}}

{{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
| nocargo = yes
}}
{{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[note!] | 3
| Silk | 20
| version = console-mobile
| nocargo = yes
}}
  • "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!). You can use xxx[yyy] for item name, it will be parsed as {{item|xxx|note=(yyy)}}, doesn't support xxx/yyy[zzz].

This results in:

ResultIngredientsCrafting station
Sticky GrenadeSticky Grenade (5) (Desktop versionConsole version)
By Hand
ResultIngredientsCrafting station
Hero's HatHero's Hat
Internal Item ID: 247
 (Console versionMobile version)
LoomLoom

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.