<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mbwiki.stairwaygames.work/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ARecipe</id>
	<title>Module:Recipe - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mbwiki.stairwaygames.work/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ARecipe"/>
	<link rel="alternate" type="text/html" href="https://mbwiki.stairwaygames.work/w/index.php?title=Module:Recipe&amp;action=history"/>
	<updated>2026-04-10T07:27:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://mbwiki.stairwaygames.work/w/index.php?title=Module:Recipe&amp;diff=6888&amp;oldid=prev</id>
		<title>Admin coral island: Created page with &quot;local p = {} local lib = require(&#039;Module:Feature&#039;) local Icon = require(&#039;Module:Icon&#039;)._main local category = mw.html.create()  function p.main(frame) 	local args = require(&#039;Module:Arguments&#039;).getArgs(frame)  	return p._main(args) end  function p._main(args) 	local items = args.items or args[1] 	assert(items, &#039;No ingredients given&#039;) 	local yield_item = args.product or mw.title.getCurrentTitle().rootText 	local yield_amount = args[&#039;yield&#039;] or &#039;1&#039; 	local medium = args.medi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mbwiki.stairwaygames.work/w/index.php?title=Module:Recipe&amp;diff=6888&amp;oldid=prev"/>
		<updated>2023-08-09T10:41:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} local lib = require(&amp;#039;Module:Feature&amp;#039;) local Icon = require(&amp;#039;Module:Icon&amp;#039;)._main local category = mw.html.create()  function p.main(frame) 	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame)  	return p._main(args) end  function p._main(args) 	local items = args.items or args[1] 	assert(items, &amp;#039;No ingredients given&amp;#039;) 	local yield_item = args.product or mw.title.getCurrentTitle().rootText 	local yield_amount = args[&amp;#039;yield&amp;#039;] or &amp;#039;1&amp;#039; 	local medium = args.medi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local lib = require(&amp;#039;Module:Feature&amp;#039;)&lt;br /&gt;
local Icon = require(&amp;#039;Module:Icon&amp;#039;)._main&lt;br /&gt;
local category = mw.html.create()&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local items = args.items or args[1]&lt;br /&gt;
	assert(items, &amp;#039;No ingredients given&amp;#039;)&lt;br /&gt;
	local yield_item = args.product or mw.title.getCurrentTitle().rootText&lt;br /&gt;
	local yield_amount = args[&amp;#039;yield&amp;#039;] or &amp;#039;1&amp;#039;&lt;br /&gt;
	local medium = args.medium or args[2] or &amp;#039;Menu&amp;#039;&lt;br /&gt;
	local delim = args.delim or &amp;#039;;&amp;#039;&lt;br /&gt;
	local delim_amount = args.delim_amount or &amp;#039;*&amp;#039;&lt;br /&gt;
	local delim_quality = args.delim_quality or &amp;#039;/&amp;#039;&lt;br /&gt;
	local medium_time = args[&amp;#039;time&amp;#039;]&lt;br /&gt;
	&lt;br /&gt;
	--start out and figure out cols&lt;br /&gt;
	local out = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;ci-recipe-wrapper&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local data = {&lt;br /&gt;
		items = items,&lt;br /&gt;
		delim = delim,&lt;br /&gt;
		amount = &amp;#039;^(.-)&amp;#039; .. delim_amount .. &amp;#039;(.*)$&amp;#039;,&lt;br /&gt;
		quality = &amp;#039;^(.-)&amp;#039; .. delim_quality .. &amp;#039;(.*)$&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
	out:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;ci-recipe-ingredient&amp;#039;):node(p.parseIngredients(data))&lt;br /&gt;
	&lt;br /&gt;
	local out2 = out:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;ci-recipe-wrapper-second&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local medium_div = out2:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;ci-recipe-medium&amp;#039; .. lib.ternary(medium_time~=nil, &amp;#039; ci-recipe-timed&amp;#039;, &amp;#039;&amp;#039;))&lt;br /&gt;
	if medium == &amp;#039;Menu&amp;#039; then&lt;br /&gt;
		medium_div:node(Icon{&lt;br /&gt;
			name   = &amp;#039;Crafting mainico&amp;#039;,&lt;br /&gt;
			link = &amp;#039;Crafting&amp;#039;,&lt;br /&gt;
			notext = 1,&lt;br /&gt;
			size   = 35,&lt;br /&gt;
		})&lt;br /&gt;
		medium_div:tag(&amp;#039;br&amp;#039;)&lt;br /&gt;
		medium_div:wikitext(&amp;#039;In-menu&amp;#039;)&lt;br /&gt;
		medium_div:tag(&amp;#039;br&amp;#039;)&lt;br /&gt;
		medium_div:wikitext(&amp;#039;crafting&amp;#039;)&lt;br /&gt;
		category:wikitext(&amp;#039;[[Category:Crafted with crafting menu]]&amp;#039;)&lt;br /&gt;
	else&lt;br /&gt;
		medium_div:node(Icon{&lt;br /&gt;
			name   = medium,&lt;br /&gt;
			notext = 1,&lt;br /&gt;
			size   = 35,&lt;br /&gt;
		})&lt;br /&gt;
		medium_div:tag(&amp;#039;br&amp;#039;)&lt;br /&gt;
		medium_div:wikitext(&amp;#039;[[&amp;#039;, medium, &amp;#039;]]&amp;#039;)&lt;br /&gt;
		category:wikitext(&amp;#039;[[Category:Crafted with &amp;#039;, string.lower(medium), &amp;#039;]]&amp;#039;)&lt;br /&gt;
		if lib.inArray({&lt;br /&gt;
			&amp;#039;blender&amp;#039;,&lt;br /&gt;
			&amp;#039;ceramic bowl&amp;#039;,&lt;br /&gt;
			&amp;#039;chef knife&amp;#039;,&lt;br /&gt;
			&amp;#039;frying pan&amp;#039;,&lt;br /&gt;
			&amp;#039;grill&amp;#039;,&lt;br /&gt;
			&amp;#039;oven&amp;#039;,&lt;br /&gt;
			&amp;#039;pot&amp;#039;,&lt;br /&gt;
			&amp;#039;seasoning set&amp;#039;,&lt;br /&gt;
			&amp;#039;skillet&amp;#039;,&lt;br /&gt;
		}, string.lower(medium))&lt;br /&gt;
		then category:wikitext(&amp;#039;[[Category:Cooked dishes|&amp;#039;, string.lower(medium), &amp;#039;]]&amp;#039;) end&lt;br /&gt;
	end&lt;br /&gt;
	if medium_time then&lt;br /&gt;
		medium_div:tag(&amp;#039;br&amp;#039;)&lt;br /&gt;
		medium_div:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;ci-recipe-yield-amount&amp;#039;):tag(&amp;#039;small&amp;#039;):wikitext(medium_time)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	out2&lt;br /&gt;
	:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;ci-recipe-yield&amp;#039;)&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;ci-recipe-yield-img&amp;#039;)&lt;br /&gt;
			:node(Icon{&lt;br /&gt;
				name   = yield_item,&lt;br /&gt;
				notext = 1,&lt;br /&gt;
				size   = 70,&lt;br /&gt;
			})&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;ci-recipe-yield-amount&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;small&amp;#039;):wikitext(&amp;#039;×&amp;#039;, yield_amount)&lt;br /&gt;
	&lt;br /&gt;
	category:wikitext(&amp;#039;[[Category:Crafted items]]&amp;#039;)&lt;br /&gt;
	out:node(require(&amp;#039;Module:Namespace detect&amp;#039;).main{main=category})&lt;br /&gt;
	&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeIcon(str, data)&lt;br /&gt;
	if not str then return mw.hmtl.create() end&lt;br /&gt;
	local pre, quality = string.match(str, data.quality)&lt;br /&gt;
	if not pre then&lt;br /&gt;
		pre = str&lt;br /&gt;
	end&lt;br /&gt;
	local name, amount = string.match(pre, data.amount)&lt;br /&gt;
	if not name then&lt;br /&gt;
		name = pre&lt;br /&gt;
		amount = &amp;#039;1&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	category:wikitext(&amp;#039;[[Category:Uses &amp;#039;, string.lower(name), &amp;#039;]]&amp;#039;)&lt;br /&gt;
	return Icon&lt;br /&gt;
	{&lt;br /&gt;
		name    = name,&lt;br /&gt;
		amount  = amount,&lt;br /&gt;
		size    = &amp;#039;20&amp;#039;,&lt;br /&gt;
		quality = quality&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.parseIngredients(data)&lt;br /&gt;
	local list = mw.html.create()&lt;br /&gt;
	for item in lib.gsplit(data.items, &amp;#039;;&amp;#039;) do&lt;br /&gt;
		if lib.isNotEmpty(item) then&lt;br /&gt;
			if item:find(&amp;#039;//&amp;#039;) then&lt;br /&gt;
				for n, sub_item in ipairs(lib.split(item, &amp;#039;//&amp;#039;)) do&lt;br /&gt;
					if n&amp;gt;1 then list:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039; or &amp;#039;) end&lt;br /&gt;
					list:node(makeIcon(sub_item, data))&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				list:node(makeIcon(item, data))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return list&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Admin coral island</name></author>
	</entry>
</feed>