<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.figueroa.cc/index.php?action=history&amp;feed=atom&amp;title=Module%3AKnowledgeLinks</id>
	<title>Module:KnowledgeLinks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.figueroa.cc/index.php?action=history&amp;feed=atom&amp;title=Module%3AKnowledgeLinks"/>
	<link rel="alternate" type="text/html" href="https://wiki.figueroa.cc/index.php?title=Module:KnowledgeLinks&amp;action=history"/>
	<updated>2026-12-03T18:42:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.13</generator>
	<entry>
		<id>https://wiki.figueroa.cc/index.php?title=Module:KnowledgeLinks&amp;diff=258&amp;oldid=prev</id>
		<title>imported&gt;Testerle at 18:41, 14 July 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.figueroa.cc/index.php?title=Module:KnowledgeLinks&amp;diff=258&amp;oldid=prev"/>
		<updated>2023-07-14T18:41:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local util_args = require(&amp;quot;Module:ArgsUtil&amp;quot;)&lt;br /&gt;
local util_cache = require(&amp;quot;Module:CacheUtil&amp;quot;)&lt;br /&gt;
local util_vars = require(&amp;quot;Module:VarsUtil&amp;quot;)&lt;br /&gt;
local cache = require(&amp;#039;mw.ext.LuaCache&amp;#039;)&lt;br /&gt;
local PREFIX = &amp;#039;ITEMLINK_04&amp;#039;&lt;br /&gt;
local lang = mw.getLanguage(&amp;#039;en&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local h = {}&lt;br /&gt;
local cargo = mw.ext.cargo&lt;br /&gt;
&lt;br /&gt;
function p.KnowledgeLinks(frame)&lt;br /&gt;
	local args = util_args.mergeKeepEmpty()&lt;br /&gt;
	local inpItemid = tonumber(args[1])&lt;br /&gt;
	&lt;br /&gt;
	local text = &amp;quot;&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
	local tables = &amp;#039;Item,Recipes&amp;#039;&lt;br /&gt;
	local fields = &amp;#039;Recipes._pageName,Recipes.name&amp;#039;&lt;br /&gt;
	local query = {&lt;br /&gt;
		join = &amp;#039;Item.knowledge HOLDS Recipes.id&amp;#039;,&lt;br /&gt;
		where = &amp;#039;Item.id = &amp;#039; .. inpItemid .. &amp;#039; &amp;#039;,&lt;br /&gt;
		groupBy = &amp;#039;Recipes._pageName,Recipes.name&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	local result = cargo.query( tables, fields, query )&lt;br /&gt;
	if not result then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	for k, row in ipairs(result) do&lt;br /&gt;
		if text ~= &amp;quot;&amp;quot; then&lt;br /&gt;
			text = text .. &amp;quot;, &amp;quot;	&lt;br /&gt;
		end&lt;br /&gt;
		text = text .. &amp;quot;[[&amp;quot; .. row[&amp;quot;Recipes._pageName&amp;quot;] .. &amp;quot;|&amp;quot; .. row[&amp;quot;Recipes.name&amp;quot;] .. &amp;quot;]]&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Testerle</name></author>
	</entry>
</feed>