Jump to content

Module:Crafting/doc

From The Perfect Tower II
Revision as of 01:49, 7 October 2026 by Speedybrain (talk | contribs) (Documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Crafting

Backs {{Crafting}}, which shows a Factory crafting recipe as the game's crafting grid, on Factory/Recipes/Crafting (and Factory/Recipes, which includes it). Inspired by Minecraft Wiki's Module:Crafting.

main(frame) reads the template's arguments and passes them to table in Module:Recipe table, with:

  • uiMethod = "crafting": the grid is drawn by crafting in Module:UI;
  • the 32 input slots A1 to H4 (columns A to H, rows 1 to 4) and the output slot Output.

Each slot takes an item, optionally followed by a comma and a count, such as Circuit Plate [T3]; see Module:Factory slot. The other parameters (cost, showName, head, continue, foot, name, class) are handled by Module:Recipe table and Module:UI. Usage is on Template:Crafting.