<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://hmoegirl.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFileInfo</id>
	<title>Module:FileInfo - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://hmoegirl.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFileInfo"/>
	<link rel="alternate" type="text/html" href="https://hmoegirl.com/index.php?title=Module:FileInfo&amp;action=history"/>
	<updated>2026-06-10T19:15:56Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://hmoegirl.com/index.php?title=Module:FileInfo&amp;diff=60194&amp;oldid=prev</id>
		<title>imported&gt;850710247liu：​创建页面，内容为“local module = {}  module.main = function(frame) 	local fileName = frame.args[1] 	local name = frame.args[2] 	local attrNames = { &#039;width&#039;, &#039;height&#039;, &#039;size&#039;, &#039;mimeTyp…”</title>
		<link rel="alternate" type="text/html" href="https://hmoegirl.com/index.php?title=Module:FileInfo&amp;diff=60194&amp;oldid=prev"/>
		<updated>2020-01-29T09:26:32Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“local module = {}  module.main = function(frame) 	local fileName = frame.args[1] 	local name = frame.args[2] 	local attrNames = { &amp;#039;width&amp;#039;, &amp;#039;height&amp;#039;, &amp;#039;size&amp;#039;, &amp;#039;mimeTyp…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local module = {}&lt;br /&gt;
&lt;br /&gt;
module.main = function(frame)&lt;br /&gt;
	local fileName = frame.args[1]&lt;br /&gt;
	local name = frame.args[2]&lt;br /&gt;
	local attrNames = { &amp;#039;width&amp;#039;, &amp;#039;height&amp;#039;, &amp;#039;size&amp;#039;, &amp;#039;mimeType&amp;#039; }&lt;br /&gt;
	local title = mw.title.new(&amp;#039;File:&amp;#039;..fileName)&lt;br /&gt;
	if title ~= nil then&lt;br /&gt;
		for i, v in ipairs(attrNames) do&lt;br /&gt;
			if v == name then&lt;br /&gt;
				return title.file[name]&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if (frame.args[&amp;#039;w&amp;#039;] or &amp;#039;&amp;#039;) ~= &amp;#039;false&amp;#039; then&lt;br /&gt;
			error(&amp;#039;没有这个文件属性，可用的文件属性包含：width、height、size、mimeType&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if (frame.args[&amp;#039;w&amp;#039;] or &amp;#039;&amp;#039;) ~= &amp;#039;false&amp;#039; then&lt;br /&gt;
			error(&amp;#039;没有这个文件，请检查文件名是否正确！&amp;#039;)	&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return module&lt;/div&gt;</summary>
		<author><name>imported&gt;850710247liu</name></author>
	</entry>
</feed>