Template:Metallurgic Infuser/doc: Difference between revisions
m Added named parameters |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{doc/start}} | {{doc/start}} | ||
{{lua}} | |||
This template is used to create a grid that looks similar to the [[Metallurgic Infuser]] GUI screen. | This template is used to create a grid that looks similar to the [[Metallurgic Infuser]] GUI screen. | ||
== | It is quite similar to using {{tl|Crafting}} and creates tables of [[Metallurgic Infuser]] recipes. You can set the parameter <tt><nowiki>{{{showname=1}}}</nowiki></tt> or <tt><nowiki>{{{showname=0}}}</nowiki></tt> in the first template of the table to show or hide the Name column. To group multiple [[Metallurgic Infuser]] templates into one table, you also need to set <tt><nowiki>{{{head=1}}}</nowiki></tt> in the first template of the table, and <tt><nowiki>{{{foot=1}}}</nowiki></tt> in the last. A 4th column called Description can be added with <tt><nowiki>{{{showdescription=1}}}</nowiki></tt> and <tt><nowiki>{{{description=The description for the recipe}}}</nowiki></tt>. | ||
<pre>{{Metallurgic Infuser | Example usage: | ||
|Infuse = Redstone | <pre> | ||
|Input = Osmium Ingot | {{Metallurgic Infuser | ||
|Output = Control Circuit | |head=1 | ||
}}</pre> | |Infuse=Redstone | ||
|Input=Osmium Ingot | |||
|Output=Basic Control Circuit | |||
|showdescription=1 | |||
|description=The description cell can contain ''formatted'' text. | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Diamond | |||
|Input=Enriched Alloy | |||
|Output=Reinforced Alloy | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Obsidian | |||
|Input=Reinforced Alloy | |||
|Output=Atomic Alloy | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Carbon | |||
|Input=Iron Ingot | |||
|Output=Enriched Iron | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Tin | |||
|Input=Copper Ingot | |||
|Output=Bronze Ingot | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Bio Fuel | |||
|Input=Cobblestone | |||
|Output=Moss Stone | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Mushroom | |||
|Input=Dirt | |||
|Output=Mycelium | |||
|foot=1 | |||
}} | |||
</pre> | |||
{{Metallurgic Infuser | |||
|head=1 | |||
|Infuse=Redstone | |||
|Input=Osmium Ingot | |||
|Output=Basic Control Circuit | |||
|showdescription=1 | |||
|description=The description cell can contain ''formatted'' text. | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Diamond | |||
|Input=Enriched Alloy | |||
|Output=Reinforced Alloy | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Obsidian | |||
|Input=Reinforced Alloy | |||
|Output=Atomic Alloy | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Carbon | |||
|Input=Iron Ingot | |||
|Output=Enriched Iron | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Tin | |||
|Input=Copper Ingot | |||
|Output=Bronze Ingot | |||
}} | |||
{{Metallurgic Infuser | |||
|Infuse=Bio Fuel | |||
|Input=Cobblestone | |||
|Output=Moss Stone | |||
}} | |||
{{Metallurgic Infuser | {{Metallurgic Infuser | ||
|Infuse = | |Infuse=Mushroom | ||
|Input = | |Input=Dirt | ||
|Output = | |Output=Mycelium | ||
|foot=1 | |||
}} | }} | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Grid templates]] | ||
[[Category:Table templates]] | |||
</includeonly> | </includeonly> | ||
Latest revision as of 07:39, 22 July 2015
Please see wp:Lua and mw:Extension:Scribunto to learn more.
This template is used to create a grid that looks similar to the Metallurgic Infuser GUI screen.
It is quite similar to using {{Crafting}} and creates tables of Metallurgic Infuser recipes. 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 Metallurgic Infuser templates into one table, you also need to set {{{head=1}}} in the first template of the table, and {{{foot=1}}} in the last. A 4th column called Description can be added with {{{showdescription=1}}} and {{{description=The description for the recipe}}}.
Example usage:
{{Metallurgic Infuser
|head=1
|Infuse=Redstone
|Input=Osmium Ingot
|Output=Basic Control Circuit
|showdescription=1
|description=The description cell can contain ''formatted'' text.
}}
{{Metallurgic Infuser
|Infuse=Diamond
|Input=Enriched Alloy
|Output=Reinforced Alloy
}}
{{Metallurgic Infuser
|Infuse=Obsidian
|Input=Reinforced Alloy
|Output=Atomic Alloy
}}
{{Metallurgic Infuser
|Infuse=Carbon
|Input=Iron Ingot
|Output=Enriched Iron
}}
{{Metallurgic Infuser
|Infuse=Tin
|Input=Copper Ingot
|Output=Bronze Ingot
}}
{{Metallurgic Infuser
|Infuse=Bio Fuel
|Input=Cobblestone
|Output=Moss Stone
}}
{{Metallurgic Infuser
|Infuse=Mushroom
|Input=Dirt
|Output=Mycelium
|foot=1
}}
| Name | Ingredients | Metallurgic Infuser recipe | Description |
|---|---|---|---|
|
Osmium Ingot + |
The description cell can contain formatted text. | ||
|
Iron Ingot + |
|||


