Jump to: navigation, search

Template:Smelting/doc

< Template:Smelting
Revision as of 03:37, 20 May 2017 by CraftSpider (talk | contribs) (Created Smelting Documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Lua logo.svg
This template uses Module:Smelting, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua.

Using this template, you can create tables like those commonly used in the “Smelting” and “Smelting ingredient” sections of articles about blocks and items. It can be used similarly to {{Grid/Furnace}}, except it creates the table for you.

By default, the table generates with 3 columns: Name, Ingredients, and the main column containing {{Grid/Furnace}}. You can set the parameter {{{showname=1}}} or {{{showname=0}}} in the first template of the table to show or hide the Name column. To group multiple smelting templates into one table, you also need to set {{{head=1}}} in the first template of the table, and {{{foot=1}}} in the last.

You can change what is shown in the fuel slot by using the parameter {{{fuel}}}. It defaults to Any fuel

Example usage:

{{Smelting
  |head=1
  |Raw Beef
  |Steak
}}
{{Smelting
  |Wet Sponge
  |Sponge
  |upcoming=1.8
}}
{{Smelting
  |name=Easy fuel
  |ingredients=[[Wood]]
  |Any Wood
  |Charcoal
  |fuel=Any Wood Planks
  |foot=1
}}

produces:

Name Ingredients Smelting recipe
Steak Raw Beef +
Any fuel
Raw Beef
CoalCharcoalWoodWood PlanksBlock of Coal

Steak
Sponge
(1.8)
Wet Sponge +
Any fuel
Wet Sponge
CoalCharcoalWoodWood PlanksBlock of Coal

Sponge
Fuel Wood
Oak WoodSpruce WoodBirch WoodJungle WoodAcacia WoodDark Oak Wood
Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks

Charcoal


Cookies help us deliver our services. By using our services, you agree to our use of cookies.