<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AShop_Availability</id>
	<title>Module:Shop Availability - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AShop_Availability"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;action=history"/>
	<updated>2026-04-13T06:32:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;diff=4941&amp;oldid=prev</id>
		<title>Stevium: fandom-table -&gt; wikitable</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;diff=4941&amp;oldid=prev"/>
		<updated>2025-11-25T13:08:06Z</updated>

		<summary type="html">&lt;p&gt;fandom-table -&amp;gt; wikitable&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:08, 25 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p._main(args, frame)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p._main(args, frame)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local _table = mw.html.create(&#039;table&#039;):addClass(&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fandom-table &lt;/del&gt;article-table sortable&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local _table = mw.html.create(&#039;table&#039;):addClass(&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wikitable &lt;/ins&gt;article-table sortable&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	-- header row&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	-- header row&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key petitplanet:diff:1.41:old-2654:rev-4941:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Stevium</name></author>
	</entry>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;diff=2654&amp;oldid=prev</id>
		<title>Eleiyas: default to Dough if no currency specified.</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;diff=2654&amp;oldid=prev"/>
		<updated>2025-11-14T22:19:46Z</updated>

		<summary type="html">&lt;p&gt;default to Dough if no currency specified.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:19, 14 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l84&quot;&gt;Line 84:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 84:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			data._SPECFIC = specific&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			data._SPECFIC = specific&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			data[1] = nil&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			data[1] = nil&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			data.currency = data.currency or call_data.currency or &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Denny&lt;/del&gt;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			data.currency = data.currency or call_data.currency or &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dough&lt;/ins&gt;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if not args._BOOL.refresh and data.refresh then args._BOOL.refresh = 1 end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if not args._BOOL.refresh and data.refresh then args._BOOL.refresh = 1 end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if not args._BOOL.note and data.note then args._BOOL.note = 1 end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if not args._BOOL.note and data.note then args._BOOL.note = 1 end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key petitplanet:diff:1.41:old-2645:rev-2654:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Eleiyas</name></author>
	</entry>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;diff=2645&amp;oldid=prev</id>
		<title>Eleiyas: Created page with &quot;local p = {} local Parse = require(&#039;Module:Parser&#039;).getTemplateArgs local Slib = require(&#039;Module:Shop&#039;) local lib = require(&#039;Module:Feature&#039;)  function p.main(frame) 	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, { 		parentOnly = false, 		wrapper = {&#039;Template:Shop Availability&#039;} 	}) 	local item = args[1] or mw.title.getCurrentTitle().rootText 	args._PAGES = {} 	args._BOOL = {nototal=1} 	 	if lib.isNotEmpty(args.pages) then 		for page in string.gmatch(args.pages...&quot;</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:Shop_Availability&amp;diff=2645&amp;oldid=prev"/>
		<updated>2025-11-14T22:13:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} local Parse = require(&amp;#039;Module:Parser&amp;#039;).getTemplateArgs local Slib = require(&amp;#039;Module:Shop&amp;#039;) local lib = require(&amp;#039;Module:Feature&amp;#039;)  function p.main(frame) 	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, { 		parentOnly = false, 		wrapper = {&amp;#039;Template:Shop Availability&amp;#039;} 	}) 	local item = args[1] or mw.title.getCurrentTitle().rootText 	args._PAGES = {} 	args._BOOL = {nototal=1} 	 	if lib.isNotEmpty(args.pages) then 		for page in string.gmatch(args.pages...&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 Parse = require(&amp;#039;Module:Parser&amp;#039;).getTemplateArgs&lt;br /&gt;
local Slib = require(&amp;#039;Module:Shop&amp;#039;)&lt;br /&gt;
local lib = require(&amp;#039;Module:Feature&amp;#039;)&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;
		parentOnly = false,&lt;br /&gt;
		wrapper = {&amp;#039;Template:Shop Availability&amp;#039;}&lt;br /&gt;
	})&lt;br /&gt;
	local item = args[1] or mw.title.getCurrentTitle().rootText&lt;br /&gt;
	args._PAGES = {}&lt;br /&gt;
	args._BOOL = {nototal=1}&lt;br /&gt;
	&lt;br /&gt;
	if lib.isNotEmpty(args.pages) then&lt;br /&gt;
		for page in string.gmatch(args.pages, &amp;#039;(.-)%$%$%$&amp;#039;) do&lt;br /&gt;
			local data = Parse(page, { only=&amp;#039;Shop&amp;#039; } )&lt;br /&gt;
			local _ret = {PAGENAME = page, rows = 0}&lt;br /&gt;
			if type(data[1]) == &amp;#039;table&amp;#039; then&lt;br /&gt;
				for num, call in pairs(data) do&lt;br /&gt;
					local Pdata = p.ParseCall(call, item, args)&lt;br /&gt;
					if Pdata then&lt;br /&gt;
						_ret.rows = _ret.rows + #Pdata&lt;br /&gt;
						table.insert(_ret, Pdata)&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				local Pdata = p.ParseCall(data, item, args)&lt;br /&gt;
				if Pdata then&lt;br /&gt;
					_ret.rows = _ret.rows + #Pdata&lt;br /&gt;
					table.insert(_ret, Pdata)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if #_ret&amp;gt;0 then&lt;br /&gt;
				table.insert(args._PAGES, _ret)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if #args._PAGES&amp;gt;0 then&lt;br /&gt;
			return p._main(args, frame)&lt;br /&gt;
		else&lt;br /&gt;
			return args.noresult or (&amp;#039;No shop sells &amp;#039; .. item .. lib.ternary(item:find(&amp;#039;%.&amp;quot;?$&amp;#039;), &amp;#039;&amp;#039;, &amp;#039;.&amp;#039;))&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return args.noresult or (&amp;#039;No shop sells &amp;#039; .. item .. lib.ternary(item:find(&amp;#039;%.&amp;quot;?$&amp;#039;), &amp;#039;&amp;#039;, &amp;#039;.&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args, frame)&lt;br /&gt;
	local _table = mw.html.create(&amp;#039;table&amp;#039;):addClass(&amp;#039;fandom-table article-table sortable&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	-- header row&lt;br /&gt;
	local tr = _table:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
	tr:tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Source&amp;#039;)&lt;br /&gt;
	tr:tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Cost&amp;#039;)&lt;br /&gt;
	tr:tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Stock&amp;#039;)&lt;br /&gt;
	if lib.isNotEmpty(args._BOOL.refresh) then tr:tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Refresh&amp;#039;) end&lt;br /&gt;
	if lib.isNotEmpty(args._BOOL.note) then tr:tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Notes&amp;#039;) end&lt;br /&gt;
	&lt;br /&gt;
	-- rest of table&lt;br /&gt;
	for _, page in ipairs(args._PAGES) do&lt;br /&gt;
		local tr = _table:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
		tr:tag(&amp;#039;td&amp;#039;):attr(&amp;#039;rowspan&amp;#039;, page.rows):wikitext(&amp;#039;[[&amp;#039;, page.PAGENAME, &amp;#039;]]&amp;#039;)&lt;br /&gt;
		for i, calls in ipairs(page) do&lt;br /&gt;
			if i&amp;gt;1 then tr = _table:tag(&amp;#039;tr&amp;#039;) end&lt;br /&gt;
			for y, call in ipairs(calls) do&lt;br /&gt;
				if #page==1 and y&amp;gt;1 then tr = _table:tag(&amp;#039;tr&amp;#039;) end&lt;br /&gt;
				tr:node(Slib.ItemRow(call, args._BOOL))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- mw.logObject(_table) --debug&lt;br /&gt;
	return frame:preprocess(tostring(_table))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.ParseCall(call_data, item, args)&lt;br /&gt;
	local delim = call_data.delim or &amp;#039;;;&amp;#039;&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	&lt;br /&gt;
	for _, row in ipairs(call_data) do&lt;br /&gt;
		local data = Slib.splitParams(row, delim)&lt;br /&gt;
		local specific = data.specific or lib.ternary(tonumber(data.blueprint)==1, &amp;#039;Recipe: &amp;#039; .. data[1], data[1])&lt;br /&gt;
		if item == specific then&lt;br /&gt;
			data._SPECFIC = specific&lt;br /&gt;
			data[1] = nil&lt;br /&gt;
			data.currency = data.currency or call_data.currency or &amp;#039;Denny&amp;#039;&lt;br /&gt;
			if not args._BOOL.refresh and data.refresh then args._BOOL.refresh = 1 end&lt;br /&gt;
			if not args._BOOL.note and data.note then args._BOOL.note = 1 end&lt;br /&gt;
			table.insert(ret, data)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if #ret &amp;gt; 0 then&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Eleiyas</name></author>
	</entry>
</feed>