<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.perfecttower2.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ARecipe_table%2Fdoc</id>
	<title>Module:Recipe table/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.perfecttower2.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ARecipe_table%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.perfecttower2.com/w/index.php?title=Module:Recipe_table/doc&amp;action=history"/>
	<updated>2026-10-07T15:30:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.perfecttower2.com/w/index.php?title=Module:Recipe_table/doc&amp;diff=4332&amp;oldid=prev</id>
		<title>Speedybrain: Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.perfecttower2.com/w/index.php?title=Module:Recipe_table/doc&amp;diff=4332&amp;oldid=prev"/>
		<updated>2026-10-07T01:49:12Z</updated>

		<summary type="html">&lt;p&gt;Documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Builds recipe tables: one table row per recipe, with the recipe drawn by [[Module:UI]]. [[Module:Crafting]] uses it for [[Template:Crafting|&amp;lt;nowiki&amp;gt;{{Crafting}}&amp;lt;/nowiki&amp;gt;]] on [[Factory/Recipes/Crafting]]. Inspired by [https://minecraft.wiki/w/Module:Recipe_table Minecraft Wiki&amp;#039;s Module:Recipe table].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;table(args, opts)&amp;lt;/code&amp;gt; returns the table, or rows of a larger table. &amp;lt;code&amp;gt;opts&amp;lt;/code&amp;gt; names the function in [[Module:UI]] that draws the recipe (&amp;lt;code&amp;gt;uiMethod&amp;lt;/code&amp;gt;) and the argument names of the inputs (&amp;lt;code&amp;gt;inputArgs&amp;lt;/code&amp;gt;) and outputs (&amp;lt;code&amp;gt;outputArgs&amp;lt;/code&amp;gt;). &amp;lt;code&amp;gt;args&amp;lt;/code&amp;gt; are the template&amp;#039;s arguments:&lt;br /&gt;
* Without &amp;lt;code&amp;gt;head&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;continue&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;foot&amp;lt;/code&amp;gt;, the recipe is a table of its own. &amp;lt;code&amp;gt;showName&amp;lt;/code&amp;gt; adds a Name column.&lt;br /&gt;
* &amp;lt;code&amp;gt;head&amp;lt;/code&amp;gt; starts a table, calls with &amp;lt;code&amp;gt;continue&amp;lt;/code&amp;gt; add rows to it, and &amp;lt;code&amp;gt;foot&amp;lt;/code&amp;gt; on the last call closes it. These tables are sortable and always have the Name column.&lt;br /&gt;
* The Name cell lists the names of the output items; &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; replaces it. &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; adds classes to the table (on the call that starts it), such as &amp;lt;code&amp;gt;mw-collapsed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The tables carry the old class &amp;lt;code&amp;gt;collapsible&amp;lt;/code&amp;gt;; [[MediaWiki:Common.js]] turns them into MediaWiki collapsibles. Item stacks are parsed by [[Module:Factory slot]].&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Speedybrain</name></author>
	</entry>
</feed>