<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modded.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAicon</id>
	<title>Module:Aicon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modded.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAicon"/>
	<link rel="alternate" type="text/html" href="https://modded.wiki/index.php?title=Module:Aicon&amp;action=history"/>
	<updated>2026-05-01T15:19:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://modded.wiki/index.php?title=Module:Aicon&amp;diff=13600&amp;oldid=prev</id>
		<title>Deadlydiamond98: Created page with &quot;local p = {}  local invIcon = require( &#039;Module:Inventory icon&#039; ).icon  function p.aIcon( icon, background, state, link, file ) 	local f = mw.getCurrentFrame()  	local argIcon = icon or &#039;Grass Block&#039; 	local argBackground = background or &#039;plain&#039; 	local argState = state or &#039;raw&#039; 	local argLink = link or &#039;&#039;  	if ( argBackground ~= &#039;oval&#039; ) and ( argBackground ~= &#039;fancy&#039; ) and ( argBackground ~= &#039;plain-mini&#039; ) then 		argBackground = &#039;plain&#039; 	end 	if argState ~= &#039;worn&#039; then...&quot;</title>
		<link rel="alternate" type="text/html" href="https://modded.wiki/index.php?title=Module:Aicon&amp;diff=13600&amp;oldid=prev"/>
		<updated>2026-01-29T20:50:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  local invIcon = require( &amp;#039;Module:Inventory icon&amp;#039; ).icon  function p.aIcon( icon, background, state, link, file ) 	local f = mw.getCurrentFrame()  	local argIcon = icon or &amp;#039;Grass Block&amp;#039; 	local argBackground = background or &amp;#039;plain&amp;#039; 	local argState = state or &amp;#039;raw&amp;#039; 	local argLink = link or &amp;#039;&amp;#039;  	if ( argBackground ~= &amp;#039;oval&amp;#039; ) and ( argBackground ~= &amp;#039;fancy&amp;#039; ) and ( argBackground ~= &amp;#039;plain-mini&amp;#039; ) then 		argBackground = &amp;#039;plain&amp;#039; 	end 	if argState ~= &amp;#039;worn&amp;#039; then...&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;
&lt;br /&gt;
local invIcon = require( &amp;#039;Module:Inventory icon&amp;#039; ).icon&lt;br /&gt;
&lt;br /&gt;
function p.aIcon( icon, background, state, link, file )&lt;br /&gt;
	local f = mw.getCurrentFrame()&lt;br /&gt;
&lt;br /&gt;
	local argIcon = icon or &amp;#039;Grass Block&amp;#039;&lt;br /&gt;
	local argBackground = background or &amp;#039;plain&amp;#039;&lt;br /&gt;
	local argState = state or &amp;#039;raw&amp;#039;&lt;br /&gt;
	local argLink = link or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	if ( argBackground ~= &amp;#039;oval&amp;#039; ) and ( argBackground ~= &amp;#039;fancy&amp;#039; ) and ( argBackground ~= &amp;#039;plain-mini&amp;#039; ) then&lt;br /&gt;
		argBackground = &amp;#039;plain&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if argState ~= &amp;#039;worn&amp;#039; then&lt;br /&gt;
		argState = &amp;#039;raw&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if ( argBackground == &amp;#039;plain-mini&amp;#039; ) and ( argState ~= &amp;#039;raw&amp;#039; ) then&lt;br /&gt;
		argState = &amp;#039;raw&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local iconBackground = &amp;#039;[[File:Advancement-&amp;#039; .. argBackground .. &amp;#039;-&amp;#039; .. argState .. &amp;#039;.png|link=&amp;#039; .. argLink .. &amp;#039;|class=pixel-image]]&amp;#039;&lt;br /&gt;
	local iconContent&lt;br /&gt;
	if file and file ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		iconContent = &amp;#039;[[File:&amp;#039; .. file .. &amp;#039;|link=&amp;#039; .. argLink .. &amp;#039;|32px|class=pixel-image]]&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		iconContent = invIcon{ argIcon, link = argLink }&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local outputContent = f:extensionTag{ name = &amp;#039;span&amp;#039;, content = iconContent, args = { class = &amp;#039;module-Aicon-content&amp;#039; } }&lt;br /&gt;
	local outputBackground = f:extensionTag{ name = &amp;#039;span&amp;#039;, content = iconBackground .. outputContent, args = { class = &amp;#039;plainlinks module-Aicon-background&amp;#039; } }&lt;br /&gt;
&lt;br /&gt;
	return require( &amp;#039;Module:TSLoader&amp;#039; ).call( &amp;#039;Module:Aicon/styles.css&amp;#039; ) .. outputBackground&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main( f )&lt;br /&gt;
	local args = f&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	if f == frame then&lt;br /&gt;
		args = require( &amp;#039;Module:ProcessArgs&amp;#039; ).merge( true )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return p.aIcon( args[ 1 ], args[ 2 ] or args.bg, args[ 3 ] or args.state, args.link, args.file )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Deadlydiamond98</name></author>
	</entry>
</feed>