<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://theblockheads.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AInventory_slot%2FAliases%2FTable</id>
	<title>Module:Inventory slot/Aliases/Table - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://theblockheads.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AInventory_slot%2FAliases%2FTable"/>
	<link rel="alternate" type="text/html" href="https://theblockheads.wiki/index.php?title=Module:Inventory_slot/Aliases/Table&amp;action=history"/>
	<updated>2026-04-22T07:54:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://theblockheads.wiki/index.php?title=Module:Inventory_slot/Aliases/Table&amp;diff=25105&amp;oldid=prev</id>
		<title>JarlPenguin: Created page with &quot;local p = {} p.table = function() 	local slot = require( Module:Inventory slot ) 	local aliases = mw.loadData( Module:Inventory slot/Aliases )  	local aliasNames = {} 	local aI = 1 	for name in pairs( aliases ) do 		-- Skip the banner aliases (except &quot;Any Banner&quot;), as there are so 		-- many of them it causes the table to be excessively long 		if 			name == &#039;Any Banner&#039; or 			not name:find( &#039; Banner$&#039; ) and 			not name:find( &#039;^Matching &#039; ) or 			not aliases[name:g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://theblockheads.wiki/index.php?title=Module:Inventory_slot/Aliases/Table&amp;diff=25105&amp;oldid=prev"/>
		<updated>2024-08-06T20:53:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} p.table = function() 	local slot = require( &lt;a href=&quot;/wiki/Module:Inventory_slot&quot; title=&quot;Module:Inventory slot&quot;&gt;Module:Inventory slot&lt;/a&gt; ) 	local aliases = mw.loadData( &lt;a href=&quot;/wiki/Module:Inventory_slot/Aliases&quot; title=&quot;Module:Inventory slot/Aliases&quot;&gt;Module:Inventory slot/Aliases&lt;/a&gt; )  	local aliasNames = {} 	local aI = 1 	for name in pairs( aliases ) do 		-- Skip the banner aliases (except &amp;quot;Any Banner&amp;quot;), as there are so 		-- many of them it causes the table to be excessively long 		if 			name == &amp;#039;Any Banner&amp;#039; or 			not name:find( &amp;#039; Banner$&amp;#039; ) and 			not name:find( &amp;#039;^Matching &amp;#039; ) or 			not aliases[name:g...&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;
p.table = function()&lt;br /&gt;
	local slot = require( [[Module:Inventory slot]] )&lt;br /&gt;
	local aliases = mw.loadData( [[Module:Inventory slot/Aliases]] )&lt;br /&gt;
&lt;br /&gt;
	local aliasNames = {}&lt;br /&gt;
	local aI = 1&lt;br /&gt;
	for name in pairs( aliases ) do&lt;br /&gt;
		-- Skip the banner aliases (except &amp;quot;Any Banner&amp;quot;), as there are so&lt;br /&gt;
		-- many of them it causes the table to be excessively long&lt;br /&gt;
		if&lt;br /&gt;
			name == &amp;#039;Any Banner&amp;#039; or&lt;br /&gt;
			not name:find( &amp;#039; Banner$&amp;#039; ) and&lt;br /&gt;
			not name:find( &amp;#039;^Matching &amp;#039; ) or&lt;br /&gt;
			not aliases[name:gsub( &amp;#039;^Matching&amp;#039;, &amp;#039;Any&amp;#039; )]&lt;br /&gt;
		then&lt;br /&gt;
			aliasNames[aI] = name&lt;br /&gt;
			aI = aI + 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort( aliasNames )&lt;br /&gt;
&lt;br /&gt;
	local tableRows = {&lt;br /&gt;
		&amp;#039; {| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&amp;#039;,&lt;br /&gt;
		&amp;#039;! Alias !! Output&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	local rI = #tableRows + 1&lt;br /&gt;
	for _, name in ipairs( aliasNames ) do&lt;br /&gt;
		local alias = slot.getAlias( aliases[name], {} )&lt;br /&gt;
&lt;br /&gt;
		local cell = {}&lt;br /&gt;
		for i, frame in ipairs( alias ) do&lt;br /&gt;
			cell[i] = slot.slot{ { frame }, parsed = true }&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local aliasText = mw.html.create()&lt;br /&gt;
		aliasText:tag( &amp;#039;code&amp;#039; ):wikitext( name )&lt;br /&gt;
		if name:find( &amp;#039;^Any &amp;#039; ) then&lt;br /&gt;
			local altName = name:gsub( &amp;#039;^Any&amp;#039;, &amp;#039;Matching&amp;#039; )&lt;br /&gt;
			if aliases[altName] then&lt;br /&gt;
				aliasText:tag( &amp;#039;br&amp;#039; ):done()&lt;br /&gt;
					:tag( &amp;#039;code&amp;#039; ):wikitext( altName )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		tableRows[rI] = &amp;#039;|&amp;#039; .. tostring( aliasText ) .. &amp;#039;||&amp;#039; .. table.concat( cell )&lt;br /&gt;
		rI = rI + 1&lt;br /&gt;
	end&lt;br /&gt;
	tableRows[rI] = &amp;#039;|}&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	return table.concat( tableRows, &amp;#039;\n|-\n&amp;#039; )&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>JarlPenguin</name></author>
	</entry>
</feed>