<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AClean_image</id>
	<title>Module:Clean image - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AClean_image"/>
	<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Clean_image&amp;action=history"/>
	<updated>2026-06-04T07:58:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geministation.com/index.php?title=Module:Clean_image&amp;diff=4133&amp;oldid=prev</id>
		<title>Banri: Created page with &quot;-- &lt;nowiki&gt; -- Removes &#039;File:&#039; prefix, just in case -- Replace {{!}} with | instead of preprocessing -- Turn into a nice wiki file link local hc = require(&#039;Module:Paramtest&#039;)....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Clean_image&amp;diff=4133&amp;oldid=prev"/>
		<updated>2020-06-02T06:13:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;nowiki&amp;gt; -- Removes &amp;#039;File:&amp;#039; prefix, just in case -- Replace {{!}} with | instead of preprocessing -- Turn into a nice wiki file link local hc = require(&amp;#039;Module:Paramtest&amp;#039;)....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
-- Removes &amp;#039;File:&amp;#039; prefix, just in case&lt;br /&gt;
-- Replace {{!}} with | instead of preprocessing&lt;br /&gt;
-- Turn into a nice wiki file link&lt;br /&gt;
local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content&lt;br /&gt;
local p = {}&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local clean = {&lt;br /&gt;
		file = args.file or args[1],&lt;br /&gt;
		width = args.width or args[2],&lt;br /&gt;
		height = args.height or args[3],&lt;br /&gt;
		link = args.link&lt;br /&gt;
	}&lt;br /&gt;
	return p.clean(clean)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.clean = function(args)&lt;br /&gt;
	local file = args.file&lt;br /&gt;
	if not hc(file) or (file and (file:lower() == &amp;#039;no&amp;#039; or file == &amp;#039;&amp;#039;)) then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local height, width = &amp;#039;&amp;#039;,&amp;#039;&amp;#039;&lt;br /&gt;
	if hc(args.height) then&lt;br /&gt;
		height = &amp;#039;x&amp;#039;..args.height&lt;br /&gt;
	end&lt;br /&gt;
	if hc(args.width) then&lt;br /&gt;
		width = args.width&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local link = &amp;#039;&amp;#039;&lt;br /&gt;
	if hc(args.link) then&lt;br /&gt;
		if args.link == &amp;#039;no&amp;#039; then&lt;br /&gt;
			link = &amp;#039;|link=&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			link = &amp;#039;|link=&amp;#039;..args.link&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local size = &amp;#039;&amp;#039;&lt;br /&gt;
	if width ~= &amp;#039;&amp;#039; or height ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		size = string.format(&amp;#039;|%s%spx&amp;#039;, width, height)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	file = file:gsub(&amp;#039;%[&amp;#039;,&amp;#039;&amp;#039;):gsub(&amp;#039;%]&amp;#039;,&amp;#039;&amp;#039;):gsub(&amp;#039;[Ff]ile:&amp;#039;,&amp;#039;&amp;#039;):gsub(&amp;#039;{{!}}&amp;#039;,&amp;#039;|&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- enforce max height and width&lt;br /&gt;
	file = mw.text.split(file, &amp;#039;|&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	file = string.format(&amp;#039;%s%s%s&amp;#039;,file[1], size, link)&lt;br /&gt;
	return &amp;#039;[[File:&amp;#039;..file..&amp;#039;|frameless]]&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
-- &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Banri</name></author>
	</entry>
</feed>