<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AIcon</id>
	<title>Module:Icon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AIcon"/>
	<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Module:Icon&amp;action=history"/>
	<updated>2026-04-17T07:49:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.tiffa.net/w/index.php?title=Module:Icon&amp;diff=3405&amp;oldid=prev</id>
		<title>imported&gt;Fire: ページの作成:「-- This module implements Template:Icon.  local data = mw.loadData(&#039;Module:Icon/data&#039;)  local p = {}  function p._main(args) 	local code = args.class or args[1] or ar…」</title>
		<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Module:Icon&amp;diff=3405&amp;oldid=prev"/>
		<updated>2020-08-23T09:39:20Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「-- This module implements &lt;a href=&quot;/wiki/Template:Icon&quot; title=&quot;Template:Icon&quot;&gt;Template:Icon&lt;/a&gt;.  local data = mw.loadData(&amp;#039;Module:Icon/data&amp;#039;)  local p = {}  function p._main(args) 	local code = args.class or args[1] or ar…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements [[Template:Icon]].&lt;br /&gt;
&lt;br /&gt;
local data = mw.loadData(&amp;#039;Module:Icon/data&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local code = args.class or args[1] or args[&amp;#039;クラス&amp;#039;]&lt;br /&gt;
	local iconData&lt;br /&gt;
	if code then&lt;br /&gt;
		code = code:match(&amp;#039;^%s*(.-)%s*$&amp;#039;):lower() -- trim whitespace and put in lower case&lt;br /&gt;
		iconData = data[code]&lt;br /&gt;
	end&lt;br /&gt;
	if not iconData then&lt;br /&gt;
		iconData = data._DEFAULT&lt;br /&gt;
	end&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&amp;#039;[[File:%s%s|%s]]&amp;#039;,&lt;br /&gt;
		iconData.image,&lt;br /&gt;
		iconData.tooltip and &amp;#039;|&amp;#039; .. iconData.tooltip or &amp;#039;&amp;#039;,&lt;br /&gt;
		args.size or &amp;#039;16x16px&amp;#039;&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = {}&lt;br /&gt;
	for k, v in pairs(frame:getParent().args) do&lt;br /&gt;
		args[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Fire</name></author>
	</entry>
</feed>